Hi all,

In the last day or so, we've started seeing all of our jenkins nodes 
getting disconnected, with an exception in the EnvInject plugin area. These 
nodes have all been stable for several weeks without this issue coming up. 
The only changes in this recent period are a couple of tweaks to some of 
our jobs, but this exception is occurring several seconds after the node 
connects remotely, there is no job being sent at the time.

We are using a script to launch java slaves on windows boxes, which connect 
back to a jenkins master, also running on windows. Right now the only short 
term solution I can see is disabling the EnvInject plugin.

Here's the stack trace we see on the server. The client returns an 
'unexpected termination of the channel' as a result. Any help or 
suggestions here would be much appreciated.

JNLP agent connected from /<ip address...>
<===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.40
This is a Windows slave
Failed to establish the connection with the slave <slave's machine name...>
java.io.IOException: org.jenkinsci.lib.envinject.EnvInjectException: 
java.lang.IllegalAccessException: Can not set static final java.util.Map field 
hudson.EnvVars.masterEnvVars to hudson.EnvVars
        at 
org.jenkinsci.plugins.envinject.EnvInjectComputerListener.onOnline(EnvInjectComputerListener.java:137)
        at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:512)
        at 
jenkins.slaves.JnlpSlaveAgentProtocol$Handler.jnlpConnect(JnlpSlaveAgentProtocol.java:120)
        at 
jenkins.slaves.DefaultJnlpSlaveReceiver.handle(DefaultJnlpSlaveReceiver.java:63)
        at 
jenkins.slaves.JnlpSlaveAgentProtocol2$Handler2.run(JnlpSlaveAgentProtocol2.java:57)
        at 
jenkins.slaves.JnlpSlaveAgentProtocol2.handle(JnlpSlaveAgentProtocol2.java:31)
        at 
hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:157)
Caused by: org.jenkinsci.lib.envinject.EnvInjectException: 
java.lang.IllegalAccessException: Can not set static final java.util.Map field 
hudson.EnvVars.masterEnvVars to hudson.EnvVars
        at 
org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter.call(EnvInjectMasterEnvVarsSetter.java:38)
        at 
org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter.call(EnvInjectMasterEnvVarsSetter.java:15)
        at hudson.remoting.UserRequest.perform(UserRequest.java:118)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:328)
        at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
        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:63)
        at java.lang.Thread.run(Thread.java:937)
Caused by: java.lang.IllegalAccessException: Can not set static final 
java.util.Map field hudson.EnvVars.masterEnvVars to hudson.EnvVars
        at 
Java_sun_reflect_ReflectionFactory+FieldAccessorImplBase.FinalFieldIllegalAccessException(Unknown
 Source)
        at 
Java_sun_reflect_ReflectionFactory+FieldAccessorImplBase+FieldAccessor`1.lazySet(Unknown
 Source)
        at 
Java_sun_reflect_ReflectionFactory+FieldAccessorImplBase+ObjectField.set(Unknown
 Source)
        at java.lang.reflect.Field.set(Field.java:739)
        at 
org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter.call(EnvInjectMasterEnvVarsSetter.java:36)
        ... 10 more

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to