Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47234

java.lang.SecurityException: Rejected: com.google.inject.ProvisionException when trying to start a job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am running Jenkins in a Master slave environment. After upgrading Jenkins to Version 2.81 i get the following exception:

      Parsing POMs
      ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker ([https://jenkins.io/redirect/report-an-issue]).
      java.lang.SecurityException: Rejected: com.google.inject.ProvisionException
      at hudson.remoting.ClassFilter.check(ClassFilter.java:46)
      at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:124)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
      at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501)
      at java.lang.Throwable.readObject(Throwable.java:914)
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
      at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501)
      at java.lang.Throwable.readObject(Throwable.java:914)
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
      at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501)
      at java.lang.Throwable.readObject(Throwable.java:914)
      at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
      at hudson.remoting.UserRequest.deserialize(UserRequest.java:272)
      at hudson.remoting.UserResponse.retrieve(UserRequest.java:305)
      at hudson.remoting.Channel.call(Channel.java:904)
      at hudson.FilePath.act(FilePath.java:987)
      at hudson.FilePath.act(FilePath.java:976)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:986)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:691)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)
      at hudson.model.Run.execute(Run.java:1724)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:419)

        Attachments

          Activity

          Hide
          jens_mueller Jens Müller added a comment -

          Hi Oleg, good news. I have solved the Problem by installing the actual Version of the maven Integration plugin (3.0-rc2). Best regards Jens

          Show
          jens_mueller Jens Müller added a comment - Hi Oleg, good news. I have solved the Problem by installing the actual Version of the maven Integration plugin (3.0-rc2). Best regards Jens
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          No idea how it would solve that, but glad to see it's fixed.

          Show
          oleg_nenashev Oleg Nenashev added a comment - No idea how it would solve that, but glad to see it's fixed.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Should we just close the ticket as "Resolved" or "Cannot reproduce"?

          Show
          oleg_nenashev Oleg Nenashev added a comment - Should we just close the ticket as "Resolved" or "Cannot reproduce"?
          Hide
          jens_mueller Jens Müller added a comment -

          Yes i think it makes sence

          Show
          jens_mueller Jens Müller added a comment - Yes i think it makes sence
          Hide
          supersmo Samuel Mörling added a comment -

          In case someone else has the same issue:

          I got the exact same error in the Jenkins log, however on the slave the log showed that it failed to open a zip file because the file was empty. After deleting the empty jar file displayed in the log, maven started working again and the file was re-cached.

          I no longer have the exact file location but it was one of the jars in: %userprofile%\.jenkins\cache\jars\

          (It was a windows slave)

          Deleting the whole cache on the slave machine would've probably fixed it as well.

          Show
          supersmo Samuel Mörling added a comment - In case someone else has the same issue: I got the exact same error in the Jenkins log, however on the slave the log showed that it failed to open a zip file because the file was empty. After deleting the empty jar file displayed in the log, maven started working again and the file was re-cached. I no longer have the exact file location but it was one of the jars in: %userprofile%\.jenkins\cache\jars\ (It was a windows slave) Deleting the whole cache on the slave machine would've probably fixed it as well.

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              jens_mueller Jens Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: