javax.jdo.JDOUserException: One or more instances could not be deleted

grokbase.com | 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

    When trying to delete a project group: javax.jdo.JDOUserException: One or more instances could not be deleted NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: DELETE FROM PROJECTDEPENDENCY WHERE PROJECTDEPENDENCY_ID=? NestedThrowables: SQL Exception: DELETE on table 'PROJECTDEPENDENCY' caused a violation of foreign key constraint 'PROJECT_FK2' for key (5107). The statement has been rolled back. A snippet of the stack trace: javax.jdo.JDOUserException: One or more instances could not be deleted at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1525) at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1498) at org.jpox.store.rdbms.scostore.FKListStore.clear(FKListStore.java:1137) at org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:334) at org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2651) at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:1019) at org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4405) at org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1473) at org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1489) at org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:121) at org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:1906) at org.apache.maven.continuum.store.JdoContinuumStore.removeBuildResult(JdoContinuumStore.java:600) at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:719) at org.apache.maven.continuum.DefaultContinuum.removeProjectGroup(DefaultContinuum.java:278) at org.apache.maven.continuum.web.action.ProjectGroupAction.remove(ProjectGroupAction.java:263) [...]

    Apache's JIRA Issue Tracker | 8 years ago | Michael Johns
    javax.jdo.JDOUserException: One or more instances could not be deleted

    Root Cause Analysis

    1. javax.jdo.JDOUserException

      One or more instances could not be deleted

      at org.jpox.AbstractPersistenceManager.deletePersistentAll()
    2. org.jpox
      AbstractPersistenceManager.deletePersistentAll
      1. org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1438)
      1 frame
    3. org.jpox.store
      StoreManager.deleteDependent
      1. org.jpox.store.rdbms.scostore.ElementContainerStore.clear(ElementContainerStore.java:595)
      2. org.jpox.store.mapping.CollectionMapping.preDelete(CollectionMapping.java:304)
      3. org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:332)
      4. org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2280)
      5. org.jpox.store.StoreManager.deleteDependent(StoreManager.java:838)
      5 frames
    4. org.jpox.state
      StateManagerImpl.deletePersistent
      1. org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4049)
      1 frame
    5. org.jpox
      AbstractPersistenceManager.deletePersistent
      1. org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1391)
      2. org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1402)
      2 frames
    6. org.codehaus.plexus
      PlexusJdoUtils.removeObject
      1. org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:53)
      1 frame
    7. org.apache.maven
      DefaultContinuum.removeProject
      1. org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:969)
      2. org.apache.maven.continuum.store.JdoContinuumStore.removeProject(JdoContinuumStore.java:901)
      3. org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:328)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    9. OGNL - Object Graph Navigation Library
      Ognl.getValue
      1. ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)
      2. ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)
      3. ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)
      4. ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)
      5. ognl.ASTMethod.getValueBody(ASTMethod.java:75)
      6. ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      7. ognl.SimpleNode.getValue(SimpleNode.java:210)
      8. ognl.Ognl.getValue(Ognl.java:333)
      9. ognl.Ognl.getValue(Ognl.java:378)
      10. ognl.Ognl.getValue(Ognl.java:357)
      10 frames
    10. org.codehaus.plexus
      Summit.doPost
      1. org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation(DeleteEntity.java:57)
      2. org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.java:47)
      3. org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
      4. org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
      5. org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
      6. org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
      6 frames
    11. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      2 frames
    12. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
      3 frames
    13. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
      1 frame
    14. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
      1 frame
    15. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:879)
      3. org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
      4. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
      5. org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
      6. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
      6 frames
    16. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
      2 frames