Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
1.2.3.1
-
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
Attachments
- builds.xml.gz
- 701 kB
- Luca Di Stefano
Issue Links
- is duplicated by
-
CONTINUUM-1926 CLONE -When trying to export the user database -> FileNotFoundException: backups/users/keys.xml (No such file or directory)
- Closed
Activity
1.3 upgrades in place from 1.2 - I'd suggest doing that and taking a backup with 1.3 if you still need an export for other reasons.
assigning to 1.3.5 in that we need to make the sure the documented upgrade path works - whether a 1.2.3.2 is required to fix the data management issue or we simply instruct users to do in place upgrades instead.
I tried to use the 1.3.3 cli but get the following error:
1 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Continuum database...
43821 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
Exception in thread "main" javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT 'org.apache.maven.continuum.model.system.SystemConfiguration' AS JPOXMETADATA,THIS.SYSTEMCONFIGURATION_ID,THIS.BASE_URL,THIS.BUILD_OUTPUT_DIRECTORY,THIS.DEFAULT_SCHEDULE_CRON_EXPRESSION,THIS.DEFAULT_SCHEDULE_DESCRIPTION,THIS.DEPLOYMENT_REPOSITORY_DIRECTORY,THIS.DISTRIBUTED_BUILD_ENABLED,THIS.GUEST_ACCOUNT_ENABLED,THIS.INITIALIZED,THIS.MODEL_ENCODING,THIS.NUMBER_OF_BUILDS_IN_PARALLEL,THIS.RELEASE_OUTPUT_DIRECTORY,THIS.WORKING_DIRECTORY FROM SYSTEMCONFIGURATION THIS" : Column 'THIS.DISTRIBUTED_BUILD_ENABLED' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'THIS.DISTRIBUTED_BUILD_ENABLED' is not a column in the target table..
at org.jpox.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:636)
at org.jpox.store.query.Query.executeWithMap(Query.java:959)
at org.jpox.store.query.Query.executeWithArray(Query.java:932)
at org.jpox.store.query.Query.execute(Query.java:855)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:372)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:158)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:153)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:148)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:143)
at org.apache.continuum.dao.SystemConfigurationDaoImpl.getSystemConfiguration(SystemConfigurationDaoImpl.java:52)
at org.apache.maven.continuum.management.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:174)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:283)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:180)
NestedThrowablesStackTrace:
ERROR 42X04: Column 'THIS.DISTRIBUTED_BUILD_ENABLED' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'THIS.DISTRIBUTED_BUILD_ENABLED' is not a column in the target table.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.ColumnReference.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.ResultColumn.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.ResultColumnList.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.ReadCursorNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.CursorNode.bind(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.jpox.store.rdbms.RDBMSManager.getStatement(RDBMSManager.java:523)
at org.jpox.store.rdbms.query.StatementText.prepareStatement(StatementText.java:215)
at org.jpox.store.rdbms.query.RDBMSQuery.getStatement(RDBMSQuery.java:131)
at org.jpox.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:582)
at org.jpox.store.query.Query.executeWithMap(Query.java:959)
at org.jpox.store.query.Query.executeWithArray(Query.java:932)
at org.jpox.store.query.Query.execute(Query.java:855)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:372)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:158)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:153)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:148)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:143)
at org.apache.continuum.dao.SystemConfigurationDaoImpl.getSystemConfiguration(SystemConfigurationDaoImpl.java:52)
at org.apache.maven.continuum.management.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:174)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:283)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:180)
Hi Luca,
Did you try using 1.3.4 and can I ask for a sample build.xml?
Thanks!
here is the output of export with 1.3.4
java -Xmx512m -jar data-management-cli-1.3.4-app.jar -buildsJdbcUrl jdbc:derby:continuum/database/continuum -usersJdbcUrl jdbc:derby:continuum/database/users -mode EXPORT -directory ba2
eleasePhase#map-release-versions,releasePhase#map-development-versions,releasePhase#map-branch-versions,releasePhase#rewrite-poms-for-release,releasePhase#scm-commit-release,releasePhase#scm-commit-development,releasePhase#scm-commit-branch,releasePhase#rewrite-poms-for-development,releasePhase#scm-commit-rollback,releasePhase#rewrite-poms-for-branch,inputHandler,outputHandler,prompter,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,modelResolver,artifactMetadataSource#maven,mavenProfilesBuilder,wagonManager,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,repositoryMetadataBuilder,mavenSettingsBuilder,scmManager,scmProvider#bazaar,scmProvider#clearcase,scmProvider#cvs_native,scmProvider#cvs,scmProvider#hg,scmProvider#perforce,scmProvider#starteam,scmProvider#svn,scmProvider#synergy,buildDefinitionDao,profileDao,systemConfigurationDao,repositoryPurgeConfigurationDao,buildQueueDao,localRepositoryDao,storeUtilities,buildDefinitionTemplateDao,buildResultDao,projectDao,daoUtils,projectScmRootDao,directoryPurgeConfigurationDao,scheduleDao,continuumReleaseResultDao,notifierDao,projectGroupDao,installationDao]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a62c31
88217 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/home/ex1511/.m2/repository/net/sf/ehcache/ehcache/1.2.4/ehcache-1.2.4.jar!/ehcache-failsafe.xml
92809 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
Exception in thread "main" javax.jdo.JDODataStoreException: Error executing JDOQL query "SELECT 'org.apache.maven.continuum.model.system.SystemConfiguration' AS JPOXMETADATA,THIS.SYSTEMCONFIGURATION_ID,THIS.BASE_URL,THIS.BUILD_OUTPUT_DIRECTORY,THIS.DEFAULT_SCHEDULE_CRON_EXPRESSION,THIS.DEFAULT_SCHEDULE_DESCRIPTION,THIS.DEPLOYMENT_REPOSITORY_DIRECTORY,THIS.DISTRIBUTED_BUILD_ENABLED,THIS.GUEST_ACCOUNT_ENABLED,THIS.INITIALIZED,THIS.NUMBER_OF_BUILDS_IN_PARALLEL,THIS.RELEASE_OUTPUT_DIRECTORY,THIS.WORKING_DIRECTORY FROM SYSTEMCONFIGURATION THIS" : Column 'THIS.DISTRIBUTED_BUILD_ENABLED' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'THIS.DISTRIBUTED_BUILD_ENABLED' is not a column in the target table..
at org.jpox.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:636)
at org.jpox.store.query.Query.executeWithMap(Query.java:959)
at org.jpox.store.query.Query.executeWithArray(Query.java:932)
at org.jpox.store.query.Query.execute(Query.java:855)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:372)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:158)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:153)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:148)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:143)
at org.apache.continuum.dao.SystemConfigurationDaoImpl.getSystemConfiguration(SystemConfigurationDaoImpl.java:52)
at org.apache.maven.continuum.management.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:174)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:309)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:189)
NestedThrowablesStackTrace:
ERROR 42X04: Column 'THIS.DISTRIBUTED_BUILD_ENABLED' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'THIS.DISTRIBUTED_BUILD_ENABLED' is not a column in the target table.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.sql.compile.ColumnReference.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.ResultColumn.bindExpression(Unknown Source)
at org.apache.derby.impl.sql.compile.ResultColumnList.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.SelectNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bindExpressions(Unknown Source)
at org.apache.derby.impl.sql.compile.DMLStatementNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.ReadCursorNode.bind(Unknown Source)
at org.apache.derby.impl.sql.compile.CursorNode.bind(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepMinion(Unknown Source)
at org.apache.derby.impl.sql.GenericStatement.prepare(Unknown Source)
at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement20.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement30.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver30.newEmbedPreparedStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.prepareStatement(Unknown Source)
at org.jpox.store.rdbms.RDBMSManager.getStatement(RDBMSManager.java:523)
at org.jpox.store.rdbms.query.StatementText.prepareStatement(StatementText.java:215)
at org.jpox.store.rdbms.query.RDBMSQuery.getStatement(RDBMSQuery.java:131)
at org.jpox.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:582)
at org.jpox.store.query.Query.executeWithMap(Query.java:959)
at org.jpox.store.query.Query.executeWithArray(Query.java:932)
at org.jpox.store.query.Query.execute(Query.java:855)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:372)
at org.codehaus.plexus.jdo.PlexusJdoUtils.getAllObjectsDetached(PlexusJdoUtils.java:346)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:158)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:153)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:148)
at org.apache.continuum.dao.AbstractDao.getAllObjectsDetached(AbstractDao.java:143)
at org.apache.continuum.dao.SystemConfigurationDaoImpl.getSystemConfiguration(SystemConfigurationDaoImpl.java:52)
at org.apache.maven.continuum.management.JdoDataManagementTool.backupDatabase(JdoDataManagementTool.java:174)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:309)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:189)
94387 [Thread-1] INFO net.sf.ehcache.CacheManager - VM shutting down with the CacheManager still active. Calling shutdown.
I suppose that the export with a cli with different version than the actual running continuum (1.2.3) cannot be done because the jdo objects refers to different schema.
Where I can find the build.xml you need?
oh, sorry you mean the export of continuum db done with the cli 1.2.3.1
thanks
Hi Luca,
Can you try exporting only the users db using 1.3.4?
here the output with 1.3.4 with only usersdb
1 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
97 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Refreshing org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0: display name [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0]; startup date [Thu Oct 01 10:35:46 CEST 2009]; root of context hierarchy
691 [main] INFO org.codehaus.plexus.spring.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
699 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/components.xml]
1268 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/plexus.xml]
1331 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Bean factory for application context [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa
1461 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa: defining beans artifactRepositoryLayout,artifactRepositoryLayout#legacy,artifactHandlerManager,artifactHandler#ejb,artifactHandler#jar,artifactHandler#test-jar,artifactHandler#maven-plugin,artifactHandler#pom,artifactHandler#java-source,artifactHandler#javadoc,artifactHandler#war,artifactHandler#ear,artifactHandler#ejb-client,artifactHandler#rar,artifactHandler#par,artifactHandler#ejb3,artifactFactory,artifactCollector,wagonManager,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,repositoryMetadataBuilder,mavenSettingsBuilder,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#os,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,modelResolver,artifactMetadataSource#maven,mavenProfilesBuilder,mavenPluginRegistryBuilder,wagon#http,wagon#https,loggerManager,jdoFactory#continuum,jdoFactory#users; root of factory hierarchy
48632 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Refreshing org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069: display name [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069]; startup date [Thu Oct 01 10:36:34 CEST 2009]; parent: org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@1a125f0
49575 [main] INFO org.apache.maven.continuum.management.util.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
49637 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/data-management-redback-jdo/1.3.4/data-management-redback-jdo-1.3.4.jar!/META-INF/plexus/components.xml]
49669 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/redback-legacy/1.3.4/redback-legacy-1.3.4.jar!/META-INF/plexus/components.xml]
49681 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-authentication-api/1.0-alpha-5/plexus-security-authentication-api-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
49696 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-policy/1.0-alpha-5/plexus-security-policy-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
49729 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-data-management/1.2.2/redback-data-management-1.2.2.jar!/META-INF/spring-context.xml]
50407 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-rbac-jdo/1.2.2/redback-rbac-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50494 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-common-jdo/1.2.2/redback-common-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50545 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-configuration/1.2.2/redback-configuration-1.2.2.jar!/META-INF/spring-context.xml]
50696 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-expression-evaluator/1.0-alpha-1/plexus-expression-evaluator-1.0-alpha-1.jar!/META-INF/plexus/components.xml]
50713 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/registry/plexus-registry-commons/1.0-alpha-2/plexus-registry-commons-1.0-alpha-2.jar!/META-INF/plexus/components.xml]
50760 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-keys-jdo/1.2.2/redback-keys-jdo-1.2.2.jar!/META-INF/spring-context.xml]
50809 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-digest/1.1/plexus-digest-1.1.jar!/META-INF/plexus/components.xml]
50837 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-users-jdo/1.2.2/redback-users-jdo-1.2.2.jar!/META-INF/spring-context.xml]
51073 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-policy/1.2.2/redback-policy-1.2.2.jar!/META-INF/spring-context.xml]
51163 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Bean factory for application context [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1cc5069]: org.springframework.beans.factory.support.DefaultListableBeanFactory@18adae2
51403 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@18adae2: defining beans dataManagementTool#legacy-redback-jdo,dataManagementTool#redback-jdo,databaseFactoryConfigurator#redback,user#jdo,authenticationKey#jdo,authenticationManager,authenticationDataSource#password,authenticationDataSource#token,rememberMeSettings,singleSignOnSettings,userSecurityPolicy,userValidationSettings,passwordEncoder#sha1,passwordEncoder#sha256,passwordRule#alpha-count,passwordRule#character-length,passwordRule#must-have,passwordRule#numerical-count,passwordRule#reuse,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,dataManagementTool#jdo,rBACManager#jdo,jdoTool,jdoFactory#users,userConfiguration,expressionSource#sysprops,expressionSource#properties,expressionEvaluator,registry#commons-configuration,keyManager#jdo,checksumFile,digester#sha1,streamingDigester#sha1,streamingDigester#md5,digester#md5,userManager#jdo,cookieSettings#rememberMe,passwordEncoder#plaintext,cookieSettings#signon,passwordRule#alpha-numeric,passwordRule#no-whitespaces; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d256fa
52767 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataManagementTool#redback-jdo': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager#jdo': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at org.codehaus.plexus.spring.PlexusContainerAdapter.lookup(PlexusContainerAdapter.java:422)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:304)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager#jdo': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement(PlexusComponentFactoryBean.java:246)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:163)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
... 11 more
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
... 25 more
thanks
Reproduced the same error of Luca using version 1.2.3.1.
But i was able to export the user db of continuum-1.2 using the version 1.3.4 and in trunk ( 1.4.0-SNAPSHOT rev 896786 ).
Hi,
Successful in exporting user db using 1.3.4.
Here's the output i got exporting continuum-1.2 users db using 1.3.4 cli.
gwen@gautencio:~$ java -jar -Xmx512m /home/gwen/Desktop/continuum-1.3.4/continuum-data-management/data-management-cli/target/data-management-cli-1.3.4-app.jar -usersJdbcUrl jdbc:derby:/home/gwen/Desktop/apache-continuum-1.2/data/databases/users/ -mode EXPORT -directory /home/gwen/Desktop/backup/users
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
67 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Refreshing org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@2a340e: display name [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@2a340e]; startup date [Fri Jan 08 10:46:50 PHT 2010]; root of context hierarchy
346 [main] INFO org.codehaus.plexus.spring.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
351 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/Desktop/continuum-1.3.4/continuum-data-management/data-management-cli/target/data-management-cli-1.3.4-app.jar!/META-INF/plexus/components.xml]
544 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/Desktop/continuum-1.3.4/continuum-data-management/data-management-cli/target/data-management-cli-1.3.4-app.jar!/META-INF/plexus/plexus.xml]
624 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Bean factory for application context [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@2a340e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6cb8
678 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6cb8: defining beans artifactRepositoryLayout,artifactRepositoryLayout#legacy,artifactHandlerManager,artifactHandler#ejb,artifactHandler#jar,artifactHandler#test-jar,artifactHandler#maven-plugin,artifactHandler#pom,artifactHandler#java-source,artifactHandler#javadoc,artifactHandler#war,artifactHandler#ear,artifactHandler#ejb-client,artifactHandler#rar,artifactHandler#par,artifactHandler#ejb3,artifactFactory,artifactCollector,wagonManager,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,repositoryMetadataBuilder,mavenSettingsBuilder,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#os,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,modelResolver,artifactMetadataSource#maven,mavenProfilesBuilder,mavenPluginRegistryBuilder,wagon#http,wagon#https,loggerManager,jdoFactory#continuum,jdoFactory#users; root of factory hierarchy
3816 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Refreshing org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@15db314: display name [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@15db314]; startup date [Fri Jan 08 10:46:53 PHT 2010]; parent: org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@2a340e
3967 [main] INFO org.apache.maven.continuum.management.util.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
4026 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/apache/continuum/data-management-redback-jdo/1.3.4/data-management-redback-jdo-1.3.4.jar!/META-INF/plexus/components.xml]
4049 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/apache/continuum/redback-legacy/1.3.4/redback-legacy-1.3.4.jar!/META-INF/plexus/components.xml]
4060 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/plexus/security/plexus-security-authentication-api/1.0-alpha-5/plexus-security-authentication-api-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
4067 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/plexus/security/plexus-security-policy/1.0-alpha-5/plexus-security-policy-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
4098 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-data-management/1.2.2/redback-data-management-1.2.2.jar!/META-INF/spring-context.xml]
4339 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-rbac-jdo/1.2.2/redback-rbac-jdo-1.2.2.jar!/META-INF/spring-context.xml]
4434 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-common-jdo/1.2.2/redback-common-jdo-1.2.2.jar!/META-INF/spring-context.xml]
4483 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-configuration/1.2.2/redback-configuration-1.2.2.jar!/META-INF/spring-context.xml]
4549 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/plexus/plexus-expression-evaluator/1.0-alpha-1/plexus-expression-evaluator-1.0-alpha-1.jar!/META-INF/plexus/components.xml]
4560 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/plexus/registry/plexus-registry-commons/1.0-alpha-2/plexus-registry-commons-1.0-alpha-2.jar!/META-INF/plexus/components.xml]
4652 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-keys-jdo/1.2.2/redback-keys-jdo-1.2.2.jar!/META-INF/spring-context.xml]
4692 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/plexus/plexus-digest/1.1/plexus-digest-1.1.jar!/META-INF/plexus/components.xml]
4703 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-users-jdo/1.2.2/redback-users-jdo-1.2.2.jar!/META-INF/spring-context.xml]
4742 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/gwen/.m2/repository/org/codehaus/redback/redback-policy/1.2.2/redback-policy-1.2.2.jar!/META-INF/spring-context.xml]
4848 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Bean factory for application context [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@15db314]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5976c2
4910 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5976c2: defining beans dataManagementTool#redback-jdo,dataManagementTool#legacy-redback-jdo,databaseFactoryConfigurator#redback,user#jdo,authenticationKey#jdo,authenticationManager,authenticationDataSource#password,authenticationDataSource#token,rememberMeSettings,singleSignOnSettings,userSecurityPolicy,userValidationSettings,passwordEncoder#sha1,passwordEncoder#sha256,passwordRule#alpha-count,passwordRule#character-length,passwordRule#must-have,passwordRule#numerical-count,passwordRule#reuse,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,dataManagementTool#jdo,rBACManager#jdo,jdoTool,jdoFactory#users,userConfiguration,expressionSource#sysprops,expressionSource#properties,expressionEvaluator,registry#commons-configuration,keyManager#jdo,checksumFile,digester#sha1,streamingDigester#sha1,streamingDigester#md5,digester#md5,userManager#jdo,cookieSettings#signon,cookieSettings#rememberMe,passwordRule#no-whitespaces,passwordRule#alpha-numeric,passwordEncoder#plaintext; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@6cb8
5633 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
7807 [main] WARN JPOX.MetaData - No manager for annotations was found in the CLASSPATH so all annotations are ignored.
8855 [main] INFO org.codehaus.plexus.redback.keys.jdo.JdoKeyManager - Removing expired keys.
8856 [main] INFO org.codehaus.plexus.redback.keys.jdo.JdoKeyManager - Expired keys removed.
gwen@gautencio:~$
Thanks.
I tried again with the same command line of gwen, but I get the following:
java -jar -Xmx512m data-management-cli-1.3.4-app.jar -usersJdbcUrl jdbc:derby:continuum/database/users -mode EXPORT -directory backupnew/users
0 [main] INFO org.apache.maven.continuum.management.DataManagementCli - Processing Redback database...
480 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Refreshing org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@15601ea: display name [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@15601ea]; startup date [Fri Jan 08 08:58:21 CET 2010]; root of context hierarchy
1955 [main] INFO org.codehaus.plexus.spring.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
1964 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/components.xml]
2934 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/migrate/data-management-cli-1.3.4-app.jar!/META-INF/plexus/plexus.xml]
3066 [main] INFO org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext - Bean factory for application context [org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@15601ea]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bb60c3
3652 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1bb60c3: defining beans artifactRepositoryLayout,artifactRepositoryLayout#legacy,artifactHandlerManager,artifactHandler#ejb,artifactHandler#jar,artifactHandler#test-jar,artifactHandler#maven-plugin,artifactHandler#pom,artifactHandler#java-source,artifactHandler#javadoc,artifactHandler#war,artifactHandler#ear,artifactHandler#ejb-client,artifactHandler#rar,artifactHandler#par,artifactHandler#ejb3,artifactFactory,artifactCollector,wagonManager,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,repositoryMetadataBuilder,mavenSettingsBuilder,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#os,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,modelResolver,artifactMetadataSource#maven,mavenProfilesBuilder,mavenPluginRegistryBuilder,wagon#http,wagon#https,loggerManager,jdoFactory#continuum,jdoFactory#users; root of factory hierarchy
10847 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Refreshing org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1777b1: display name [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1777b1]; startup date [Fri Jan 08 08:58:32 CET 2010]; parent: org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext@15601ea
11876 [main] INFO org.apache.maven.continuum.management.util.PlexusApplicationContextDelegate - Registering Plexus to Spring XML translation
11941 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/data-management-redback-jdo/1.3.4/data-management-redback-jdo-1.3.4.jar!/META-INF/plexus/components.xml]
11980 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/apache/continuum/redback-legacy/1.3.4/redback-legacy-1.3.4.jar!/META-INF/plexus/components.xml]
11993 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-authentication-api/1.0-alpha-5/plexus-security-authentication-api-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
12002 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/security/plexus-security-policy/1.0-alpha-5/plexus-security-policy-1.0-alpha-5.jar!/META-INF/plexus/components.xml]
12038 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-data-management/1.2.2/redback-data-management-1.2.2.jar!/META-INF/spring-context.xml]
12643 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-rbac-jdo/1.2.2/redback-rbac-jdo-1.2.2.jar!/META-INF/spring-context.xml]
12846 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-common-jdo/1.2.2/redback-common-jdo-1.2.2.jar!/META-INF/spring-context.xml]
13010 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-configuration/1.2.2/redback-configuration-1.2.2.jar!/META-INF/spring-context.xml]
13081 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-expression-evaluator/1.0-alpha-1/plexus-expression-evaluator-1.0-alpha-1.jar!/META-INF/plexus/components.xml]
13106 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/registry/plexus-registry-commons/1.0-alpha-2/plexus-registry-commons-1.0-alpha-2.jar!/META-INF/plexus/components.xml]
13163 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-keys-jdo/1.2.2/redback-keys-jdo-1.2.2.jar!/META-INF/spring-context.xml]
13305 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/plexus/plexus-digest/1.1/plexus-digest-1.1.jar!/META-INF/plexus/components.xml]
13414 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-users-jdo/1.2.2/redback-users-jdo-1.2.2.jar!/META-INF/spring-context.xml]
13630 [main] INFO org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/home/ex1511/.m2/repository/org/codehaus/redback/redback-policy/1.2.2/redback-policy-1.2.2.jar!/META-INF/spring-context.xml]
13826 [main] INFO org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext - Bean factory for application context [org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext@1777b1]: org.springframework.beans.factory.support.DefaultListableBeanFactory@53c3f5
14244 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@53c3f5: defining beans dataManagementTool#legacy-redback-jdo,dataManagementTool#redback-jdo,databaseFactoryConfigurator#redback,user#jdo,authenticationKey#jdo,authenticationManager,authenticationDataSource#password,authenticationDataSource#token,rememberMeSettings,singleSignOnSettings,userSecurityPolicy,userValidationSettings,passwordEncoder#sha1,passwordEncoder#sha256,passwordRule#alpha-count,passwordRule#character-length,passwordRule#must-have,passwordRule#numerical-count,passwordRule#reuse,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,dataManagementTool#jdo,rBACManager#jdo,jdoTool,jdoFactory#users,userConfiguration,expressionSource#sysprops,expressionSource#properties,expressionEvaluator,registry#commons-configuration,keyManager#jdo,checksumFile,digester#sha1,streamingDigester#sha1,streamingDigester#md5,digester#md5,userManager#jdo,cookieSettings#rememberMe,passwordEncoder#plaintext,cookieSettings#signon,passwordRule#alpha-numeric,passwordRule#no-whitespaces; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1bb60c3
15671 [main] WARN JPOX.JDO - Property org.jpox.validateSchema unknown - will be ignored
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataManagementTool#redback-jdo': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager#jdo': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at org.codehaus.plexus.spring.PlexusContainerAdapter.lookup(PlexusContainerAdapter.java:422)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:304)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager#jdo': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.resolveRequirement(PlexusComponentFactoryBean.java:246)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.createInstance(PlexusComponentFactoryBean.java:163)
at org.codehaus.plexus.spring.PlexusComponentFactoryBean.getObject(PlexusComponentFactoryBean.java:108)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
... 11 more
Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userSecurityPolicy' must be of type [org.codehaus.plexus.redback.policy.UserSecurityPolicy], but was actually of type [org.codehaus.plexus.security.policy.DefaultUserSecurityPolicy]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
... 25 more
I am not on the dev list, can you post a comment about the reason to inhibit the migration to 1.3.4 or a link to the post?
thanks,
Luca
We wanted to do a 1.3.5 release and since 2338 will take longer investigation, we decided to move it to 1.3.6.
if you could give us a sample data of your users database that will help our investigation then that will be great.
I tested this using the latest release 1.3.5.
I still wasn't able to reproduce the error of Luca.
More information of your user database may help the investigation.
how you tried to export db with 1.3.5?
the tool data-management-cli-1.3.5-app.jar not exists
if is useful I can post the derbydb zipped
The tool was not deployed but there were no changes with regards to the model and the tool itself.
It will be helpful if we can have your sample data to test it against.
Luca, have you tried upgrading Continuum just by reusing the existing database, or do you need the tool for other reasons? This is the last issue blocking our GA release now.
Sorry, I don't will block the release.
We need the tool because we will migrate to mysql.
Discussing with our security responsible I cannot post our users db.
They are other inconsistences in our db (we cannot delete some projects or local repositories),so we decided to rebuild both db from scratch with the new release
For the users we will use the ldap integration.
Anyway thanks for you effort!
there will be no support for migration from 1.2 to 1.3?
there is a workaround?