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

(experimental) Maven project mode not working in Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      Hudson 1.85 is still not working with (experimental) Maven project mode.

      Windows 2003 Server
      Tomcat 5.5
      Java 1.5.0_09
      Maven 2.0.5

      It does not even get out of the gate!

      started
      [test-project] $ C:\sun\jdk1.5.0_09\jre\bin\java -cp "C:\Program Files\Apache
      Software Foundation\Tomcat
      5.5\webapps\hudson\WEB-INF\lib\maven-agent-1.85.jar;C:\Program Files\Apache
      Software Foundation\maven-2.0.5\core\boot\classworlds-1.1.jar"
      hudson.maven.agent.Main "C:\Program Files\Apache Software
      Foundation\maven-2.0.5" "C:\Program Files\Apache Software Foundation\Tomcat
      5.5\webapps\hudson\WEB-INF\lib\hudson-core-1.85.jar" "C:\Program Files\Apache
      Software Foundation\Tomcat
      5.5\webapps\hudson\WEB-INF\lib\maven-interceptor-1.85.jar"
      Exception in thread "main" java.lang.NoClassDefFoundError:
      edu/emory/mathcs/backport/java/util/concurrent/Executor
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
      at java.lang.Class.getMethod0(Class.java:2642)
      at java.lang.Class.getMethod(Class.java:1579)
      at hudson.maven.agent.Main.main(Main.java:57)
      at hudson.maven.agent.Main.main(Main.java:30)
      FATAL: unexpected stream termination
      java.io.EOFException: unexpected stream termination
      at hudson.remoting.Channel.<init>(Channel.java:142)
      at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:166)
      at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:198)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:117)
      at hudson.model.Run.run(Run.java:549)
      at hudson.maven.MavenBuild.run(MavenBuild.java:98)
      at hudson.model.Executor.run(Executor.java:61)

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Ah!

          I know why this is not working. Will think about the fix.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Ah! I know why this is not working. Will think about the fix.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          This doesn't involve master/slave support, right?

          Does your system have "C:\Program Files\Apache Software Foundation\Tomcat
          5.5\webapps\hudson\WEB-INF\lib\backport-util-concurrent-2.2.jar" ?

          Show
          kohsuke Kohsuke Kawaguchi added a comment - This doesn't involve master/slave support, right? Does your system have "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\backport-util-concurrent-2.2.jar" ?
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          I reproduced the problem. Looking into this...

          Show
          kohsuke Kohsuke Kawaguchi added a comment - I reproduced the problem. Looking into this...
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Talk about stupid bug...
          Sigh.

          I'm seriously thinking about dropping JDK 1.4 support. It's getting really error
          prone lately.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Talk about stupid bug... Sigh. I'm seriously thinking about dropping JDK 1.4 support. It's getting really error prone lately.
          Hide
          stephenconnolly Stephen Connolly added a comment -

          Hudson 1.87: (Completely removed old webapp 1.85 and replaced with 1.87. Have
          kept original HUDSON_HOME - which is on a different drive)

          We get a little bit more progress... but still falling over:

          started
          [test-project] $ C:\sun\jdk1.5.0_09\jre\bin\java -cp "C:\Program Files\Apache
          Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\maven-agent-
          1.87.jar;C:\Program Files\Apache Software Foundation\maven-2.0.5
          \core\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program
          Files\Apache Software Foundation\maven-2.0.5" "C:\Program Files\Apache Software
          Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\hudson-core-
          1.87.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.5
          \webapps\hudson\WEB-INF\lib\maven-interceptor-1.87.jar"
          channel started
          FATAL: null
          java.lang.NullPointerException
          at hudson.maven.agent.Main.launch(Main.java:65)
          at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:127)
          at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:105)
          at hudson.remoting.UserRequest.perform(UserRequest.java:57)
          at hudson.remoting.UserRequest.perform(UserRequest.java:22)
          at hudson.remoting.Request$2.run(Request.java:178)
          at
          edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
          (ThreadPoolExecutor.java:665)
          at
          edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
          (ThreadPoolExecutor.java:690)
          at java.lang.Thread.run(Thread.java:595)

          Here is the contents of my Tomcat/webapps/hudson/WEB-INF/lib directory:
          activation-1.1.jar
          ant-1.6.2.jar
          ant-junit-1.6.2.jar
          antlr-2.7.6.jar
          backport-util-concurrent-2.2.jar
          classworlds-1.1.jar
          commons-beanutils-1.6.jar
          commons-collections-2.1.jar
          commons-digester-1.7.jar
          commons-fileupload-1.1.jar
          commons-io-1.2.jar
          commons-jelly-1.1-hudson-20061106.jar
          commons-jelly-tags-define-1.0.1-hudson-20061106.jar
          commons-jelly-tags-fmt-1.0.jar
          commons-jelly-tags-xml-1.1.jar
          commons-jexl-1.1-hudson-20061106.jar
          commons-logging-1.0.3.jar
          dom4j-1.6.1.jar
          doxia-sink-api-1.0-alpha-7.jar
          ganymed-ssh2-build210.jar
          graph-layouter-1.0.jar
          groovy-all-1.0-jsr-06.jar
          hudson-core-1.87.jar
          jaxen-1.1-beta-11.jar
          jcommon-1.0.6.jar
          jfreechart-1.0.3.jar
          jsch-0.1.24.jar
          jstl-1.1.0.jar
          mail-1.4.jar
          maven-agent-1.87.jar
          maven-artifact-2.0.4.jar
          maven-artifact-manager-2.0.4.jar
          maven-core-2.0.4.jar
          maven-embedder-2.0.4.jar
          maven-error-diagnostics-2.0.4.jar
          maven-interceptor-1.87.jar
          maven-model-2.0.4.jar
          maven-monitor-2.0.4.jar
          maven-plugin-api-2.0.4.jar
          maven-plugin-descriptor-2.0.4.jar
          maven-plugin-parameter-documenter-2.0.4.jar
          maven-plugin-registry-2.0.4.jar
          maven-profile-2.0.4.jar
          maven-project-2.0.4.jar
          maven-reporting-api-2.0.4.jar
          maven-repository-metadata-2.0.4.jar
          maven-settings-2.0.4.jar
          plexus-container-default-1.0-alpha-9.jar
          plexus-interactivity-api-1.0-alpha-4.jar
          plexus-utils-1.1.jar
          remoting-1.87.jar
          retrotranslator-runtime-1.0.8.jar
          stapler-1.23.jar
          svnkit-1.1.0.jar
          wagon-file-1.0-alpha-7.jar
          wagon-http-lightweight-1.0-alpha-6.jar
          wagon-provider-api-1.0-alpha-6.jar
          wagon-ssh-1.0-alpha-7.jar
          wagon-ssh-external-1.0-alpha-6.jar
          xpp3-1.1.3.3.jar
          xstream-1.1.3.jar

          Show
          stephenconnolly Stephen Connolly added a comment - Hudson 1.87: (Completely removed old webapp 1.85 and replaced with 1.87. Have kept original HUDSON_HOME - which is on a different drive) We get a little bit more progress... but still falling over: started [test-project] $ C:\sun\jdk1.5.0_09\jre\bin\java -cp "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\maven-agent- 1.87.jar;C:\Program Files\Apache Software Foundation\maven-2.0.5 \core\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program Files\Apache Software Foundation\maven-2.0.5" "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\hudson-core- 1.87.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.5 \webapps\hudson\WEB-INF\lib\maven-interceptor-1.87.jar" channel started FATAL: null java.lang.NullPointerException at hudson.maven.agent.Main.launch(Main.java:65) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:127) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:105) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) Here is the contents of my Tomcat/webapps/hudson/WEB-INF/lib directory: activation-1.1.jar ant-1.6.2.jar ant-junit-1.6.2.jar antlr-2.7.6.jar backport-util-concurrent-2.2.jar classworlds-1.1.jar commons-beanutils-1.6.jar commons-collections-2.1.jar commons-digester-1.7.jar commons-fileupload-1.1.jar commons-io-1.2.jar commons-jelly-1.1-hudson-20061106.jar commons-jelly-tags-define-1.0.1-hudson-20061106.jar commons-jelly-tags-fmt-1.0.jar commons-jelly-tags-xml-1.1.jar commons-jexl-1.1-hudson-20061106.jar commons-logging-1.0.3.jar dom4j-1.6.1.jar doxia-sink-api-1.0-alpha-7.jar ganymed-ssh2-build210.jar graph-layouter-1.0.jar groovy-all-1.0-jsr-06.jar hudson-core-1.87.jar jaxen-1.1-beta-11.jar jcommon-1.0.6.jar jfreechart-1.0.3.jar jsch-0.1.24.jar jstl-1.1.0.jar mail-1.4.jar maven-agent-1.87.jar maven-artifact-2.0.4.jar maven-artifact-manager-2.0.4.jar maven-core-2.0.4.jar maven-embedder-2.0.4.jar maven-error-diagnostics-2.0.4.jar maven-interceptor-1.87.jar maven-model-2.0.4.jar maven-monitor-2.0.4.jar maven-plugin-api-2.0.4.jar maven-plugin-descriptor-2.0.4.jar maven-plugin-parameter-documenter-2.0.4.jar maven-plugin-registry-2.0.4.jar maven-profile-2.0.4.jar maven-project-2.0.4.jar maven-reporting-api-2.0.4.jar maven-repository-metadata-2.0.4.jar maven-settings-2.0.4.jar plexus-container-default-1.0-alpha-9.jar plexus-interactivity-api-1.0-alpha-4.jar plexus-utils-1.1.jar remoting-1.87.jar retrotranslator-runtime-1.0.8.jar stapler-1.23.jar svnkit-1.1.0.jar wagon-file-1.0-alpha-7.jar wagon-http-lightweight-1.0-alpha-6.jar wagon-provider-api-1.0-alpha-6.jar wagon-ssh-1.0-alpha-7.jar wagon-ssh-external-1.0-alpha-6.jar xpp3-1.1.3.3.jar xstream-1.1.3.jar
          Hide
          stephenconnolly Stephen Connolly added a comment -

          [He thinks could this be a problem with the Maven-2.0.4 jars in hudson and the
          Maven 2.0.5 that I am using...

          Eh, nope: when I changed to using Maven 2.0.4 I get the same thing.]

          started
          [] $ C:\sun\jdk1.5.0_09\jre\bin\java -cp "C:\Program Files\Apache Software
          Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\maven-agent-
          1.87.jar;C:\Program Files\Apache Software Foundation\maven-2.0.4
          \core\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program
          Files\Apache Software Foundation\maven-2.0.4" "C:\Program Files\Apache Software
          Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\hudson-core-
          1.87.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.5
          \webapps\hudson\WEB-INF\lib\maven-interceptor-1.87.jar"
          channel started
          FATAL: null
          java.lang.NullPointerException
          at hudson.maven.agent.Main.launch(Main.java:65)
          at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:127)
          at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:105)
          at hudson.remoting.UserRequest.perform(UserRequest.java:57)
          at hudson.remoting.UserRequest.perform(UserRequest.java:22)
          at hudson.remoting.Request$2.run(Request.java:178)
          at
          edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
          (ThreadPoolExecutor.java:665)
          at
          edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
          (ThreadPoolExecutor.java:690)
          at java.lang.Thread.run(Thread.java:595)

          Show
          stephenconnolly Stephen Connolly added a comment - [He thinks could this be a problem with the Maven-2.0.4 jars in hudson and the Maven 2.0.5 that I am using... Eh, nope: when I changed to using Maven 2.0.4 I get the same thing.] started [] $ C:\sun\jdk1.5.0_09\jre\bin\java -cp "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\maven-agent- 1.87.jar;C:\Program Files\Apache Software Foundation\maven-2.0.4 \core\boot\classworlds-1.1.jar" hudson.maven.agent.Main "C:\Program Files\Apache Software Foundation\maven-2.0.4" "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\hudson-core- 1.87.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.5 \webapps\hudson\WEB-INF\lib\maven-interceptor-1.87.jar" channel started FATAL: null java.lang.NullPointerException at hudson.maven.agent.Main.launch(Main.java:65) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:127) at hudson.maven.MavenBuild$Builder.call(MavenBuild.java:105) at hudson.remoting.UserRequest.perform(UserRequest.java:57) at hudson.remoting.UserRequest.perform(UserRequest.java:22) at hudson.remoting.Request$2.run(Request.java:178) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595)
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          This is fixed in 1.88. This NPE is also reported as issue #368.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - This is fixed in 1.88. This NPE is also reported as issue #368.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: