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

Classloading issues when running PCT against WARs created by CustomWarPackager when replacing libs

XMLWordPrintable

      Example: https://ci.jenkins.io/blue/organizations/jenkins/Core%2Fremoting/detail/PR-265/17/tests

      Error
      lib/remoting-3.17.jar
      Stacktrace
      java.io.FileNotFoundException: lib/remoting-3.17.jar
      at hudson.model.Slave$JnlpJar.getURL(Slave.java:429)
      at org.jvnet.hudson.test.JenkinsRule.createComputerLauncher(JenkinsRule.java:924)
      at org.jvnet.hudson.test.JenkinsRule.createSlave(JenkinsRule.java:897)
      at org.jvnet.hudson.test.JenkinsRule.createSlave(JenkinsRule.java:890)
      at org.jvnet.hudson.test.JenkinsRule.createSlave(JenkinsRule.java:796)
      at hudson.os.windows.ManagedWindowsServiceLauncherTest.configRoundTrip(ManagedWindowsServiceLauncherTest.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:548)
      at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
      at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.lang.Thread.run(Thread.java:748)
      Standard Output
      === Starting configRoundTrip(hudson.os.windows.ManagedWindowsServiceLauncherTest)
      Standard Error
      0.019 [id=101]	INFO	o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:38541/jenkins/
      0.063 [id=108]	INFO	jenkins.InitReactorRunner$1#onAttained: Started initialization
      0.067 [id=118]	INFO	jenkins.InitReactorRunner$1#onAttained: Listed all plugins
      0.270 [id=108]	INFO	jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
      0.272 [id=131]	INFO	jenkins.InitReactorRunner$1#onAttained: Started all plugins
      0.273 [id=131]	INFO	jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
      0.584 [id=123]	INFO	jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
      0.852 [id=123]	INFO	jenkins.InitReactorRunner$1#onAttained: Completed initialization
      1.015 [id=101]	INFO	jenkins.model.Jenkins#cleanUp: Stopping Jenkins
      1.018 [id=79]	WARNING	h.u.ExceptionCatchingThreadFactory#uncaughtException: Thread Computer.threadPoolForRemoting [#1] terminated unexpectedly
      java.nio.channels.ClosedSelectorException
      at sun.nio.ch.SelectorImpl.keys(SelectorImpl.java:68)
      at org.jenkinsci.remoting.protocol.IOHub.getThreadNameBase(IOHub.java:426)
      at org.jenkinsci.remoting.protocol.IOHub.access$200(IOHub.java:69)
      at org.jenkinsci.remoting.protocol.IOHub$IOHubSelectorWatcher.run(IOHub.java:536)
      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      1.086 [id=101]	INFO	jenkins.model.Jenkins#cleanUp: Jenkins stopped
      

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: