SecurityException Rejected errors

Article ID:224902308
1 minute readKnowledge base


I am receiving an error message like the following in my logs (or console output):

java.lang.SecurityException: Rejected: <CLASS_NAME>
    at hudson.remoting.ClassFilter.check(
    at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(


In new versions of Jenkins core is a security mechanism to prevent unwanted classes from being returned from node machines. There is a workaround however it will require a Jenkins restart.

  • Create a file on the Jenkins controller.

  • In the file add the following and save it (You may need to add a line specific to the class being rejected in your error):

  • Add the following to the Jenkins JAVA_ARGS:

  • After the = add the fully qualified path to the file created above.

  • Restart the Jenkins service and the error message should be resolved.