Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
entity-stacktrace
28-Jun-2018 10:36:34.527 ERROR [http-nio-20013-exec-9] org.sakaiproject.entitybroker.impl.external.SakaiExternalIntegrationProvider.handleEntityError Direct request failure: InvalidDataAccessApiUsageException:detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl:Direct request failure: InvalidDataAccessApiUsageException:detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl:
Sakai version: 19-SNAPSHOT(224b9920)
Server: trunk-mysql.nightly.sakaiproject.org(ip-172-31-7-189) [ip-172-31-7-189-1530159836089]
Request URI: /direct/syllabus/0.json
Path Info: /syllabus/0.json
Context path: /direct
Method: POST
Server: ip-172-31-7-189-1530159836089
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Browser ID: Mac-Mozilla
IP address: 68.199.58.195
User ID: 5fc56519-b6f7-4407-bf0c-d991bc2ecf93
User EID: instructor1
User Display ID: instructor1
Full stacktrace:
InvalidDataAccessApiUsageException:detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl:
28-Jun-2018 10:36:34.528 WARN [http-nio-20013-exec-9] org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch Direct request failure: InvalidDataAccessApiUsageException:detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl:Direct request failure: InvalidDataAccessApiUsageException:detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl:
Sakai version: 19-SNAPSHOT(224b9920)
Server: trunk-mysql.nightly.sakaiproject.org(ip-172-31-7-189) [ip-172-31-7-189-1530159836089]
Request URI: /direct/syllabus/0.json
Path Info: /syllabus/0.json
Context path: /direct
Method: POST
Server: ip-172-31-7-189-1530159836089
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Browser ID: Mac-Mozilla
IP address: 68.199.58.195
User ID: 5fc56519-b6f7-4407-bf0c-d991bc2ecf93
User EID: instructor1
User Display ID: instructor1
:{}
org.springframework.dao.InvalidDataAccessApiUsageException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl
at org.springframework.orm.hibernate4.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:187)
at org.springframework.orm.hibernate4.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:730)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:592)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:518)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:292)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy148.addSyllabusToSyllabusItem(Unknown Source)
at org.sakaiproject.tool.syllabus.entityproviders.SyllabusEntityProvider.updateEntity(SyllabusEntityProvider.java:332)
at org.sakaiproject.entitybroker.rest.EntityHandlerImpl.handleEntityAccess(EntityHandlerImpl.java:696)
at org.sakaiproject.entitybroker.util.servlet.DirectServlet.dispatch(DirectServlet.java:189)
at org.sakaiproject.entitybroker.servlet.SakaiDirectServlet.dispatch(SakaiDirectServlet.java:148)
at org.sakaiproject.entitybroker.util.servlet.DirectServlet.handleRequest(DirectServlet.java:159)
at org.sakaiproject.entitybroker.util.servlet.DirectServlet.service(DirectServlet.java:134)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sakaiproject.oauth.filter.OAuthPostFilter.doFilter(OAuthPostFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:475)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.sakaiproject.oauth.filter.OAuthPreFilter.doFilter(OAuthPreFilter.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:412)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1385)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist: org.sakaiproject.component.app.syllabus.SyllabusDataImpl
at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:139)
at org.hibernate.internal.SessionImpl.firePersistOnFlush(SessionImpl.java:838)
at org.hibernate.internal.SessionImpl.persistOnFlush(SessionImpl.java:831)
at org.hibernate.engine.spi.CascadingActions$8.cascade(CascadingActions.java:357)
at org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:379)
at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:319)
at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:296)
at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
at org.hibernate.event.internal.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:167)
at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:158)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:91)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:425)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)
... 46 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.