javax.ejb.EJBTransactionRolledbackException

The transaction has been marked rollback only because the bean encountered a non-application exception :org.apache.openjpa.persistence.OptimisticLockException : Optimistic locking errors were detected when flushing to the data store. The following objects may have been concurrently modified in another transaction: [ai.ilikeplaces.entities.Url-Url{url='5@akila.com', type=0}]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web11

Stack trace

  • javax.ejb.EJBTransactionRolledbackException: The transaction has been marked rollback only because the bean encountered a non-application exception :org.apache.openjpa.persistence.OptimisticLockException : Optimistic locking errors were detected when flushing to the data store. The following objects may have been concurrently modified in another transaction: [ai.ilikeplaces.entities.Url-Url{url='5@akila.com', type=0}] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:363)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:291)[openejb-core-3.1.jar:3.1] at $Proxy92.doUHumansPublicURL(Unknown Source)[na:na] at ai.ilikeplaces.logic.crud.HumanCRUDHuman.doUHumansPublicURL(HumanCRUDHuman.java:305)[HumanCRUDHuman.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at ai.ilikeplaces.util.RuntimeExceptionWrapper.profile(RuntimeExceptionWrapper.java:21)[RuntimeExceptionWrapper.class:na] at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at ai.ilikeplaces.util.MethodParams.profile(MethodParams.java:44)[MethodParams.class:na] at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at ai.ilikeplaces.util.MethodTimer.profile(MethodTimer.java:46)[MethodTimer.class:na] at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at ai.ilikeplaces.util.ParamValidator.validate(ParamValidator.java:48)[ParamValidator.class:na] at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:211)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:169)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:286)[openejb-core-3.1.jar:3.1] at $Proxy80.doUHumansPublicURL(Unknown Source)[na:na] at ai.ilikeplaces.logic.Listeners.widgets.Profile$2.handleEvent(Profile.java:90)[Profile$2.class:na] at org.itsnat.impl.core.listener.EventListenerUtil.handleEventListeners(EventListenerUtil.java:38)[ItsNat.jar:0.7] at org.itsnat.impl.core.listener.EventListenerUtil.handleEventListeners(EventListenerUtil.java:59)[ItsNat.jar:0.7] at org.itsnat.impl.core.listener.EventListenerUtil.handleEventIncludingGlobalListeners(EventListenerUtil.java:86)[ItsNat.jar:0.7] at org.itsnat.impl.core.listener.ItsNatDOMEventListenerWrapperImpl.handleEvent(ItsNatDOMEventListenerWrapperImpl.java:150)[ItsNat.jar:0.7] at org.itsnat.impl.core.listener.domstd.ItsNatDOMStdEventListenerWrapperImpl.handleEvent(ItsNatDOMStdEventListenerWrapperImpl.java:73)[ItsNat.jar:0.7] at org.itsnat.impl.core.listener.ItsNatDOMEventListenerWrapperImpl.processEvent(ItsNatDOMEventListenerWrapperImpl.java:115)[ItsNat.jar:0.7] at org.itsnat.impl.core.resp.norm.ResponseNormalEventImpl.processEvent(ResponseNormalEventImpl.java:75)[ItsNat.jar:0.7] at org.itsnat.impl.core.resp.norm.ResponseNormalEventImpl.process(ResponseNormalEventImpl.java:59)[ItsNat.jar:0.7] at org.itsnat.impl.core.resp.ResponseImpl.process(ResponseImpl.java:77)[ItsNat.jar:0.7] at org.itsnat.impl.core.req.norm.RequestNormalEventImpl.processClientDocumentThreadSync(RequestNormalEventImpl.java:120)[ItsNat.jar:0.7] at org.itsnat.impl.core.req.norm.RequestNormalEventImpl$1.syncMethod(RequestNormalEventImpl.java:105)[ItsNat.jar:0.7] at org.itsnat.impl.core.doc.ItsNatDocSynchronizerImpl.exec(ItsNatDocSynchronizerImpl.java:56)[ItsNat.jar:0.7] at org.itsnat.impl.core.req.norm.RequestNormalEventImpl.processClientDocument(RequestNormalEventImpl.java:108)[ItsNat.jar:0.7] at org.itsnat.impl.core.req.norm.RequestNormalEventImpl.processClientDocument(RequestNormalEventImpl.java:85)[ItsNat.jar:0.7] at org.itsnat.impl.core.req.RequestEventImpl.process(RequestEventImpl.java:137)[ItsNat.jar:0.7] at org.itsnat.impl.core.ItsNatServletRequestImpl.process(ItsNatServletRequestImpl.java:212)[ItsNat.jar:0.7] at org.itsnat.impl.core.http.ItsNatHttpServletImpl.processRequest(ItsNatHttpServletImpl.java:56)[ItsNat.jar:0.7] at org.itsnat.impl.core.http.ItsNatHttpServletImpl.processRequest(ItsNatHttpServletImpl.java:61)[ItsNat.jar:0.7] at org.itsnat.core.http.HttpServletWrapper.processRequest(HttpServletWrapper.java:79)[ItsNat.jar:0.7] at org.itsnat.core.http.HttpServletWrapper.doPost(HttpServletWrapper.java:104)[ItsNat.jar:0.7] at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)[servlet-api.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)[servlet-api.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:na] at ai.ilikeplaces.servlets.filters.LogoutNRedirect.doFilter(LogoutNRedirect.java:68)[LogoutNRedirect.class:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[catalina.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)[catalina.jar:na] at org.apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)[openejb-tomcat-catalina-3.1.jar:3.1] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)[catalina.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[catalina.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[catalina.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)[catalina.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)[tomcat-coyote.jar:na] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)[tomcat-coyote.jar:na] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)[tomcat-coyote.jar:na] at java.lang.Thread.run(Thread.java:619)[na:1.6.0_16] Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has been marked rollback only because the bean encountered a non-application exception :org.apache.openjpa.persistence.OptimisticLockException : Optimistic locking errors were detected when flushing to the data store. The following objects may have been concurrently modified in another transaction: [ai.ilikeplaces.entities.Url-Url{url='5@akila.com', type=0}] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:345)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:291)[openejb-core-3.1.jar:3.1] at $Proxy101.create(Unknown Source)[na:na] at ai.ilikeplaces.logic.crud.unit.UHumansIdentity.doUHumansPublicURL(UHumansIdentity.java:53)[UHumansIdentity.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_16] at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:211)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:169)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)[openejb-core-3.1.jar:3.1] at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:286)[openejb-core-3.1.jar:3.1] ... 78 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,