[ https://jira.codehaus.org/browse/CONTINUUM-2552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter updated CONTINUUM-2552:
------------------------------------
Fix Version/s: (was: 1.4.1)
> JDOException when deleting a project
> ------------------------------------
>
> Key: CONTINUUM-2552
> URL: https://jira.codehaus.org/browse/CONTINUUM-2552
> Project: Continuum
> Issue Type: Bug
> Components: Core system, Database
> Affects Versions: 1.4.0 (Beta)
> Reporter: Maria Catherine Tan
>
> We already set the parent to null, cleared project dependency and modified dependencies
of build result but there are times that Continuum is still throwing a JDOException when deleting
a project.
> Maybe setting the build result's project to null before removing the build result might
help.
> Error Occured
> 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: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:
Cannot delete or update a parent row: a foreign key constraint fails (`continuum107`.`PROJECT`,
CONSTRAINT `PROJECT_FK1` FOREIGN KEY (`PARENT_PROJECTDEPENDENCY_ID_OID`) REFERENCES `PROJECTDEPENDENCY`
(`PROJECTDEPENDENCY_ID`))
> Show/hide Stack Trace
> javax.jdo.JDOUserException: One or more instances could not be deleted
> at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1541)
> at org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1514)
> 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:1076)
> at org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4405)
> at org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1489)
> at org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1505)
> at org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:121)
> at org.apache.continuum.dao.AbstractDao.removeObject(AbstractDao.java:95)
> at org.apache.continuum.dao.BuildResultDaoImpl.removeBuildResult(BuildResultDaoImpl.java:311)
> at org.apache.maven.continuum.DefaultContinuum.removeBuildResult(DefaultContinuum.java:1108)
> at org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:689)
> at org.apache.maven.continuum.web.action.DeleteProjectAction.execute(DeleteProjectAction.java:83)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
|