[Deploying Sakai] Exception when attempting to add class roster(s)

Zhen Qian zqian at umich.edu
Fri Apr 17 08:50:19 PDT 2009


Robert:

For cafe build, creating course site is not enabled in Worksite Setup  
tool, since there is no implementation of CourseManagementService.

Did you create your course site from within the admin's Sites tool?  
If the site is assigned with type "course", Site Info tool would  
recognize that, and offer the choice of "Edit Class Roster(s)".  
However, because there is no academic term defined and there is no  
CourseManagementService implemented, you will encounter errors as you  
reported earlier.

The solution is to use the default OOTB sakai CourseManagementService  
implementation(contained in the full Sakai release (not the cafe  
build)), or to write your own implementation of the  
CourseManagementService API. FYI, here is the link for various  
implementations of CourseManagementService: http:// 
confluence.sakaiproject.org/confluence/display/CM/Local+Implementations

Thanks,

- Zhen
On Apr 16, 2009, at 3:33 PM, Robert Drescher wrote:

> Hi Zhen,
>
> I got the latest subversion snapshot from source.sakaiproject.org/ 
> svn/cafe/trunk
> and deployed it with maven, following the development walkthrough.
>
> According to the release notes it is Sakai 2.7
>
> The site I created is of the type "course" and when I click on Add  
> roster(s) I don't see any academic terms...
>
> Is this information any help for you? :S
>
> Robert
>
> -----Ursprüngliche Nachricht-----
> Von: Zhen Qian [mailto:zqian at umich.edu]
> Gesendet: Sonntag, 12. April 2009 15:30
> An: Robert Drescher
> Cc: production at collab.sakaiproject.org
> Betreff: Re: [Deploying Sakai] Exception when attempting to add  
> class roster(s)
>
>
> Robert:
>
> What version of Sakai are you using? It is likely the academic term  
> of the
> site is not found...
>
> Thanks,
>
> - Zhen
>
> On Sat, 11 Apr 2009 18:22:21 +0200, "Robert Drescher"
> <robert.drescher at gmail.com> wrote:
>> Hello!
>>
>> I finished building and deploying Sakai as described in the  
>> Development
>> Environment walkthrough.
>>
>> Now I wanted to create a classroom environment to start  
>> implementing and
>> integrating my custom tools, but I can't create classes.
>>
>>
>>
>> In "Site Info", I select "Edit Class Roster(s)" and then "Add  
>> Roster(s)"
> an
>> Sakai is not doing anything visible.
>>
>> But when I check the output:
>>
>>
>>
>> 2009-04-11 17:53:32,458  WARN http-80-Processor24
>> org.sakaiproject.cheftool.VelocityPortletPaneledAction - Exception
> calling
>> method doMenu_siteInfo_addClass
> java.lang.reflect.InvocationTargetException
>> (Caused by java.lang.NullPointerException)
>>
>> java.lang.reflect.InvocationTargetException
>>
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
>> Method)
>>
>>         at
>>
> sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39
>> )
>>
>>         at
>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl
>> .java:25)
>>
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>
>>         at
>>
> org.sakaiproject.cheftool.VelocityPortletPaneledAction.actionDispatch( 
> Veloci
>> tyPortletPaneledAction.java:600)
>>
>>         at
>>
> org.sakaiproject.cheftool.VelocityPortletPaneledAction.processAction 
> (Velocit
>> yPortletPaneledAction.java:516)
>>
>>         at
>>         org.sakaiproject.cheftool.ToolServlet.doGet 
>> (ToolServlet.java:221)
>>
>>         at
>>
> org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet 
> (VelocityPortlet
>> PaneledAction.java:1014)
>>
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>> 627)
>>
>>         at
>> org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java: 
>> 56)
>>
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>> 729)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
> (Application
>> FilterChain.java:269)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter 
> (ApplicationFilterCh
>> ain.java:188)
>>
>>         at
>> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:561)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
> (Application
>> FilterChain.java:215)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter 
> (ApplicationFilterCh
>> ain.java:188)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationDispatcher.invoke 
> (ApplicationDispatcher.
>> java:679)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationDispatcher.processRequest 
> (ApplicationDis
>> patcher.java:461)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationDispatcher.doForward 
> (ApplicationDispatch
>> er.java:364)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationDispatcher.forward 
> (ApplicationDispatcher
>> .java:301)
>>
>>         at
>>
> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward 
> (ActiveTo
>> olComponent.java:475)
>>
>>         at
>>
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool 
> (SkinnableCh
>> aronPortal.java:1216)
>>
>>         at
>>
> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool 
> (ToolHandler.java:
>> 188)
>>
>>         at
>>
> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet 
> (ToolHandler.java:9
>> 3)
>>
>>         at
>>
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet 
> (SkinnableCharonPo
>> rtal.java:768)
>>
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>> 627)
>>
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
>> 729)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
> (Application
>> FilterChain.java:269)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter 
> (ApplicationFilterCh
>> ain.java:188)
>>
>>         at
>> org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:613)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
> (Application
>> FilterChain.java:215)
>>
>>         at
>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter 
> (ApplicationFilterCh
>> ain.java:188)
>>
>>         at
>>
> org.apache.catalina.core.StandardWrapperValve.invoke 
> (StandardWrapperValve.ja
>> va:213)
>>
>>         at
>>
> org.apache.catalina.core.StandardContextValve.invoke 
> (StandardContextValve.ja
>> va:172)
>>
>>         at
>>
> org.apache.catalina.core.StandardHostValve.invoke 
> (StandardHostValve.java:127
>> )
>>
>>         at
>>
> org.apache.catalina.valves.ErrorReportValve.invoke 
> (ErrorReportValve.java:117
>> )
>>
>>         at
>>
> org.apache.catalina.core.StandardEngineValve.invoke 
> (StandardEngineValve.java
>> :108)
>>
>>         at
>>
> org.apache.catalina.connector.CoyoteAdapter.service 
> (CoyoteAdapter.java:174)
>>
>>         at
>>
> org.apache.coyote.http11.Http11Processor.process 
> (Http11Processor.java:875)
>>
>>         at
>>
> org.apache.coyote.http11.Http11BaseProtocol 
> $Http11ConnectionHandler.processC
>> onnection(Http11BaseProtocol.java:665)
>>
>>         at
>>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket 
> (PoolTcpEndpoint.jav
>> a:528)
>>
>>         at
>>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt 
> (LeaderFollowerWo
>> rkerThread.java:81)
>>
>>         at
>>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run 
> (ThreadPool.jav
>> a:689)
>>
>>         at java.lang.Thread.run(Thread.java:595)
>>
>> Caused by: java.lang.NullPointerException
>>
>>         at
>>
> org.sakaiproject.site.tool.SiteAction.doMenu_siteInfo_addClass 
> (SiteAction.ja
>> va:6072)
>>
>>         ... 44 more
>>
>>
>>
>> As already mentioned, I followed the walkthrough (so I had no idea  
>> what I
>> was doing, really . ) and created a course site.
>>
>> Does this sound to you like a installation/configuration problem  
>> or is
> this
>> application related?
>>
>> Where to start looking for the "root of all evil"?
>>
>>
>>
>> Thanks for your help!
>>
>> Robert
>>
>
>
>



More information about the production mailing list