continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Catherine Tan (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (CONTINUUM-2552) JDOException when deleting a project
Date Wed, 04 Aug 2010 13:27:32 GMT
JDOException when deleting a project
------------------------------------

                 Key: CONTINUUM-2552
                 URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message