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

Maven build fails on CleanTempFilesAction#tempFiles serialization

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A Maven project build (on a remote slave) fails with:
      org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.maven.MavenModuleSetBuild
      at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      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: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 java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.maven.MavenModuleSetBuild
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:167)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:130)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:120)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:94)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:840)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:829)
      at com.thoughtworks.xstream.XStream.toXML(XStream.java:804)
      at hudson.XmlFile.write(XmlFile.java:173)
      at hudson.model.Run.save(Run.java:1557)
      at hudson.maven.MavenModuleSetBuild.notifyModuleBuild(MavenModuleSetBuild.java:532)
      at hudson.maven.MavenBuild$ProxyImpl2.end(MavenBuild.java:492)
      at sun.reflect.GeneratedMethodAccessor543.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at hudson.model.Executor$1.call(Executor.java:533)
      at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      at $Proxy51.end(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor542.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      ... 9 more
      Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.configfiles.buildwrapper.CleanTempFilesAction#tempFiles for class org.jenkinsci.plugins.configfiles.buildwrapper.CleanTempFilesAction
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:167)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:130)
      at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:120)
      at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:94)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:176)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:163)
      ... 37 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : Can't send a remote FilePath to a different remote channel
      ---- Debugging information ----
      message : Could not call hudson.FilePath.writeObject()
      cause-exception : java.lang.IllegalStateException
      cause-message : Can't send a remote FilePath to a different remote channel
      -------------------------------
      at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:104)
      at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:215)
      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:176)
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:163)
      ... 50 more
      Caused by: java.lang.IllegalStateException: Can't send a remote FilePath to a different remote channel
      at hudson.FilePath.writeObject(FilePath.java:2111)
      at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:100)
      ... 61 more

      I guess this may be related to JENKINS-12823.

        Attachments

          Activity

          Hide
          domi Dominik Bartholdi added a comment - - edited

          Sorry, I'm not able to reproduce the issue...
          can you give me some more hints on this one?

          • you provide a a configuration file - right? how many?
          • in the maven build config, do you select a provided settings.xml from the drop down?
          • has the build worked with the old version?
          • did this occur right with the first build after the upgrade?
          • did this occur after the build failed because of an other issue first?
          • was the previous build successful with the same configuration and plugin version?
          • was the previous build executed on the same slave?

          could you please also provide the build.xml of the failed and the previous build?

          Show
          domi Dominik Bartholdi added a comment - - edited Sorry, I'm not able to reproduce the issue... can you give me some more hints on this one? you provide a a configuration file - right? how many? in the maven build config, do you select a provided settings.xml from the drop down? has the build worked with the old version? did this occur right with the first build after the upgrade? did this occur after the build failed because of an other issue first? was the previous build successful with the same configuration and plugin version? was the previous build executed on the same slave? could you please also provide the build.xml of the failed and the previous build?
          Hide
          mdp mdp added a comment -
          • One configuration file is provided, with "Variable", not "Target". It is a properties file (defined as a "Custom file").
          • settings.xml is not provided.
          • The build worked with 2.0 (and works again after downgrade).
          • This occurred right after the upgrade if I'm not mistaken (I'm not the person who did the upgrade).
          • There were no previous failures in the build.
          • The previous build was successful, with the same confguration, with config provider plugin 2.0.
          • The previous build was on the same slave.
          Show
          mdp mdp added a comment - One configuration file is provided, with "Variable", not "Target". It is a properties file (defined as a "Custom file"). settings.xml is not provided. The build worked with 2.0 (and works again after downgrade). This occurred right after the upgrade if I'm not mistaken (I'm not the person who did the upgrade). There were no previous failures in the build. The previous build was successful, with the same confguration, with config provider plugin 2.0. The previous build was on the same slave.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          http://jenkins-ci.org/commit/config-file-provider-plugin/0e8baa31110b0dca74a2950a9e3e90e6c48ba330
          Log:
          [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java http://jenkins-ci.org/commit/config-file-provider-plugin/0e8baa31110b0dca74a2950a9e3e90e6c48ba330 Log: [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_config-file-provider-plugin #37
          [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization (Revision 0e8baa31110b0dca74a2950a9e3e90e6c48ba330)

          Result = SUCCESS
          imod :
          Files :

          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          • src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_config-file-provider-plugin #37 [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization (Revision 0e8baa31110b0dca74a2950a9e3e90e6c48ba330) Result = SUCCESS imod : Files : src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: imod
          Path:
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java
          src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java
          http://jenkins-ci.org/commit/config-file-provider-plugin/535ad2ac7129f8d5141d32577b50b06ac91e35e0
          Log:
          [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesAction.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/CleanTempFilesRunListener.java src/main/java/org/jenkinsci/plugins/configfiles/buildwrapper/ConfigFileBuildWrapper.java http://jenkins-ci.org/commit/config-file-provider-plugin/535ad2ac7129f8d5141d32577b50b06ac91e35e0 Log: [FIXED JENKINS-13533] Maven build fails on CleanTempFilesAction#tempFiles serialization

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              mdp mdp
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: