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

Exception while exporting data with data-management-cli 'A previous cache with name [url-failures-cache] exists'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      Following the exporting bug with POM file annalysed as Zip file (https://jira.codehaus.org/browse/CONTINUUM-2558), here is a separate bug report :

      java -Xmx512m \
         -jar ~/.m2/repository/org/apache/continuum/data-management-cli/1.5-SNAPSHOT/data-management-cli-1.5-SNAPSHOT-app.jar \
         -buildsJdbcUrl jdbc:derby:../continuum/data/databases/continuum \
         -usersJdbcUrl jdbc:derby:../continuum/data/databases/users \
         -mode EXPORT \
         -directory backups
      
      68160 [main] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory  - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@627f0f8a: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,settingsHelper,shellCommandHelper,repositoryContentConsumers,urlFailureCache,localRepositoryDao,continuumReleaseResultDao,repositoryPurgeConfigurationDao,buildQueueDao,scheduleDao,directoryPurgeConfigurationDao,storeUtilities,profileDao,notifierDao,buildDefinitionDao,projectDao,projectGroupDao,distributedDirectoryPurgeConfigurationDao,daoUtils,buildResultDao,systemConfigurationDao,projectScmRootDao,installationDao,buildDefinitionTemplateDao,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,wagonProviderMapping,repositoryMetadataManager,artifactTransformation#snapshot,artifactTransformation#release,artifactTransformation#latest,artifactTransformationManager,artifactResolver,artifactInstaller,artifactDeployer,artifactRepositoryFactory,componentConfigurator#wagon,mavenSettingsBuilder,projectArtifactFactory#maven-project,mavenProjectHelper,modelInterpolator,modelDefaultsInjector,profileInjector,mavenProjectBuilder,profileActivator#always-on,profileActivator#jdk-prefix,profileActivator#system-property,profileActivator#os,profileActivator#file,modelInheritanceAssembler,modelValidator,pathTranslator,artifactMetadataSource#maven,mavenProfilesBuilder,mavenPluginRegistryBuilder,wagon#https,wagon#http,dataManagementTool#legacy-continuum-jdo,databaseFactoryConfigurator#continuum,dataManagementTool#continuum-jdo,localRepositoryHelper,cache#effective-project-cache,pathParser#legacy,projectModelFilter#expression,managedRepositoryContent,metadataTools,repositoryContentFactory,auditListener#logging,repositoryRequest,managedRepositoryContent#legacy,projectModelResolverFactory,repositoryScanner,remoteRepositoryContent,remoteRepositoryContent#legacy,projectModelFilter#effective,archivaConfiguration,fileTypes,registry#commons-configuration,expressionSource#properties,expressionSource#sysprops,expressionEvaluator,cache#url-failures-cache,downloadErrorPolicy#propagate-errors-on-update,downloadErrorPolicy#propagate-errors,preDownloadPolicy#snapshots,postDownloadPolicy#checksum,preDownloadPolicy#cache-failures,preDownloadPolicy#releases,cache#ehcache,cacheBuilder,releaseManager,releasePhase#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#rewrite-pom-versions,releasePhase#scm-commit-rollback,releasePhase#rewrite-poms-for-branch,mavenExecutor#invoker,releasePhase#restore-backup-poms,scmTranslator#clearcase,releasePhase#remove-scm-tag,releasePhase#scm-check-modifications,releasePhase#run-perform-goals,releasePhase#remove-release-poms,releasePhase#check-poms,releasePhase#check-dependency-snapshots,mavenExecutor#forked-path,releasePhase#checkout-project-from-scm,scmRepositoryConfigurator,scmTranslator#cvs,scmTranslator#svn,releaseDescriptorStore#properties,releasePhase#create-backup-poms,commandLineFactory,releasePhase#scm-tag,releasePhase#scm-branch,releasePhase#verify-completed-prepare-phases,releasePhase#input-variables,releasePhase#end-release,releasePhase#run-preparation-goals,releasePhase#generate-release-poms,inputHandler,outputHandler,prompter,modelResolver,invoker,scmProvider#accurev,scmProvider#bazaar,scmProvider#clearcase,scmProvider#cvs_native,scmProvider#cvs,scmProvider#git,scmProvider#hg,scmProvider#perforce,scmProvider#starteam,scmProvider#svn,scmProvider#synergy,scmProvider#vss,scmProvider#tfs,scmManager,loggerManager,jdoFactory#continuum,jdoFactory#users,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
      Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'urlFailureCache' defined in URL [jar:file:/usr/local/continuum/.m2/repository/org/apache/archiva/archiva-policies/1.2.1/archiva-policies-1.2.1.jar!/META-INF/spring-context.xml]: Cannot resolve reference to bean 'cache#url-failures-cache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cache#url-failures-cache': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to invoke plexus lifecycle Initializable.initialize on cache#url-failures-cache; nested exception is org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: A previous cache with name [url-failures-cache] exists.
      	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
      	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
      	at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:651)
      	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1077)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:981)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
      	at org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext.<init>(PlexusClassPathXmlApplicationContext.java:91)
      	at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:215)
      	at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:197)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cache#url-failures-cache': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to invoke plexus lifecycle Initializable.initialize on cache#url-failures-cache; nested exception is org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: A previous cache with name [url-failures-cache] exists.
      	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:115)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1467)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
      	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      	... 19 more
      Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to invoke plexus lifecycle Initializable.initialize on cache#url-failures-cache; nested exception is org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: A previous cache with name [url-failures-cache] exists.
      	at org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization(PlexusLifecycleBeanPostProcessor.java:221)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:409)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1657)
      	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:112)
      	... 23 more
      Caused by: org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException: A previous cache with name [url-failures-cache] exists.
      	at org.codehaus.plexus.cache.ehcache.EhcacheCache.initialize(EhcacheCache.java:237)
      	at org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization(PlexusLifecycleBeanPostProcessor.java:217)
      	... 26 more
      

      Still, a file is exported ... he doesn't seem to have all data (especially data from user).

      Attachments

        Issue Links

          Activity

            People

              batkinson Brent Atkinson
              astik Romain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: