Continuum
  1. Continuum
  2. CONTINUUM-1630

Error attempting to delete project group

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: Database
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      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)
      [...]

        Activity

        Hide
        Michael Johns added a comment -

        I guess this is really an error trying to delete a project, not a project group. I can't delete them independently either.

        I should also clarify that this is a multi-module project. I just want to delete one of the modules.

        Show
        Michael Johns added a comment - I guess this is really an error trying to delete a project, not a project group. I can't delete them independently either. I should also clarify that this is a multi-module project. I just want to delete one of the modules.
        Hide
        Emmanuel Venisse added a comment -

        Your continuum was installed on a fresh db?

        Show
        Emmanuel Venisse added a comment - Your continuum was installed on a fresh db?
        Hide
        Michael Johns added a comment -

        Yes. Fresh install. Fresh DB. I've added 4 multi-module projects with no issues. Now I'm trying to delete one. I've never deleted anything before.

        Show
        Michael Johns added a comment - Yes. Fresh install. Fresh DB. I've added 4 multi-module projects with no issues. Now I'm trying to delete one. I've never deleted anything before.
        Hide
        Emmanuel Venisse added a comment -

        Done.

        Show
        Emmanuel Venisse added a comment - Done.
        Hide
        Michael Johns added a comment -

        Emmanuel, is there any known workaround for this with a 1.1 installation, or am I stuck waiting on 1.2? I've tried deleting things (project, build definitions, builds) in every order I can think of, but I can't get anything to delete cleanly. I can always crack open the database, but I'd prefer not to.

        Show
        Michael Johns added a comment - Emmanuel, is there any known workaround for this with a 1.1 installation, or am I stuck waiting on 1.2? I've tried deleting things (project, build definitions, builds) in every order I can think of, but I can't get anything to delete cleanly. I can always crack open the database, but I'd prefer not to.

          People

          • Assignee:
            Emmanuel Venisse
            Reporter:
            Michael Johns
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: