java.lang.RuntimeException

General Error: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions; nested exception is <2|false|4.0.0> kodo.jdo.DataStoreException: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions

Solutions on the web33505

  • via Oracle Community by 666705, 1 year ago
    General Error: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions; nested exception is <2|false|4.0.0> kodo.jdo.DataStoreException: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions
  • via Google Groups by neyric, 1 year ago
    java.sql.SQLException: Can't call commit when autocommit=true
  • java.sql.SQLException: Can't call commit when autocommit=true
  • Stack trace

    • java.lang.RuntimeException: General Error: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions; nested exception is <2|false|4.0.0> kodo.jdo.DataStoreException: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions at com.ottogroup.buying.bgp.changeexport.ChangeExportMDB.doWork(ChangeExportMDB.java:16) at com.otto.batch.mdb.BgWorkBean.prepareWork(BgWorkBean.java:242) at com.otto.batch.mdb.BgWorkBean.onMessage(BgWorkBean.java:108) at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:426) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:332) at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:288) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824) at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738) at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4228) at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:179) Caused by: org.springframework.orm.jdo.JdoResourceFailureException: Unexpected exception in beforeCompletion: sync=kodo. kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions; nested exception is <2|false|4.0.0> kodo.jdo.DataStoreException: Unexpected exception in beforeCompletion: sync=kodo.kernel.BrokerImpl@2edf50 Cannot call commit when using distributed transactions at org.springframework.orm.jdo.PersistenceManagerFactoryUtils.convertJdoAccessException(PersistenceManagerFactoryUtils.java:230) at org.springframework.orm.jdo.DefaultJdoDialect.translateException(DefaultJdoDialect.java:292) at org.springframework.orm.jdo.JdoTransactionManager.convertJdoAccessException(JdoTransactionManager.java:457) at org.springframework.orm.jdo.JdoTransactionManager.doCommit(JdoTransactionManager.java:380) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:500) 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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.