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

InvalidClassException by Envinject plugin

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Postponed
    • Icon: Major Major
    • None
    • jenkins ver 2.32.1
      Master: JDK1.8 OS: Redhat EL 6.5
      Slave: JDK1.7 OS:AIX 6.1

      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
      

            Unassigned Unassigned
            fartpig feng lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: