Master is not able to connect Operations Center due to java.lang.SecurityException: Rejected:


  • Master is not able to connect to the CloudBees Jenkins Operation Center
  • Logs show the following exception
2018-06-08 18:46:58.001+0000 [id=58]    SEVERE  c.c.o.c.p.OperationsCenterRootAction$DescriptorImpl#setAgentErrorStateCallback: Agent Connection Error: DescriptorImpl{state=CONNECTABLE, error=java.lang.SecurityException: Rejected:$CertificateRep; see,, operationsCenterUrl=, name='0-Test_Master', grantId='aa03db4b-4d66-410f-a95d-8de6f71e4be1', agentThread=Thread[Operations Center Connector #1,5,main], channel=null, slaveManager=null}
java.lang.SecurityException: Rejected:$CertificateRep; see
    at hudson.remoting.ClassFilter.check(
    at hudson.remoting.ObjectInputStreamEx.resolveClass(



The probable root cause is that the Master is trying to use Multimaster protocol to connect Operations Center. That protocol is not recommended anymore, so switching to OperationsCenter2 protocol is the solution.

Go to Manage Jenkins > Configure Global Security, and under Agents, click on the Agent Protocols... button and ensure that OperationsCenter2 is checked and Multimaster not.

You need to apply this configuration change in Operations Centers and Master side and try to reconnect again the Master to the Operations Centers.

If you are not still able to connect the Master after that, ensure that the connectivity is done from scratch by following below steps

  1. In Master, go to Manage Jenkins > Configure System and verify if Operations Center Connector section exists. If exists, then uncheck the Enable option and save the changes.
  2. In OC, delete the Master item, create a new one and push the new connection details.

Have more questions?


Please sign in to leave a comment.