Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3971

using maven job for building pom.xml results in error

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All

      Description

      Hudson v1.313
      Tomcat 6.20
      java version "1.6.0_13"
      Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
      Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

      ERROR: Processing failed due to a bug in the code. Please report this to
      users@hudson.dev.java.net
      java.lang.IllegalArgumentException: id is null
      at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:111)
      at
      org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:253)
      at
      org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:315)
      at org.apache.webdav.lib.WebdavSession.getSessionInstance(WebdavSession.java:149)
      at org.apache.webdav.lib.WebdavSession.getSessionInstance(WebdavSession.java:127)
      at org.apache.webdav.lib.WebdavResource.setClient(WebdavResource.java:1273)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1298)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1320)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1408)
      at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290)
      at
      org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.<init>(CorrectedWebdavResource.java:54)
      at
      org.apache.maven.wagon.providers.webdav.WebDavWagon.openConnection(WebDavWagon.java:146)
      at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
      at
      org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:435)
      at
      org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:370)
      at
      org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
      at
      org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65)
      at
      org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:63)
      at
      org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57)
      at
      org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:129)
      at
      org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:215)
      at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:323)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:735)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:681)
      at hudson.FilePath.act(FilePath.java:649)
      at hudson.FilePath.act(FilePath.java:633)
      at
      hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:431)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:315)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:271)
      at hudson.model.Run.run(Run.java:938)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:234)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:118)
      project=hudson.maven.MavenModuleSet@1bdea60[build-my-project]
      project.getModules()=[]
      project.getRootModule()=null
      FATAL: id is null
      java.lang.IllegalArgumentException: id is null
      at org.apache.commons.httpclient.protocol.Protocol.getProtocol(Protocol.java:111)
      at
      org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:253)
      at
      org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:315)
      at org.apache.webdav.lib.WebdavSession.getSessionInstance(WebdavSession.java:149)
      at org.apache.webdav.lib.WebdavSession.getSessionInstance(WebdavSession.java:127)
      at org.apache.webdav.lib.WebdavResource.setClient(WebdavResource.java:1273)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1298)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1320)
      at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1408)
      at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290)
      at
      org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.<init>(CorrectedWebdavResource.java:54)
      at
      org.apache.maven.wagon.providers.webdav.WebDavWagon.openConnection(WebDavWagon.java:146)
      at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
      at
      org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:435)
      at
      org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:370)
      at
      org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
      at
      org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:65)
      at
      org.apache.maven.artifact.transform.SnapshotTransformation.transformForResolve(SnapshotTransformation.java:63)
      at
      org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:57)
      at
      org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:129)
      at
      org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
      at
      org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:215)
      at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:323)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:735)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:681)
      at hudson.FilePath.act(FilePath.java:649)
      at hudson.FilePath.act(FilePath.java:633)
      at
      hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:431)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:315)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:271)
      at hudson.model.Run.run(Run.java:938)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:234)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:118)

        Activity

        Hide
        abarbieri Andrea Barbieri added a comment -

        can you provide more details about the pom.xml you are trying to use?

        Show
        abarbieri Andrea Barbieri added a comment - can you provide more details about the pom.xml you are trying to use?
        Hide
        joshjdevl joshjdevl added a comment -

        I upgraded to the latest hudson v1.314.

        This seemed to resolve the issue. Will continue monitoring and verify today.

        Show
        joshjdevl joshjdevl added a comment - I upgraded to the latest hudson v1.314. This seemed to resolve the issue. Will continue monitoring and verify today.
        Hide
        joshjdevl joshjdevl added a comment -

        Issue still persists. The only way I can get it it now to come up, is to each
        morning manually go to the workspace dir, and run a mvn clean. Then after that,
        the CI seems to work.

        Show
        joshjdevl joshjdevl added a comment - Issue still persists. The only way I can get it it now to come up, is to each morning manually go to the workspace dir, and run a mvn clean. Then after that, the CI seems to work.
        Hide
        kohsuke Kohsuke Kawaguchi added a comment -

        If anyone can come up with a test case, that would be really great. It seems
        like Maven is failing to resolve one of the parent POMs that you have, but I
        don't know exactly what leads up to this problem.

        Show
        kohsuke Kohsuke Kawaguchi added a comment - If anyone can come up with a test case, that would be really great. It seems like Maven is failing to resolve one of the parent POMs that you have, but I don't know exactly what leads up to this problem.
        Hide
        joshjdevl joshjdevl added a comment -

        It works if I create a Free Style Hudson Project.

        I need some time to create a simple test scenario that doesn't include any of
        our company specific info.

        Show
        joshjdevl joshjdevl added a comment - It works if I create a Free Style Hudson Project. I need some time to create a simple test scenario that doesn't include any of our company specific info.
        Hide
        abayer abayer added a comment -

        This is one of a number of bugs relating to problems with POM parsing with non-basic wagons. Trying to figure out what the underlying issue is.

        Show
        abayer abayer added a comment - This is one of a number of bugs relating to problems with POM parsing with non-basic wagons. Trying to figure out what the underlying issue is.

          People

          • Assignee:
            Unassigned
            Reporter:
            joshjdevl joshjdevl
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: