continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain (JIRA)" <j...@codehaus.org>
Subject [jira] (CONTINUUM-2558) Migration 1.3.6 => 1.4.0 (beta) fails with ZipException when reading a pom file
Date Tue, 24 Feb 2015 11:09:18 GMT

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

Romain commented on CONTINUUM-2558:
-----------------------------------

Better export ... i can go further ...
Still, I encounter another bug :

{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).

When importing this exported script to MySQL, I've got this issue :

{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:mysql://localhost:3306/continuum_continuum \
   -usersJdbcUrl jdbc:mysql://localhost:3306/continuum_users \
   -mode IMPORT \
   -directory backups \
   -databaseType OTHER \
   -username root -groupId mysql -artifactId mysql-connector-java -artifactVersion 5.1.34
-driverClass  com.mysql.jdbc.Driver -password ""
{noformat}

{noformat}
Specified key was too long; max key length is 767 bytes
{noformat}

It may be another story though ...



> Migration 1.3.6 => 1.4.0 (beta) fails with ZipException when reading a pom file
> -------------------------------------------------------------------------------
>
>                 Key: CONTINUUM-2558
>                 URL: https://jira.codehaus.org/browse/CONTINUUM-2558
>             Project: Continuum
>          Issue Type: Bug
>    Affects Versions: 1.4.0 (Beta)
>         Environment: Windows 2008 Server
>            Reporter: Stefan Cordes
>            Assignee: Brent N Atkinson
>              Labels: backlog-to-cleanup
>             Fix For: 1.5.0
>
>
> I exported my 1.3.6 Continuum via
> {code}
> java  -Xmx512m -jar data-management-cli-1.3.6-app.jar -buildsJdbcUrl jdbc:derby:D:\workspaces\continuum\apache-continuum-1.3.6/data/databases/continuum
-mode EXPORT -directory backups -debug true -settings settings.xml 
> {code}
> When importing to 1.4.0 (beta) with
> {code}
> java -Xmx512m -jar data-management-cli-1.4.0-app.jar -buildsJdbcUrl jdbc:derby:apache-continuum-1.4.0/data/databases/continuum
-mode IMPORT -directory backups -settings settings.xml -debug true -strict 
> {code}
> I get following ZipException when reading maven-scm-providers-standard-1.2.pom which
is not a ZIP.
> {code}
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusBeanDefinitionDocumentReader  -
Plexus Bean Definition Document suc
> cessfully translated to Spring
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusBeanDefinitionDocumentReader  -
<?xml version="1.0" encoding="UTF-8
> "?>
> <spring:beans xmlns:spring="http://www.springframework.org/schema/beans" xmlns="http://plexus.codehaus.org/spring"
xmlns
> :plexus="http://plexus.codehaus.org/spring" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
default-lazy-init="tru
> e" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-be
> ans-2.5.xsd                            http://plexus.codehaus.org/spring http://plexus.codehaus.org/schemas/spring-1.0.x
> sd">
>   <component implementation="org.apache.maven.shared.invoker.DefaultInvoker" role="org.apache.maven.shared.invoker.Invok
> er" role-hint="default"/>
> </spring:beans>
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusBeanDefinitionDocumentReader  -
Loading bean definitions
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loaded
1 bean definitions from location
> pattern [jar:file:C:\Users\dt0b35\.m2\repository\org\apache\maven\shared\maven-invoker\2.0.9\maven-invoker-2.0.9.jar!/**
> /META-INF/plexus/components.xml]
> 439879 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver
 - Looking for matching reso
> urces in jar file [file:C:/Users/dt0b35/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar]
> 439879 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver
 - Resolved location pattern
>  [jar:file:C:\Users\dt0b35\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar!/**/META-INF/spring-context.xm
> l] to resources []
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loaded
0 bean definitions from location
> pattern [jar:file:C:\Users\dt0b35\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar!/**/META-INF/spring-con
> text.xml]
> 439879 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver
 - Looking for matching reso
> urces in jar file [file:C:/Users/dt0b35/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar]
> 439879 [main] DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver
 - Resolved location pattern
>  [jar:file:C:\Users\dt0b35\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar!/**/META-INF/plexus/components
> .xml] to resources []
> 439879 [main] DEBUG org.codehaus.plexus.spring.PlexusXmlBeanDefinitionReader  - Loaded
0 bean definitions from location
> pattern [jar:file:C:\Users\dt0b35\.m2\repository\commons-cli\commons-cli\1.0\commons-cli-1.0.jar!/**/META-INF/plexus/com
> ponents.xml]
> Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException:
Could not resolve bean defini
> tion resource pattern [jar:file:C:\Users\dt0b35\.m2\repository\org\apache\maven\scm\maven-scm-providers-standard\1.2\mav
> en-scm-providers-standard-1.2.pom!/**/META-INF/spring-context.xml]; nested exception
is java.util.zip.ZipException: Erro
> r opening zip file C:\Users\dt0b35\.m2\repository\org\apache\maven\scm\maven-scm-providers-standard\1.2\maven-scm-provid
> ers-standard-1.2.pom
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
> tionReader.java:190)
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
> tionReader.java:149)
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
> tionReader.java:212)
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationC
> ontext.java:113)
>         at org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext.loadBeanDefinitions(PlexusFi
> leSystemXmlApplicationContext.java:72)
>         at org.apache.maven.continuum.management.util.PlexusFileSystemXmlApplicationContext.loadBeanDefinitions(PlexusFi
> leSystemXmlApplicationContext.java:94)
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefresha
> bleApplicationContext.java:123)
>         at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationCont
> ext.java:422)
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>         at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.ja
> va:140)
>         at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.ja
> va:106)
>         at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:295)
>         at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:189)
> Caused by: java.util.zip.ZipException: Error opening zip file C:\Users\dt0b35\.m2\repository\org\apache\maven\scm\maven-
> scm-providers-standard\1.2\maven-scm-providers-standard-1.2.pom
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:238)
>         at java.util.jar.JarFile.<init>(JarFile.java:168)
>         at java.util.jar.JarFile.<init>(JarFile.java:106)
>         at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:71)
>         at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:56)
>         at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:99)
>         at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:131)
>         at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:98)
>         at org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(PathMa
> tchingResourcePatternResolver.java:430)
>         at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchin
> gResourcePatternResolver.java:339)
>         at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatt
> ernResolver.java:276)
>         at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1
> 018)
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefini
> tionReader.java:177)
>         ... 12 more
> D:\workspaces\continuum>
> {code}



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

Mime
View raw message