[Building Sakai] Error on Export from Lesson tool
Charles Hedrick
hedrick at rutgers.edu
Thu May 8 09:22:40 PDT 2014
Thanks. I’ll put in the fix.
On May 8, 2014, at 12:03 PM, Omer A Piperdi <omer at rice.edu> wrote:
> 219 in my code is 'x' below..
> ----------------
> List<ForumItem> items = getItemsInSite(siteId);
>
> x for (ForumItem item: items) {
>
> ret.add(item.id);
> ----------------
>
> So added this line.. and it is exporting now..
>
> if (items != null) {
> for (ForumItem item: items) {
>
> Thanks
> Omer
>
>
> On 5/7/2014 2:43 PM, Charles Hedrick wrote:
>> What is the line of code? Here’s the region:
>>
>> for (ForumItem item: items) {
>>
>> ret.add(item.id);
>>
>> x List<ForumAttachment> attachments = item.attachments;
>> for (ForumAttachment attach: attachments) {
>> // this code is to identify attachments that aren't in the normal
>> // site resources. In that case we have to make a copy of it
>> String url = null;
>>
>> In my copy, line 219 is what I’ve marked with an X. I don’t see how it could be null, since ret.add(item.id) would fail. But if the line numbers are off, for the For statement is failing then you want to add an if
>>
>>
>> ret.add(item.id);
>>
>> List<ForumAttachment> attachments = item.attachments;
>> if (attachments != null)
>> for (ForumAttachment attach: attachments) {
>> // this code is to identify attachments that aren't in the normal
>> // site resources. In that case we have to make a copy of it
>> String url = null;
>>
>>
>> On May 6, 2014, at 4:08 PM, Omer A Piperdi <omer at rice.edu> wrote:
>>
>>> We are seeing the following error message when a user choose 'Export CC'
>>> on Lesson tool. (on sakai 2.9.x with Lessonbuilder 1.4.3-SNAPSHOT on
>>> Oracle).
>>>
>>> Anyone see this before??
>>>
>>> Thanks
>>> Omer
>>>
>>>
>>> ----
>>> '[An error occurred handling this RSF request]'
>>>
>>> With following stack trace in catalina.out
>>>
>>> 2014-05-06 14:58:28,667 WARN http-bio-8443-exec-328 PonderUtilCore -
>>> Error servicing SakaiRSF request
>>> Target exception of class java.lang.NullPointerException
>>> Successive lines until stack trace show causes progressing to exception
>>> site:
>>> Error invoking init method handle on bean rootHandlerBean
>>> java.lang.NullPointerException
>>> at
>>> org.sakaiproject.lessonbuildertool.ccexport.ForumsExport.getEntitiesInSite(ForumsExport.java:219)
>>> at
>>> org.sakaiproject.lessonbuildertool.ccexport.CCExport.addAllForums(CCExport.java:456)
>>> at
>>> org.sakaiproject.lessonbuildertool.ccexport.CCExport.doExport(CCExport..java:193)
>>> at
>>> org.sakaiproject.lessonbuildertool.tool.beans.ReportHandlerHook.handle(ReportHandlerHook.java:65)
>>> at
>>> org.sakaiproject.lessonbuilder.util.RootHandlerBeanOverride.handle(RootHandlerBeanOverride.java:27)
>>> at sun.reflect.GeneratedMethodAccessor3351.invoke(Unknown Source)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>> at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:23)
>>> at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:17)
>>> at
>>> uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:77)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl.createBean(RSACBeanLocatorImpl.java:553)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl.access$000(RSACBeanLocatorImpl.java:75)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl$1.run(RSACBeanLocatorImpl.java:449)
>>> at
>>> uk.org.ponder.rsac.RSACErrorBridge.invokeRunnable(RSACErrorBridge.java:38)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl.createBean(RSACBeanLocatorImpl.java:447)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl.getLocalBean(RSACBeanLocatorImpl.java:348)
>>> at
>>> uk.org.ponder.rsac.support.RSACBeanLocatorImpl.getBean(RSACBeanLocatorImpl.java:379)
>>> at
>>> uk.org.ponder.rsac.support.PerRequestInfo$1.locateBean(PerRequestInfo.java:49)
>>> at
>>> uk.ac.cam.caret.sakai.rsf.servlet.ReasonableSakaiServlet.service(ReasonableSakaiServlet.java:65)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>>> at
>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>>>
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>
>> !DSPAM:2294,536a8cde205721662417450!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140508/debd21d0/attachment.html
More information about the sakai-dev
mailing list