java.lang.SecurityException: class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package

Jenkins JIRA | Jesse Glick | 2 years ago
  1. 0

    Take a plugin which has a dependency on {{maven-plugin}}, such as {{copyartifact}}. Now update the dependency to 2.7.1 and try to run functional tests. Everything blows up: {code:none} === Starting CopyArtifactTest.testMavenJobWithArchivePostBuildStep ... hudson.model.AbstractBuild$AbstractBuildExecution reportError WARNING: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.SecurityException: class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:952) at java.lang.ClassLoader.preDefineClass(ClassLoader.java:666) at java.lang.ClassLoader.defineClass(ClassLoader.java:794) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at jenkins.FilePathFilter.current(FilePathFilter.java:108) at hudson.FilePath.reading(FilePath.java:2677) at hudson.FilePath.access$000(FilePath.java:190) at hudson.FilePath$40.invoke(FilePath.java:2034) at hudson.FilePath$40.invoke(FilePath.java:2027) at hudson.FilePath.act(FilePath.java:980) at hudson.FilePath.act(FilePath.java:958) at hudson.FilePath.copyRecursiveTo(FilePath.java:2027) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:218) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code} This is because {{remoting.jar}} is signed (which IMO it should not be), yet {{SECURITY\-144-compat.jar}} is not. As a workaround it suffices to add {code:xml} <exclusions> <exclusion> <groupId>org.jenkins-ci</groupId> <artifactId>SECURITY-144-compat</artifactId> </exclusion> </exclusions> {code} to the dependency, but this is not going to be sustainable if other plugins start adding the dep too.

    Jenkins JIRA | 2 years ago | Jesse Glick
    java.lang.SecurityException: class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package
  2. 0

    Take a plugin which has a dependency on {{maven-plugin}}, such as {{copyartifact}}. Now update the dependency to 2.7.1 and try to run functional tests. Everything blows up: {code:none} === Starting CopyArtifactTest.testMavenJobWithArchivePostBuildStep ... hudson.model.AbstractBuild$AbstractBuildExecution reportError WARNING: Publisher hudson.tasks.ArtifactArchiver aborted due to exception java.lang.SecurityException: class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:952) at java.lang.ClassLoader.preDefineClass(ClassLoader.java:666) at java.lang.ClassLoader.defineClass(ClassLoader.java:794) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at jenkins.FilePathFilter.current(FilePathFilter.java:108) at hudson.FilePath.reading(FilePath.java:2677) at hudson.FilePath.access$000(FilePath.java:190) at hudson.FilePath$40.invoke(FilePath.java:2034) at hudson.FilePath$40.invoke(FilePath.java:2027) at hudson.FilePath.act(FilePath.java:980) at hudson.FilePath.act(FilePath.java:958) at hudson.FilePath.copyRecursiveTo(FilePath.java:2027) at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61) at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:218) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1770) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code} This is because {{remoting.jar}} is signed (which IMO it should not be), yet {{SECURITY\-144-compat.jar}} is not. As a workaround it suffices to add {code:xml} <exclusions> <exclusion> <groupId>org.jenkins-ci</groupId> <artifactId>SECURITY-144-compat</artifactId> </exclusion> </exclusions> {code} to the dependency, but this is not going to be sustainable if other plugins start adding the dep too.

    Jenkins JIRA | 2 years ago | Jesse Glick
    java.lang.SecurityException: class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package
  3. 0

    Tachyon UI Error

    Google Groups | 9 months ago | donakalz
    java.lang.SecurityException: class "javax.servlet.HttpConstraintElement"'s signer information does not match signer information of other classes in the same package
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    KafkaSparkStreamingSpec testsuite does not pass.

    GitHub | 2 years ago | huylv
    java.lang.SecurityException: class "javax.servlet.FilterRegistration"'s signer information does not match signer information of other classes in the same package
  6. 0

    java.lang.SecurityException

    GitHub | 2 years ago | IITC
    java.lang.SecurityException: class "org.powerbot.script.rt4.TileMatrix$1"'s signer information does not match signer information of other classes in the same package

  1. Nikolay Rybak 4 times, last 2 months ago
  2. bpbhat77 10 times, last 3 months ago
  3. poroszd 3 times, last 4 months ago
  4. bpbhat77 6 times, last 5 months ago
73 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    class "org.jenkinsci.remoting.CallableDecorator"'s signer information does not match signer information of other classes in the same package

    at java.lang.ClassLoader.checkCerts()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.checkCerts(ClassLoader.java:952)
    2. java.lang.ClassLoader.preDefineClass(ClassLoader.java:666)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:794)
    4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    5. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    6. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    8. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    9. java.security.AccessController.doPrivileged(Native Method)
    10. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    11. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    12. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    13. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    13 frames
  3. jenkins
    FilePathFilter.current
    1. jenkins.FilePathFilter.current(FilePathFilter.java:108)
    1 frame
  4. Hudson
    FilePath.copyRecursiveTo
    1. hudson.FilePath.reading(FilePath.java:2677)
    2. hudson.FilePath.access$000(FilePath.java:190)
    3. hudson.FilePath$40.invoke(FilePath.java:2034)
    4. hudson.FilePath$40.invoke(FilePath.java:2027)
    5. hudson.FilePath.act(FilePath.java:980)
    6. hudson.FilePath.act(FilePath.java:958)
    7. hudson.FilePath.copyRecursiveTo(FilePath.java:2027)
    7 frames
  5. jenkins.model
    StandardArtifactManager.archive
    1. jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
    1 frame
  6. Hudson
    AbstractBuild$AbstractBuildExecution.performAllBuildSteps
    1. hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:218)
    2. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
    3. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    4. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
    5 frames
  7. Hudson Maven Embedder
    MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
    1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1037)
    1 frame
  8. Hudson
    Run.execute
    1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
    2. hudson.model.Run.execute(Run.java:1770)
    2 frames
  9. Hudson Maven Embedder
    MavenModuleSetBuild.run
    1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
    1 frame
  10. Hudson
    Executor.run
    1. hudson.model.ResourceController.execute(ResourceController.java:89)
    2. hudson.model.Executor.run(Executor.java:240)
    2 frames