Forum LAMS for Tech-Heads - General Forum: Error when trying to add new integrated server


 
You may request notification for Error when trying to add new integrated server.
Search: 

1: Error when trying to add new integrated server
03/24/11 02:17 PM
[ Reply | Forward ]
Hi
On LAMS 2.3.5 I get the following error when trying to add a new integrated Moodle server - any ideas on how to problem solve this greatly appreciated. They are running on different servers and have checked that the LAMS box can connect to the moodle server ok.
Thanks
Glen

org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs) Hide detail
org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs) at org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:49) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:82) at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:190) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:70) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:716) at org.springframework.orm.hibernate3.SessionFactoryUtils$SpringSessionSynchronization.beforeCommit(SessionFactoryUtils.java:884) at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:661) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:486) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:473) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:267) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:623) at org.lamsfoundation.lams.integration.service.IntegrationService$$EnhancerByCGLIB$$281dd714.saveExtServerOrgMap() at org.lamsfoundation.lams.admin.web.ServerSaveAction.execute(ServerSaveAction.java:160) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.lamsfoundation.lams.web.filter.LocaleFilter.doFilterInternal(LocaleFilter.java:142) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.lamsfoundation.lams.web.session.SystemSessionFilter.doFilter(SystemSessionFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.lamsfoundation.lams.integration.security.SingleSignOn.invoke(SingleSignOn.java:121) at org.lamsfoundation.lams.integration.security.LoginRequestValve.invoke(LoginRequestValve.java:67) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:662)

Posted by Glen Davies

2: Re: Error when trying to add new integrated server
In response to 1 03/27/11 11:23 AM
[ Reply | Forward ]
Glen,

Are you building from source or using the LAMS 2.3.5 installer?

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Error when trying to add new integrated server
In response to 2 03/27/11 01:17 PM
[ Reply | Forward ]
We used the 2.3.5 installer.

Posted by Glen Davies

4: Re: Re: Re: Error when trying to add new integrated server
In response to 3 03/27/11 02:13 PM
[ Reply | Forward ]
Sorry, I forgot to ask before: Is this running on Windows or Unix?

Also, did you upgrade an existing installation or clear install?

Thanks

Posted by Ernie Ghiglione

5: Re: Error when trying to add new integrated server
In response to 4 03/28/11 03:46 AM
[ Reply | Forward ]
Sorry Ernie - should have given you much more detail to start with :-(

It is on Ubuntu LTS 10.04, with java-6-sun-1.6.0.24

We upgraded from a previous version of LAMS, and have not added any integrated servers since upgrade - we were probably on about 2.1 the last time we added an integrated server.

Glen

Posted by Glen Davies

6: Re: Re: Error when trying to add new integrated server
In response to 5 03/28/11 11:27 AM
[ Reply | Forward ]
Hi Glen,

I think there were some changes done in 2.3.5 regarding integrations but it looks like on upgrade from 2.3.4 there weren't picked up.

So I'm thinking that a sql script to upgrade the DB will be required.

Let me have a closer look and tell you what the require steps you'll need to fix this.

Thanks,

Ernie

Posted by Ernie Ghiglione

7: Re: Re: Error when trying to add new integrated server
In response to 5 03/28/11 11:33 AM
[ Reply | Forward ]
Glen,

Can you confirm whether in your LAMS db you have a table called: lams_ext_server_lesson_map?

Run a "desc lams_ext_server_lesson_map" in your mysql prompt and if you could paste the output here will be great.

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum