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

Migration 1.3.6 => 1.4.0 (beta) fails with ZipException when reading a pom file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0 (Beta)
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Environment:
      Windows 2008 Server

      Description

      I exported my 1.3.6 Continuum via

      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 
      

      When importing to 1.4.0 (beta) with

      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 
      

      I get following ZipException when reading maven-scm-providers-standard-1.2.pom which is not a ZIP.

      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>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                batkinson Brent Atkinson
                Reporter:
                trippeltrappel Stefan Cordes
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: