ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major
    • Component/s: maven-plugin
    • None
    • Environment:
      Platform: All, OS: Linux

      Any maven project executed on a remote node is failing with the following output:
      trunk] $ java -cp
      /var/hudson/maven-agent.jar:/opt/maven/boot/classworlds-1.1.jar
      hudson.maven.agent.Main /opt/maven /var/hudson/maven-interceptor.jar 55476
      Exception in thread "main" java.lang.ClassNotFoundException:
      hudson.remoting.Launcher
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at
      org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
      at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
      at hudson.maven.agent.Main.main(Main.java:114)
      at hudson.maven.agent.Main.main(Main.java:62)
      ERROR: Failed to parse POMs
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.FilterInputStream.read(FilterInputStream.java:116)
      at hudson.remoting.ProxyInputStream$Buffer.read(ProxyInputStream.java:104)
      at hudson.remoting.ProxyInputStream$Chunk.perform(ProxyInputStream.java:126)
      at hudson.remoting.ProxyInputStream$Chunk.perform(ProxyInputStream.java:113)
      at hudson.remoting.Request$2.run(Request.java:236)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at hudson.remoting.Engine$1$1.run(Engine.java:54)
      at java.lang.Thread.run(Thread.java:619)
      finished: FAILURE

      I am able to run the mvn command via the command line directly against the
      workspace on the remote node. Note, that the project build fine against the
      master hudson node. Here is the maven command call:

      java -cp
      /var/hudson/war/WEB-INF/lib/maven-agent-1.288.jar:/opt/maven/boot/classworlds-1.1.jar
      hudson.maven.agent.Main /opt/maven
      /var/hudson/war/WEB-INF/lib/remoting-1.288.jar
      /var/hudson/war/WEB-INF/lib/maven-interceptor-1.288.jar 34409

      channel started

      Executing Maven: -B -B -f
      /var/hudson/jobs/java_projects/workspace/trunk/pom.xml clean install
      -Dbuild.version=337

      It appear like the remoting jar is not being sent to the remote node (although
      I'm unsure if this is the real cause).

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

              Created:
              Updated:
              Resolved: