continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent N Atkinson (JIRA)" <j...@codehaus.org>
Subject [jira] (CONTINUUM-2740) Exception while exporting data with data-management-cli 'A previous cache with name [url-failures-cache] exists'
Date Tue, 24 Feb 2015 16:19:18 GMT

    [ https://jira.codehaus.org/browse/CONTINUUM-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364085#comment-364085
] 

Brent N Atkinson commented on CONTINUUM-2740:
---------------------------------------------

{quote}
>From there, the scripts seems to do nothing more but doesn't end.
{quote}

This appears to be a separate problem. By attaching a debugger to the process, it appears
the issue is that a thread pool containing non-daemon threads is still active. This forces
the VM to stay alive despite the threads being idle. I will create another issue for this
behavior, since I don't have time to address it completely now. In the interim, I can update
the tool to give feedback so you know it is safe to terminate.

> Exception while exporting data with data-management-cli 'A previous cache with name [url-failures-cache]
exists'
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CONTINUUM-2740
>                 URL: https://jira.codehaus.org/browse/CONTINUUM-2740
>             Project: Continuum
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>         Environment: # uname -a
> Linux pic-java 2.6.32-042stab094.7 #1 SMP Wed Oct 22 12:43:21 MSK 2014 x86_64 GNU/Linux
> # mvn -v
> Apache Maven 3.2.2 (45f7c06d68e745d05611f7fd14efb6594181933e; 2014-06-17T15:51:42+02:00)
> Maven home: /usr/local/maven/apache-maven-3.2.2
> Java version: 1.7.0_55, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-042stab094.7", arch: "amd64", family: "unix"
>            Reporter: Romain
>
> Following the exporting bug with POM file annalysed as Zip file (https://jira.codehaus.org/browse/CONTINUUM-2558),
here is a separate bug report :
> {noformat}
> 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
> {noformat}
> {noformat}
> 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
> {noformat}
> Still, a file is exported ... he doesn't seem to have all data (especially data from
user).



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message