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

Apache's JIRA Issue Tracker | Michael Johns | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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:1525)
      2. org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1498)
      2 frames
    3. org.jpox.store
      StoreManager.deleteDependent
      1. org.jpox.store.rdbms.scostore.FKListStore.clear(FKListStore.java:1137)
      2. org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:334)
      3. org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2651)
      4. org.jpox.store.StoreManager.deleteDependent(StoreManager.java:1019)
      4 frames
    4. org.jpox.state
      StateManagerImpl.deletePersistent
      1. org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4405)
      1 frame
    5. org.jpox
      AbstractPersistenceManager.deletePersistent
      1. org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1473)
      2. org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1489)
      2 frames
    6. org.codehaus.plexus
      PlexusJdoUtils.removeObject
      1. org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:121)
      1 frame
    7. org.apache.maven
      ProjectGroupAction.remove
      1. org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:1906)
      2. org.apache.maven.continuum.store.JdoContinuumStore.removeBuildResult(JdoContinuumStore.java:600)
      3. org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:719)
      4. org.apache.maven.continuum.DefaultContinuum.removeProjectGroup(DefaultContinuum.java:278)
      5. org.apache.maven.continuum.web.action.ProjectGroupAction.remove(ProjectGroupAction.java:263)
      5 frames