org.apache.openjpa.persistence.RollbackException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [Open JPA 2.2.2] Missing SQL statements
    via by Datin Benoit,
  • Re: Standalone Example
    via by Trenton D. Adams,
  • OpenJPA Users - Standalone Example
    via by Unknown author,
  • We have just discovered a critical bug in the library preventing our program from operating. The problem comes from an NPE generated when there is one too many calls on the iterator of a collection, causing this type of stack trace: <openjpa-2.2.1-r422266:1396819 fatal store error> org.apache.openjpa.persistence.RollbackException: null at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:594) at com.qualiformed.qualinax.platform.dao.GenericDAO.update(GenericDAO.java:136) at com.qualiformed.qualinax.platform.dao.SettingDAO.persist(SettingDAO.java:54) at com.qualiformed.qualinax.application.QualinaxConfig.save(QualinaxConfig.java:509) at com.qualiformed.qualinax.application.model.LancerQualimagiQModel.supprimerSettingsQualimagiQ(LancerQualimagiQModel.java:103) at com.qualiformed.qualinax.application.controller.QualimagiqController.setupAnalysis(QualimagiqController.java:371) at com.qualiformed.qualinax.application.controller.QualimagiqProcessor$8$1.doInBackground(QualimagiqProcessor.java:449) at com.qualiformed.qualinax.application.controller.QualimagiqProcessor$8$1.doInBackground(QualimagiqProcessor.java:446) at javax.swing.SwingWorker$1.call(SwingWorker.java:277) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:316) 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) Caused by: <openjpa-2.2.1-r422266:1396819 nonfatal general error> org.apache.openjpa.persistence.PersistenceException: null at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:2000) at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81) at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1516) at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:933) at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:570) ... 14 more Caused by: java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796) at java.util.HashMap$KeyIterator.next(HashMap.java:828) at org.apache.openjpa.jdbc.meta.strats.HandlerRelationMapTableFieldStrategy.update(HandlerRelationMapTableFieldStrategy.java:320) at org.apache.openjpa.jdbc.meta.FieldMapping.update(FieldMapping.java:699) at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.update(AbstractUpdateManager.java:343) at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.update(AbstractUpdateManager.java:370) at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.populateRowManager(AbstractUpdateManager.java:174) at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:97) at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:78) at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:735) at org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:131) at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2176) at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2074) at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1992) ... 18 more We have created a patch to correct the problem, but I haven't had the time to create the unitary test to reproduce it.
    via by Guillaume Chauvet,
  • OpenJPA Parent Child cascade insert issue
    via Stack Overflow by Rohit
    ,
  • OpenJPA : Cascade Delete issue
    via Stack Overflow by Rohit
    ,
    • org.apache.openjpa.persistence.RollbackException: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred. FailedObject: xms.common.beans.bus.planning.schedule.B_ScheduleElement-224 at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:594) at xms.xserver.common.JPAPersistenceTool.commitTransaction(JPAPersistenceTool.java:193) at xms.xserver.fe.bus.planning.PlanningManager.updateScheduleElement(PlanningManager.java:2126) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at xms.common.util.annotationshandler.RmwoAnnotationHandler.invoke(RmwoAnnotationHandler.java:95) at com.sun.proxy.$Proxy50.updateScheduleElement(Unknown Source) at xms.xserver.fe.bus.planning.actions.UpdateScheduleElementAction.execute(UpdateScheduleElementAction.java:63) at xms.common.xcommand.XCommand.performAction(XCommand.java:219) at xms.xserver.fe.inter.impl.sys.session.I_Server_impl_tie.sendCommand(I_Server_impl_tie.java:715) at xms.xserver.fe.inter.gen.sys.session.I_ServerPOATie.sendCommand(I_ServerPOATie.java:204) at xms.xserver.fe.inter.gen.sys.session.I_ServerPOA._invoke_sendCommand(I_ServerPOA.java:350) at xms.xserver.fe.inter.gen.sys.session.I_ServerPOA.access$3500(I_ServerPOA.java:8) at xms.xserver.fe.inter.gen.sys.session.I_ServerPOA$Operation_sendCommand.invoke(I_ServerPOA.java:571) at xms.xserver.fe.inter.gen.sys.session.I_ServerPOA._invoke(I_ServerPOA.java:83) at org.openorb.orb.adapter.poa.POA.dispatch(POA.java:1493) at org.openorb.orb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:889) at org.openorb.orb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1601) at org.openorb.orb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1526) at org.openorb.orb.net.ServerManagerImpl.access$9(ServerManagerImpl.java:1382) at org.openorb.orb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:2886)
    No Bugmate found.