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

InvalidClassException by Envinject plugin

    Details

    • Similar Issues:

      Description

      Whan i install the evninject plugin 2.1.5 and Envinject API plugin 1.5, then any task in my jenkins show below error info:

      [EnvInject]&nbsp;-&nbsp;Loading&nbsp;node&nbsp;environment&nbsp;variables.<br/>ERROR:&nbsp;SEVERE&nbsp;ERROR&nbsp;occurs<br/>org.jenkinsci.lib.envinject.EnvInjectException:&nbsp;java.io.InvalidClassException:&nbsp;org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1;&nbsp;local&nbsp;class&nbsp;incompatible:&nbsp;stream&nbsp;classdesc&nbsp;serialVersionUID&nbsp;=&nbsp;-2630906866550529145,&nbsp;local&nbsp;class&nbsp;serialVersionUID&nbsp;=&nbsp;-2721064306957331564<br/>	at&nbsp;org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvVarsForNode(EnvironmentVariablesNodeLoader.java:95)<br/>	at&nbsp;org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:80)<br/>	at&nbsp;org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:44)<br/>	at&nbsp;hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:572)<br/>	at&nbsp;hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)<br/>	at&nbsp;hudson.model.Run.execute(Run.java:1728)<br/>	at&nbsp;hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)<br/>	at&nbsp;hudson.model.ResourceController.execute(ResourceController.java:98)<br/>	at&nbsp;hudson.model.Executor.run(Executor.java:404)<br/>Caused&nbsp;by:&nbsp;java.io.InvalidClassException:&nbsp;org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1;&nbsp;local&nbsp;class&nbsp;incompatible:&nbsp;stream&nbsp;classdesc&nbsp;serialVersionUID&nbsp;=&nbsp;-2630906866550529145,&nbsp;local&nbsp;class&nbsp;serialVersionUID&nbsp;=&nbsp;-2721064306957331564<br/>	at&nbsp;java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:698)<br/>	at&nbsp;java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1705)<br/>	at&nbsp;java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1600)<br/>	at&nbsp;java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1873)<br/>	at&nbsp;java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1432)<br/>	at&nbsp;java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)<br/>	at&nbsp;hudson.remoting.UserRequest.deserialize(UserRequest.java:217)<br/>	at&nbsp;hudson.remoting.UserRequest.perform(UserRequest.java:131)<br/>	at&nbsp;hudson.remoting.UserRequest.perform(UserRequest.java:50)<br/>	at&nbsp;hudson.remoting.Request$2.run(Request.java:336)<br/>	at&nbsp;hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)<br/>	at&nbsp;java.util.concurrent.FutureTask.run(FutureTask.java:273)<br/>	at&nbsp;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1170)<br/>	at&nbsp;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:640)<br/>	at&nbsp;hudson.remoting.Engine$1$1.run(Engine.java:94)<br/>	at&nbsp;java.lang.Thread.run(Thread.java:853)<br/>	at&nbsp;......remote&nbsp;call&nbsp;to&nbsp;Channel&nbsp;to&nbsp;/192.111.6.241(Native&nbsp;Method)<br/>	at&nbsp;hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1537)<br/>	at&nbsp;hudson.remoting.UserResponse.retrieve(UserRequest.java:253)<br/>	at&nbsp;hudson.remoting.Channel.call(Channel.java:822)<br/>	at&nbsp;hudson.FilePath.act(FilePath.java:1080)<br/>	at&nbsp;org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvVarsForNode(EnvironmentVariablesNodeLoader.java:64)<br/>	...&nbsp;8&nbsp;more<br/>Finished:&nbsp;FAILURE
      

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          org.jenkinsci.lib.envinject.EnvInjectException: java.io.InvalidClassException: org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1 local class incompatible: stream classdesc serialVersionUID = -2630906866550529145, local class serialVersionUID = -2721064306957331564

          Show
          oleg_nenashev Oleg Nenashev added a comment - org.jenkinsci.lib.envinject.EnvInjectException: java.io.InvalidClassException: org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1 local class incompatible: stream classdesc serialVersionUID = -2630906866550529145, local class serialVersionUID = -2721064306957331564
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          cannot reproduce it

          Show
          oleg_nenashev Oleg Nenashev added a comment - cannot reproduce it
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize.

          Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

          Show
          oleg_nenashev Oleg Nenashev added a comment - Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize. Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

            People

            • Assignee:
              Unassigned
              Reporter:
              fartpig feng lin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: