[Building Sakai] Poll Tool bug

Robert Long rlong at unicon.net
Fri Aug 22 12:16:24 PDT 2014


Brett,

The reason the polls tool source wasn’t in your source directory is because in 2.9, polls was an “indie” tool and the source would only be included in the sakai-2.9.3-all tag. Without the “-all” tag, during the build a pre-built polls war is downloaded and deployed, rather than built locally and deployed.

The polls version that comes with 2.9.3 is 1.5.3, but 1.5.x should have more bug fixes in it.

As for your specific problem, I’m afraid I don’t have any real knowledge to help at the moment.

—Bob

----
Robert Long
Software Engineer
Technical Account Manager - Sakai
Unicon, Inc.

----
M.A., Instructional Technology
Saginaw Valley State University

On Aug 22, 2014, at 3:06 PM, Brett Parker <brparke1 at wsc.edu> wrote:

> Took a look at my Sakai source directory and I don't have a polls directory.  So I went out and checked out a polls version (polls-1.5.x) which looks like it would match up with my 2.9.3 version of Sakai.  I then tried to deploy that with the mvn command you mentioned in your previous email.  However nothing has fixed it yet.
>  
> I am wondering then, where is polls if I don't have a directory listing it at the top level of my 2.9.3 source directory and if my second step is the correct process (svn co https://source.sakaiproject.org/svn/polls/branches/polls-1.5.x/ ) are there any settings I need to set or add, maybe in my sakai.properties file) to have the new polls tool work?
>  
> Brett Parker
>   
> >>> Robert Long <rlong at unicon.net> 8/22/2014 12:25 PM >>>
> Brett,
> 
> You can just build and deploy a single tool in Sakai.
> 
> Go into the polls tool source directory: 
> 
> "cd {SAKAI_SRC_DIR}/polls”
> 
> and run the Maven build and deploy command:
> 
> “mvn -e clean install sakai:deploy -Dmaven.tomcat.home={PATH_TO_TOMCAT}”
> 
> That will build and redeploy ONLY the Polls tool. Just restart Tomcat and you’ll be all set!
> 
> —Bob
> 
> ----
> Robert Long
> Software Engineer
> Technical Account Manager - Sakai
> Unicon, Inc.
> 
> ----
> M.A., Instructional Technology
> Saginaw Valley State University
> 
> On Aug 22, 2014, at 1:19 PM, Neal Caidin <neal.caidin at apereo.org> wrote:
> 
>> Hi Brett,
>> 
>> Yes, I believe it is possible to compile and deploy just the Polls tool, and I imagine it is not too difficult. Hopefully a developer or administrator will jump in to provide the specifics. If not, I'll look into it further. 
>> 
>> Cheers,
>> Neal
>> 
>> 
>>> <Mail Attachment.jpeg>	Brett Parker	August 22, 2014 at 10:20 AM
>>> Neal,
>>>  
>>> I have tried in our development environment and it operates the same way.  I have also tried in a clean copy of 2.9.3 and that works.  I am using MYSQL for database.
>>>  
>>> I am wondering, if there is a way just to try recompiling the  poll tool without redeploying the entire Sakai 2.9.3 source.  I don't want to overwrite any changes I have made since I deployed 2.9.3 if possible.
>>>  
>>> Thanks for the help.
>>>  
>>> Brett Parker
>>> 
>>> >>> Neal Caidin <neal.caidin at apereo.org> 8/19/2014 2:20 PM >>>
>>> Hi Brett,
>>> 
>>> Soon we will be reaching the limits of my technical knowledge. ;-)
>>> 
>>> Have you tried on a development environment? On a clean copy of 2.9.3 ? Which database are you using?
>>> 
>>> Just puzzled why it is working for me, but not for you, and imagining there is an important clue in there. Hopefully someone else will chime in with some better ideas or questions.
>>> 
>>> Thanks,
>>> Neal
>>> 
>>> 
>>> 
>>> 
>>> <Mail Attachment.jpeg>	Neal Caidin	August 19, 2014 at 3:20 PM
>>> Hi Brett,
>>> 
>>> Soon we will be reaching the limits of my technical knowledge. ;-)
>>> 
>>> Have you tried on a development environment? On a clean copy of 2.9.3 ?  Which database are you using? 
>>> 
>>> Just puzzled why it is working for me, but not for you, and imagining there is an important clue in there. Hopefully someone else will chime in with some better ideas or questions.
>>> 
>>> Thanks,
>>> Neal
>>> 
>>> 
>>> 
>>> 
>>> <Mail Attachment.jpeg>	Brett Parker	August 19, 2014 at 2:40 PM
>>> Neal,
>>>  
>>> We have checked and this happens with classes both created before and after the upgrade.
>>>  
>>> Brett Parker
>>> 
>>> >>> Neal Caidin <neal.caidin at apereo.org> 8/18/2014 12:14 PM >>>
>>> Hi Brett,
>>> 
>>> I cannot reproduce the problem running on a local copy of 2.9.3.  Save and add options works fine and I can take the poll as student role and see the results. Does it happen both for classes that existed before your upgrade and new sites created after your upgrade?
>>> 
>>> Thanks,
>>> Neal
>>> 
>>> 
>>> 
>>> <Mail Attachment.jpeg>	Neal Caidin	August 18, 2014 at 1:14 PM
>>> Hi Brett,
>>> 
>>> I cannot reproduce the problem running on a local copy of 2.9.3.  Save and add options works fine and I can take the poll as student role and see the results. Does it happen both for classes that existed before your upgrade and new sites created after your upgrade?
>>> 
>>> Thanks,
>>> Neal
>>> 
>>> 
>>> 
>>> <Mail Attachment.jpeg>	Brett Parker	August 18, 2014 at 10:02 AM
>>> Greetings,
>>> We just upgraded to Sakai 2.9.3 and for the most part everything has run well. However we had an instructor try creating a Poll and got the following bug report after clicking "Save and add options." Could I get some direction/help on how to fix this problem? It comes up for everyone that tries to use it.
>>>  
>>> Brett Parker
>>>  
>>> *****************************
>>> Technical Details
>>>  
>>> This information will automatically be included in your bug report.
>>>  
>>> org.sakaiproject.portal.api.PortalHandlerException: uk.org.ponder.util.UniversalRuntimeException: Error invoking init method handle on bean rootHandlerBean
>>> --> Error handling request
>>> --> Error invoking action
>>> --> Error invoking method processActionAdd in bean at path pollToolBean.processActionAdd
>>> --> Could not get classmetadata for this object, it may not be persistent: org.sakaiproject.poll.model.Poll at 315d8825[<null>,brparke1,2f7e0d1f-4d16-4816-b842-01bb94658024,<null>,Does this work]
>>> at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
>>> caused by: uk.org.ponder.util.UniversalRuntimeException: Error invoking init method handle on bean rootHandlerBean
>>> --> Error handling request
>>> --> Error invoking action
>>> --> Error invoking method processActionAdd in bean at path pollToolBean.processActionAdd
>>> --> Could not get classmetadata for this object, it may not be persistent: org.sakaiproject.poll.model.Poll at 315d8825[<null>,brparke1,2f7e0d1f-4d16-4816-b842-01bb94658024,<null>,Does this work]
>>> at org.sakaiproject.genericdao.hibernate.HibernateGenericDao.baseGetIdValue(HibernateGenericDao.java:316)
>>> at org.sakaiproject.genericdao.hibernate.HibernateGenericDao.save(HibernateGenericDao.java:666)
>>> 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:597)
>>> at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
>>> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
>>> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>>> at $Proxy53.save(null:-1)
>>> at org.sakaiproject.poll.service.impl.PollListManagerImpl.savePoll(PollListManagerImpl.java:193)
>>> at org.sakaiproject.poll.tool.params.PollToolBean.processActionAdd(PollToolBean.java:182)
>>> 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:597)
>>> 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.reflect.ReflectiveCache.invokeMethod(ReflectiveCache.java:141)
>>> at uk.org.ponder.mapping.support.DARApplier.invokeBeanMethod(DARApplier.java:179)
>>> at uk.org.ponder.rsf.state.support.RSVCApplier.invokeAction(RSVCApplier.java:218)
>>> at uk.org.ponder.rsf.processor.support.RSFActionHandler$1.run(RSFActionHandler.java:189)
>>> at uk.org.ponder.util.CollectingRunnableInvoker$1.run(CollectingRunnableInvoker.java:25)
>>> at uk.ac.cam.caret.sakai.rsf.errors.ExplodingWrapper.invokeRunnable(ExplodingWrapper.java:43)
>>> at uk.ac.cam.caret.sakai.rsf.errors.ExplodingWrapper$$FastClassByCGLIB$$84189308.invoke(<generated>:-1)
>>> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
>>> at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>>> at uk.ac.cam.caret.sakai.rsf.errors.ExplodingWrapper$$EnhancerByCGLIB$$c3d86a11.invokeRunnable(<generated>:-1)
>>> at uk.org.ponder.util.CollectingRunnableInvoker$1.run(CollectingRunnableInvoker.java:29)
>>> at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper.invokeRunnable(BasicScopedAlterationWrapper.java:59)
>>> at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper$$FastClassByCGLIB$$84f89202.invoke(<generated>:-1)
>>> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
>>> at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>>> at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper$$EnhancerByCGLIB$$100f0a2f.invokeRunnable(<generated>:-1)
>>> at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper$$FastClassByCGLIB$$84f89202.invoke(<generated>:-1)
>>> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
>>> at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>>> at uk.org.ponder.rsf.flow.support.BasicScopedAlterationWrapper$$EnhancerByCGLIB$$100f0a2f.invokeRunnable(<generated>:-1)
>>> at uk.org.ponder.util.CollectingRunnableInvoker$1.run(CollectingRunnableInvoker.java:29)
>>> at uk.org.ponder.util.CollectingRunnableInvoker.invokeWrappers(CollectingRunnableInvoker.java:22)
>>> at uk.org.ponder.util.CollectingRunnableInvoker.invokeRunnable(CollectingRunnableInvoker.java:14)
>>> at uk.org.ponder.rsf.processor.support.RSFActionHandler.handle(RSFActionHandler.java:165)
>>> at uk.org.ponder.rsf.processor.support.RSFActionHandler$$FastClassByCGLIB$$e3b6899d.invoke(<generated>:-1)
>>> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
>>> at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
>>> at uk.org.ponder.rsf.processor.support.RSFActionHandler$$EnhancerByCGLIB$$a3edfaa8.handle(<generated>:-1)
>>> at uk.org.ponder.rsf.processor.support.RootHandlerBeanBase.handlePost(RootHandlerBeanBase.java:125)
>>> at uk.org.ponder.rsf.processor.support.RootHandlerBeanBase.handle(RootHandlerBeanBase.java:82)
>>> at sun.reflect.GeneratedMethodAccessor12091.invoke(null:-1)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> 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:722)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
>>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
>>> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:369)
>>> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
>>> at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
>>> at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
>>> at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
>>> at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
>>> at org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:73)
>>> at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1273)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
>>> 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.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
>>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>>> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
>>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
>>> at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:196)
>>> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
>>> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:300)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> at java.lang.Thread.run(Thread.java:662)
>>> 
>>> user: brparke1
>>> usage-session: 6012b0ed-68da-498c-9c6e-96645b83a2db
>>> time: Aug 18, 2014 08:41:46
>>> _______________________________________________
>>> 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"
>> 
>> -- 
>> Neal Caidin
>> Sakai Community Coordinator
>> Apereo Foundation
>> neal.caidin at apereo.org
>> Skype me! (but let me know in advance for the first interaction) - nealkdin
>> 
>> _______________________________________________
>> 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"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140822/11e13767/attachment.html 


More information about the sakai-dev mailing list