• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core, warnings-plugin
    • None
    • CentOS 6.4

      Sometimes the warnings plugin crashes when the job is running on an slave (created using Swarm). I can't find a reason and seems to be random at this stage.

      ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
      hudson.util.IOException2: remote file operation failed: /opt/jenkins-slave/workspace/retail-products-build at hudson.remoting.Channel@323ec485:ci-node-02.company.inet
      at hudson.FilePath.act(FilePath.java:908)
      at hudson.FilePath.act(FilePath.java:885)
      at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:461)
      at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:407)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:322)
      at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:781)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706)
      at hudson.model.Run.execute(Run.java:1690)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:230)
      Caused by: java.io.IOException: Remote call on ci-node-02.company.inet failed
      at hudson.remoting.Channel.call(Channel.java:723)
      at hudson.FilePath.act(FilePath.java:901)
      ... 14 more
      Caused by: java.lang.Error: Failed to deserialize the Callable object.
      at hudson.remoting.UserRequest.perform(UserRequest.java:104)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:287)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at hudson.remoting.Engine$1$1.run(Engine.java:60)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.ClassCastException: cannot assign instance of hudson.plugins.analysis.util.TreeString to field hudson.plugins.analysis.util.model.AbstractAnnotation.fileName of type hudson.plugins.analysis.util.TreeString in instance of hudson.plugins.warnings.parser.Warning
      at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2063)
      at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1241)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.HashSet.readObject(HashSet.java:308)
      at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
      at hudson.remoting.UserRequest.perform(UserRequest.java:98)
      ... 9 more

      OS: CentOS 6.4 (master and slaves)
      Jenkins version: 1.537
      Warnings version: 4.40
      Parser attached as screenshot.

      After this, every build is failing when the Warnings plugins tries to scan the log, and I need to restart the service jenkins-slave running on the slave. After the restart everything starts to work again.

          [JENKINS-22428] Random crash when the job is running on a slave

          You're right!

          Now I'm checking Jenkins changelog and noticed https://issues.jenkins-ci.org/browse/JENKINS-12124 (Random class loading error mostly known to affect static analysis plugins).

          I'll talk to my IT team to see if we can just upgrade our develenv installation, and will get back with the result. It will take some days to get a date for the upgrade and to check if the plugin is still failing.

          Julio Gonzalez Gil added a comment - You're right! Now I'm checking Jenkins changelog and noticed https://issues.jenkins-ci.org/browse/JENKINS-12124 (Random class loading error mostly known to affect static analysis plugins). I'll talk to my IT team to see if we can just upgrade our develenv installation, and will get back with the result. It will take some days to get a date for the upgrade and to check if the plugin is still failing.

          I upgraded last week to Jenkins 1.556 just to use the same version as the current develenv at that moment (release 29).

          I thought that Jenkins 1.556 fixed the problem, but as we still received the error, I decided to upgrade to Jenkins 1.558 this monday. I'll be back with more feedback in some days

          Julio Gonzalez Gil added a comment - I upgraded last week to Jenkins 1.556 just to use the same version as the current develenv at that moment (release 29). I thought that Jenkins 1.556 fixed the problem, but as we still received the error, I decided to upgrade to Jenkins 1.558 this monday. I'll be back with more feedback in some days

          After three weeks using 1.558 we didn't get the error again.

          So it seems to me that, as Ulli pointed, it was bug in core and it's fixed with core 1.558 but not 1.556.

          Should I close the issue?

          Julio Gonzalez Gil added a comment - After three weeks using 1.558 we didn't get the error again. So it seems to me that, as Ulli pointed, it was bug in core and it's fixed with core 1.558 but not 1.556. Should I close the issue?

          Ulli Hafner added a comment -

          Please reopen if it occurs again.

          Ulli Hafner added a comment - Please reopen if it occurs again.

          Sascha Retter added a comment -

          We are having the same issue here. Unfortunately it looks like the problem is persistent and doesn't occur only sometimes.

          We are on Jenkins 1.563

          17:32:25 [WARNINGS] Parsing warnings in console log with parser MSBuild
          17:32:39 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
          17:32:39 java.io.IOException: remote file operation failed: <path> at hudson.remoting.Channel@8da12db:<remote host>
          17:32:39 	at hudson.FilePath.act(FilePath.java:916)
          17:32:39 	at hudson.FilePath.act(FilePath.java:893)
          17:32:39 	at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:461)
          17:32:39 	at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:407)
          17:32:39 	at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:322)
          17:32:39 	at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333)
          17:32:39 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          17:32:39 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
          17:32:39 	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709)
          17:32:39 	at hudson.model.Build$BuildExecution.post2(Build.java:182)
          17:32:39 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658)
          17:32:39 	at hudson.model.Run.execute(Run.java:1731)
          17:32:39 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          17:32:39 	at hudson.model.ResourceController.execute(ResourceController.java:88)
          17:32:39 	at hudson.model.Executor.run(Executor.java:231)
          17:32:39 Caused by: java.io.IOException: Remote call on <remote host> failed
          17:32:39 	at hudson.remoting.Channel.call(Channel.java:748)
          17:32:39 	at hudson.FilePath.act(FilePath.java:909)
          17:32:39 	... 14 more
          17:32:39 Caused by: java.lang.Error: Failed to deserialize the Callable object.
          17:32:39 	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
          17:32:39 	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          17:32:39 	at hudson.remoting.Request$2.run(Request.java:326)
          17:32:39 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          17:32:39 	at java.util.concurrent.FutureTask.run(Unknown Source)
          17:32:39 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          17:32:39 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          17:32:39 	at hudson.remoting.Engine$1$1.run(Engine.java:58)
          17:32:39 	at java.lang.Thread.run(Unknown Source)
          17:32:39 Caused by: java.lang.ClassCastException: cannot assign instance of hudson.plugins.analysis.util.TreeString to field hudson.plugins.analysis.util.model.AbstractAnnotation.fileName of type hudson.plugins.analysis.util.TreeString in instance of hudson.plugins.warnings.parser.Warning
          17:32:39 	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(Unknown Source)
          17:32:39 	at java.io.ObjectStreamClass.setObjFieldValues(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject0(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject(Unknown Source)
          17:32:39 	at java.util.HashSet.readObject(Unknown Source)
          17:32:39 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          17:32:39 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          17:32:39 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          17:32:39 	at java.lang.reflect.Method.invoke(Unknown Source)
          17:32:39 	at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject0(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject0(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject0(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject0(Unknown Source)
          17:32:39 	at java.io.ObjectInputStream.readObject(Unknown Source)
          17:32:39 	at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
          17:32:39 	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
          17:32:39 	... 8 more
          

          Sascha Retter added a comment - We are having the same issue here. Unfortunately it looks like the problem is persistent and doesn't occur only sometimes. We are on Jenkins 1.563 17:32:25 [WARNINGS] Parsing warnings in console log with parser MSBuild 17:32:39 ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception 17:32:39 java.io.IOException: remote file operation failed: <path> at hudson.remoting.Channel@8da12db:<remote host> 17:32:39 at hudson.FilePath.act(FilePath.java:916) 17:32:39 at hudson.FilePath.act(FilePath.java:893) 17:32:39 at hudson.plugins.warnings.WarningsPublisher.annotate(WarningsPublisher.java:461) 17:32:39 at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:407) 17:32:39 at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:322) 17:32:39 at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:333) 17:32:39 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 17:32:39 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745) 17:32:39 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:709) 17:32:39 at hudson.model.Build$BuildExecution.post2(Build.java:182) 17:32:39 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:658) 17:32:39 at hudson.model.Run.execute(Run.java:1731) 17:32:39 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 17:32:39 at hudson.model.ResourceController.execute(ResourceController.java:88) 17:32:39 at hudson.model.Executor.run(Executor.java:231) 17:32:39 Caused by: java.io.IOException: Remote call on <remote host> failed 17:32:39 at hudson.remoting.Channel.call(Channel.java:748) 17:32:39 at hudson.FilePath.act(FilePath.java:909) 17:32:39 ... 14 more 17:32:39 Caused by: java.lang.Error: Failed to deserialize the Callable object. 17:32:39 at hudson.remoting.UserRequest.perform(UserRequest.java:104) 17:32:39 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:32:39 at hudson.remoting.Request$2.run(Request.java:326) 17:32:39 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:32:39 at java.util.concurrent.FutureTask.run(Unknown Source) 17:32:39 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 17:32:39 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 17:32:39 at hudson.remoting.Engine$1$1.run(Engine.java:58) 17:32:39 at java.lang. Thread .run(Unknown Source) 17:32:39 Caused by: java.lang.ClassCastException: cannot assign instance of hudson.plugins.analysis.util.TreeString to field hudson.plugins.analysis.util.model.AbstractAnnotation.fileName of type hudson.plugins.analysis.util.TreeString in instance of hudson.plugins.warnings.parser.Warning 17:32:39 at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(Unknown Source) 17:32:39 at java.io.ObjectStreamClass.setObjFieldValues(Unknown Source) 17:32:39 at java.io.ObjectInputStream.defaultReadFields(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readSerialData(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject0(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject(Unknown Source) 17:32:39 at java.util.HashSet.readObject(Unknown Source) 17:32:39 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 17:32:39 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 17:32:39 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 17:32:39 at java.lang.reflect.Method.invoke(Unknown Source) 17:32:39 at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readSerialData(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject0(Unknown Source) 17:32:39 at java.io.ObjectInputStream.defaultReadFields(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readSerialData(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject0(Unknown Source) 17:32:39 at java.io.ObjectInputStream.defaultReadFields(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readSerialData(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject0(Unknown Source) 17:32:39 at java.io.ObjectInputStream.defaultReadFields(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readSerialData(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject0(Unknown Source) 17:32:39 at java.io.ObjectInputStream.readObject(Unknown Source) 17:32:39 at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) 17:32:39 at hudson.remoting.UserRequest.perform(UserRequest.java:98) 17:32:39 ... 8 more

          Ulli Hafner added a comment -

          I don't see what I can do here in my plug-in, this must be a race condition somewhere deep in Jenkins' classloader...

          Ulli Hafner added a comment - I don't see what I can do here in my plug-in, this must be a race condition somewhere deep in Jenkins' classloader...

          Chris Schade added a comment -

          We're having a similar issue here (but the ClassCastException involves different classes);

          [WARNINGS] Parsing warnings in files 'gcc_warnings.log' with parser GNU C Compiler 4 (gcc)
          ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception
          java.io.IOException: remote file operation failed: /home/jenkins/jenkinsslave2/workspace/nids-nightly-unittest-debug at hudson.remoting.Channel@19ad42c4:build-machine: java.io.IOException: Remote call on build-machine failed
          	at hudson.FilePath.act(FilePath.java:985)
          	at hudson.FilePath.act(FilePath.java:967)
          	at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:426)
          	at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:323)
          	at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:152)
          	at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:349)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721)
          	at hudson.model.Build$BuildExecution.post2(Build.java:183)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
          	at hudson.model.Run.execute(Run.java:1766)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:98)
          	at hudson.model.Executor.run(Executor.java:374)
          Caused by: java.io.IOException: Remote call on build-machine failed
          	at hudson.remoting.Channel.call(Channel.java:761)
          	at hudson.FilePath.act(FilePath.java:978)
          	... 14 more
          Caused by: java.lang.Error: Failed to deserialize the Callable object.
          	at hudson.remoting.UserRequest.perform(UserRequest.java:104)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          	at hudson.remoting.Request$2.run(Request.java:326)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at hudson.remoting.Engine$1$1.run(Engine.java:58)
          	at java.lang.Thread.run(Thread.java:744)
          	at ......remote call to build-machine(Native Method)
          	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361)
          	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
          	at hudson.remoting.Channel.call(Channel.java:753)
          	... 15 more
          Caused by: java.lang.ClassCastException: cannot assign instance of hudson.plugins.warnings.parser.FileWarningsParser to field hudson.plugins.analysis.core.FilesParser.parser of type hudson.plugins.analysis.core.AnnotationParser in instance of hudson.plugins.analysis.core.FilesParser
          	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2083)
          	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1261)
          	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1996)
          	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
          	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
          	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
          	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
          	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
          	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
          	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
          	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
          	at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          	at hudson.remoting.Request$2.run(Request.java:326)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at hudson.remoting.Engine$1$1.run(Engine.java:58)
          	at java.lang.Thread.run(Thread.java:744)
          

          Once in a blue moon the build will actually succeed, the next day it is broken again without any change occuring that day.

          If this is not an issue with the plugin as you say Ulli, could you help with creating a relevant ticket in the Jenkins core? This issue is making the plugin unusable for us

          Additional info:
          Jenkins version: 1.610
          Plugin is running on a slave
          Other analysis-like plugins that run without issue:

          • CPPCheck
          • Code coverage (Cobertura)

          Chris Schade added a comment - We're having a similar issue here (but the ClassCastException involves different classes); [WARNINGS] Parsing warnings in files 'gcc_warnings.log' with parser GNU C Compiler 4 (gcc) ERROR: Publisher hudson.plugins.warnings.WarningsPublisher aborted due to exception java.io.IOException: remote file operation failed: /home/jenkins/jenkinsslave2/workspace/nids-nightly-unittest-debug at hudson.remoting.Channel@19ad42c4:build-machine: java.io.IOException: Remote call on build-machine failed at hudson.FilePath.act(FilePath.java:985) at hudson.FilePath.act(FilePath.java:967) at hudson.plugins.warnings.WarningsPublisher.parseFiles(WarningsPublisher.java:426) at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:323) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:152) at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:349) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Caused by: java.io.IOException: Remote call on build-machine failed at hudson.remoting.Channel.call(Channel.java:761) at hudson.FilePath.act(FilePath.java:978) ... 14 more Caused by: java.lang.Error: Failed to deserialize the Callable object. at hudson.remoting.UserRequest.perform(UserRequest.java:104) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang. Thread .run( Thread .java:744) at ......remote call to build-machine(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:753) ... 15 more Caused by: java.lang.ClassCastException: cannot assign instance of hudson.plugins.warnings.parser.FileWarningsParser to field hudson.plugins.analysis.core.FilesParser.parser of type hudson.plugins.analysis.core.AnnotationParser in instance of hudson.plugins.analysis.core.FilesParser at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2083) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1261) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1996) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang. Thread .run( Thread .java:744) Once in a blue moon the build will actually succeed, the next day it is broken again without any change occuring that day. If this is not an issue with the plugin as you say Ulli, could you help with creating a relevant ticket in the Jenkins core? This issue is making the plugin unusable for us Additional info: Jenkins version: 1.610 Plugin is running on a slave Other analysis-like plugins that run without issue: CPPCheck Code coverage (Cobertura)

          Ulli Hafner added a comment -

          I think this ticket already shows the problem, I don't see why another ticket in core would help? The only one who can actually look into this is Kohsuke... I can try to ping him in the IRC channel, maybe he finds some minutes to look into it.

          Ulli Hafner added a comment - I think this ticket already shows the problem, I don't see why another ticket in core would help? The only one who can actually look into this is Kohsuke... I can try to ping him in the IRC channel, maybe he finds some minutes to look into it.

          Jake Cobb added a comment -

          drulli What version will the fix be in?  Is there an associated commit?

          Jake Cobb added a comment - drulli What version will the fix be in?  Is there an associated commit?

          Ulli Hafner added a comment -

          Ulli Hafner added a comment - https://wiki.jenkins.io/display/JENKINS/Warnings+Next+Generation+Plugin

            drulli Ulli Hafner
            juliogonzalez Julio Gonzalez Gil
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: