NullPointer exception on the connection between CJOC and controller


When trying to connect the CJOC with a controller we are getting this log:

[OperationsCenter2 connection to XXXXXXXXX/XXXXXXXX:XXXX] 
at com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction$DescriptorImpl$ServerListenerImpl.onIdentityEstablished( 
at com.cloudbees.opscenter.agent.OperationsCenter2AgentProtocol$ServerState.onHandshakeCompleted( 
at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processHandshakeCompleted( 
at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processResult( 
at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.processRead( 
at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecv( 
at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecv( 
at org.jenkinsci.remoting.protocol.NetworkLayer.onRead( 
at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready( 
at org.jenkinsci.remoting.protocol.IOHub$ 
at jenkins.util.ContextResettingExecutorService$ 
at java.util.concurrent.ThreadPoolExecutor.runWorker( 
at java.util.concurrent.ThreadPoolExecutor$ 


CloudBees Jenkins Operations Center


This issue is related to the socket that is closed before the connection was finished.

If there is a custom plugin, if the implementation on the Jenkins hooks is not correct it could break the CJOC connection with the controller.

We have seen this behavior on:

  • the Slack Notification plugin on version 2.3.
  • the Permissive Script Security plugin. Issue is present even if the plugin is not activated. We recommend uninstalling this plugin on a production system as it deactivates security mechanisms.

You will need to review if you are using this plugin in this version and update it.

In case you are not using it and you have some custom plugins, our recommendation is to disable these custom plugins temporally and check if that fixes the issue. If so you will need to review the implementation of these custom plugins to avoid breaking the hooks on the Jenkins side.

Have more questions?


Please sign in to leave a comment.