javax.jdo.JDODataStoreException: Exception thrown flushing changes to datastore

GitHub | jrmartin | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 509#231358635

    GitHub | 8 months ago | jrmartin
    javax.jdo.JDODataStoreException: Exception thrown flushing changes to datastore
  2. 0

    GitHub comment 21#183388062

    GitHub | 1 year ago | tarelli
    javax.jdo.JDODataStoreException: Exception thrown flushing changes to datastore
  3. 0

    Unable to catch any of Hibernate exceptions in code

    Stack Overflow | 2 years ago | John Solomon
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why hibernate doesn't remove my empty collection?

    Stack Overflow | 3 years ago | placplacboom
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
  6. 0

    Hibernate mapping one-to-many problem

    Stack Overflow | 6 years ago | Xorty
    org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. MySQL jdbc
    PreparedStatement.executeBatch
    1. com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1666)
    2. com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1082)
    2 frames
  3. DataNucleus RDBMS plugin
    SQLController$1.transactionFlushed
    1. org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:279)
    2. org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:279)
    3. org.datanucleus.store.rdbms.ParamLoggingPreparedStatement.executeBatch(ParamLoggingPreparedStatement.java:366)
    4. org.datanucleus.store.rdbms.SQLController.processConnectionStatement(SQLController.java:676)
    5. org.datanucleus.store.rdbms.SQLController.processStatementsForConnection(SQLController.java:644)
    6. org.datanucleus.store.rdbms.SQLController$1.transactionFlushed(SQLController.java:731)
    6 frames
  4. DataNucleus Core
    TransactionImpl.commit
    1. org.datanucleus.store.connection.AbstractManagedConnection.transactionFlushed(AbstractManagedConnection.java:89)
    2. org.datanucleus.store.connection.ConnectionManagerImpl$2.transactionFlushed(ConnectionManagerImpl.java:450)
    3. org.datanucleus.TransactionImpl.flush(TransactionImpl.java:212)
    4. org.datanucleus.TransactionImpl.commit(TransactionImpl.java:276)
    4 frames
  5. DataNucleus JDO API plugin
    JDOTransaction.commit
    1. org.datanucleus.api.jdo.JDOTransaction.commit(JDOTransaction.java:107)
    1 frame
  6. org.geppetto.persistence
    GeppettoDataManager.deleteExperiment
    1. org.geppetto.persistence.db.DBManager.deleteEntity(DBManager.java:197)
    2. org.geppetto.persistence.GeppettoDataManager.deleteExperiment(GeppettoDataManager.java:332)
    2 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    4. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    5. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    7. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    7 frames
  9. com.sun.proxy
    $Proxy111.deleteExperiment
    1. com.sun.proxy.$Proxy111.deleteExperiment(Unknown Source)
    1 frame
  10. org.geppetto.simulation
    GeppettoManager.deleteExperiment
    1. org.geppetto.simulation.manager.GeppettoManager.deleteExperiment(GeppettoManager.java:425)
    1 frame
  11. org.geppetto.frontend
    WebsocketConnection.onTextMessage
    1. org.geppetto.frontend.controllers.ConnectionHandler.deleteExperiment(ConnectionHandler.java:797)
    2. org.geppetto.frontend.controllers.WebsocketConnection.onTextMessage(WebsocketConnection.java:298)
    2 frames
  12. org.apache.catalina
    StreamInbound.onData
    1. org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)
    2. org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)
    3. org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
    3 frames
  13. org.apache.coyote
    UpgradeProcessor.upgradeDispatch
    1. org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
    1 frame
  14. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587)
    2. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    2 frames
  15. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames