Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-2338

unable to export user db

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.2.3.1
    • 1.3.6
    • Data Management
    • None

    Description

      executing
      java -Xmx512m -jar data-management-cli-1.2.3.1-app.jar -buildsJdbcUrl jdbc:derby:continuum/database/continuum -usersJdbcUrl jdbc:derby:continuum/database/users -mode EXPORT -overwrite

      I get
      ...
      13956 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table PROJECTNOTIFIER_CONFIGURATION
      13962 [main] INFO JPOX.RDBMS - Validated 1 foreign key(s) for table PROJECTNOTIFIER_CONFIGURATION
      13968 [main] INFO JPOX.RDBMS - Validated 2 index(es) for table PROJECTNOTIFIER_CONFIGURATION
      13984 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table PROJECT_NOTIFIERS
      13997 [main] INFO JPOX.RDBMS - Validated 2 foreign key(s) for table PROJECT_NOTIFIERS
      14007 [main] INFO JPOX.RDBMS - Validated 3 index(es) for table PROJECT_NOTIFIERS
      127522 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.apache.continuum.model.repository.AbstractPurgeConfiguration [Table : ABSTRACTPURGECONFIGURATION, InheritanceStrategy : new-table]
      127522 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.apache.continuum.model.repository.RepositoryPurgeConfiguration [Table : REPOSITORYPURGECONFIGURATION, InheritanceStrategy : new-table]
      127580 [main] INFO JPOX.RDBMS - Validated 2 unique key(s) for table REPOSITORYPURGECONFIGURATION
      127586 [main] INFO JPOX.RDBMS - Validated 2 foreign key(s) for table REPOSITORYPURGECONFIGURATION
      127589 [main] INFO JPOX.RDBMS - Validated 3 index(es) for table REPOSITORYPURGECONFIGURATION
      127593 [main] INFO JPOX.RDBMS - Validated 1 unique key(s) for table ABSTRACTPURGECONFIGURATION
      127597 [main] INFO JPOX.RDBMS - Validated 1 foreign key(s) for table ABSTRACTPURGECONFIGURATION
      127600 [main] INFO JPOX.RDBMS - Validated 2 index(es) for table ABSTRACTPURGECONFIGURATION
      127683 [main] INFO JPOX.RDBMS.Schema - Managing Persistence of Class : org.apache.continuum.model.repository.DirectoryPurgeConfiguration [Table : DIRECTORYPURGECONFIGURATION, InheritanceStrategy : new-table]
      127732 [main] INFO JPOX.RDBMS - Validated 2 unique key(s) for table DIRECTORYPURGECONFIGURATION
      127736 [main] INFO JPOX.RDBMS - Validated 1 foreign key(s) for table DIRECTORYPURGECONFIGURATION
      127739 [main] INFO JPOX.RDBMS - Validated 2 index(es) for table DIRECTORYPURGECONFIGURATION
      130305 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
      134987 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
      135249 [main] INFO JPOX.JDO - PersistenceManagerFactory - Vendor: JPOX Version: 1.1.6
      135250 [main] INFO JPOX.JDO - PersistenceManagerFactory initialised for datastore URL=jdbc:derby:continuum/database/users driver=org.apache.derby.jdbc.EmbeddedDriver userName=sa
      136463 [main] INFO JPOX.RDBMS - ================ DatabaseAdapter ==================
      136464 [main] INFO JPOX.RDBMS - Adapter : org.jpox.store.rdbms.adapter.DerbyAdapter
      136464 [main] INFO JPOX.RDBMS - Datastore : name="Apache Derby" version="10.1.3.1" (major=10, minor=1, revision=3)
      136464 [main] INFO JPOX.RDBMS - Driver : name="Apache Derby Embedded JDBC Driver" version="10.1.3.1" (major=10, minor=1)
      136464 [main] INFO JPOX.RDBMS - ===================================================
      136513 [main] INFO JPOX.RDBMS.Schema - Initialising Catalog "", Schema "SA" using "SchemaTable" auto-start option
      137205 [main] INFO JPOX.RDBMS.Schema - Catalog "", Schema "SA" initialised - managing 0 classes
      137230 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
      Exception in thread "main" org.jpox.metadata.InvalidMetaDataException: Error in MetaData for field "localRepository" in class "ProjectGroup" : this is declared as org.apache.continuum.model.repository.LocalRepository with "persistence-modifier=none" yet has either "default-fetch-group=true" or "primary-key=true" specified! These should be false.
      at org.jpox.metadata.AbstractPropertyMetaData.populate(AbstractPropertyMetaData.java:820)
      at org.jpox.metadata.ClassMetaData.populatePropertyMetaData(ClassMetaData.java:434)
      at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:251)
      at org.jpox.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:1060)
      at org.jpox.metadata.JDOMetaDataManager.loadMetaDataForClass(JDOMetaDataManager.java:608)
      at org.jpox.metadata.JDOMetaDataManager.getMetaDataForClassInternal(JDOMetaDataManager.java:313)
      at org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:377)
      at org.jpox.AbstractPersistenceManager.hasMetaDataForPersistenceCapableClass(AbstractPersistenceManager.java:4109)
      at org.jpox.AbstractPersistenceManager.assertPersistenceCapableClass(AbstractPersistenceManager.java:4139)
      at org.jpox.AbstractPersistenceManager.getExtent(AbstractPersistenceManager.java:2323)
      at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:358)
      at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
      at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:335)
      at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:330)
      at org.codehaus.plexus.redback.keys.jdo.JdoKeyManager.getAllKeys(JdoKeyManager.java:143)
      at org.codehaus.plexus.redback.management.JdoDataManagementTool.backupKeyDatabase(JdoDataManagementTool.java:112)
      at org.apache.maven.continuum.management.redback.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:66)
      at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:265)
      at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:177)

      the build.xml export seems to be correct.

      Attachments

        1. builds.xml.gz
          701 kB
          Luca Di Stefano

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucadistefano Luca Di Stefano
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: