javax.jdo.JDODataStoreException

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.

  • GitHub comment 509#231358635
    via GitHub by jrmartin
    ,
  • GitHub comment 21#183388062
    via GitHub by tarelli
    ,
  • Hibernate mapping one-to-many problem
    via Stack Overflow by Xorty
    ,
    • javax.jdo.JDODataStoreException: Exception thrown flushing changes to datastore at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:546) at org.datanucleus.api.jdo.JDOTransaction.commit(JDOTransaction.java:171) at org.geppetto.persistence.db.DBManager.deleteEntity(DBManager.java:197) at org.geppetto.persistence.GeppettoDataManager.deleteExperiment(GeppettoDataManager.java:332) 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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy111.deleteExperiment(Unknown Source) at org.geppetto.simulation.manager.GeppettoManager.deleteExperiment(GeppettoManager.java:425) at org.geppetto.frontend.controllers.ConnectionHandler.deleteExperiment(ConnectionHandler.java:797) at org.geppetto.frontend.controllers.WebsocketConnection.onTextMessage(WebsocketConnection.java:298) at org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74) at org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186) at org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134) at org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails (`geppetto`.`geppettoproject_experiments`, CONSTRAINT `GEPPETTOPROJECT_EXPERIMENTS_FK2` FOREIGN KEY (`ID_EID`) REFERENCES `experiment` (`ID`)) at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1666) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1082) at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:279) at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:279) at org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeBatch(ParamLoggingPreparedStatement.java:366) at org.datanucleus.store.rdbms.SQLController.processConnectionStatement(SQLController.java:676) at org.datanucleus.store.rdbms.SQLController.processStatementsForConnection(SQLController.java:644) at org.datanucleus.store.rdbms.SQLController$1.transactionFlushed(SQLController.java:731) at org.datanucleus.store.connection.AbstractManagedConnection.transactionFlushed(AbstractManagedConnection.java:89) at org.datanucleus.store.connection.ConnectionManagerImpl$2.transactionFlushed(ConnectionManagerImpl.java:450) at org.datanucleus.TransactionImpl.flush(TransactionImpl.java:212) at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:276) at org.datanucleus.api.jdo.JDOTransaction.commit(JDOTransaction.java:107)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    linxiaolong
    162 times, last one,
    Unknown visitor1 times, last one,
    mortalman7
    32 times, last one,
    6 more bugmates