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

Unable to monitor external job in 1.470 (IllegalAccessError)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Installed clean Jenkins 1.470 and attempted to set up a remote job. After the job finished jenkins reports the following stacktrace. Eventually I cleaned the jenkins webapp dir and replaced with 1.447.2 (LTS) and the same job then ran fine.

      Started
      FATAL: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2
      java.lang.IllegalAccessError: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2
      at hudson.model.ExternalRun$2.run(ExternalRun.java:121)
      at hudson.model.Run.execute(Run.java:1460)
      at hudson.model.ExternalRun.acceptRemoteSubmission(ExternalRun.java:100)
      at hudson.model.ExternalJob.doPostBuildResult(ExternalJob.java:102)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:636)

        Attachments

          Activity

          Hide
          sevein Jesús García Crespo added a comment -

          Same here.

          Show
          sevein Jesús García Crespo added a comment - Same here.
          Hide
          dkelsey Dave Kelsey added a comment -

          I'm using version 1.472 and get the same error.
          I'm running ls -l as described in https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs

          sudo apt-get install jenkins-external-tool-monitor
          # obviously you should replace localhost with a FQDN if you want to run jobs from other machines.
          export JENKINS_HOME=http://@sorins.uk.xensource.com:8080/export JENKINS_HOME=http://@localhost:8080/
          java -jar /usr/share/jenkins/external-job-monitor/java/jenkins-core-*.jar "external-build-job-name" command-to-run
          java -jar /usr/share/jenkins/external-job-monitor/java/jenkins-core-*.jar "external-build-test" ls -l
          

          The stack trace is:

          Started
          FATAL: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2
          java.lang.IllegalAccessError: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2
          	at hudson.model.ExternalRun$2.run(ExternalRun.java:121)
          	at hudson.model.Run.execute(Run.java:1488)
          	at hudson.model.ExternalRun.acceptRemoteSubmission(ExternalRun.java:100)
          	at hudson.model.ExternalJob.doPostBuildResult(ExternalJob.java:102)
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          	at java.lang.reflect.Method.invoke(Method.java:597)
          	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
          	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
          	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
          	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
          	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
          	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
          	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
          	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
          	at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
          	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
          	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
          	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
          	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
          	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
          	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
          	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
          	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
          	at java.lang.Thread.run(Thread.java:619)
          
          Show
          dkelsey Dave Kelsey added a comment - I'm using version 1.472 and get the same error. I'm running ls -l as described in https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs sudo apt-get install jenkins-external-tool-monitor # obviously you should replace localhost with a FQDN if you want to run jobs from other machines. export JENKINS_HOME=http: //@sorins.uk.xensource.com:8080/export JENKINS_HOME=http://@localhost:8080/ java -jar /usr/share/jenkins/external-job-monitor/java/jenkins-core-*.jar "external-build-job-name" command-to-run java -jar /usr/share/jenkins/external-job-monitor/java/jenkins-core-*.jar "external-build-test" ls -l The stack trace is: Started FATAL: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2 java.lang.IllegalAccessError: tried to access field hudson.model.Run.charset from class hudson.model.ExternalRun$2 at hudson.model.ExternalRun$2.run(ExternalRun.java:121) at hudson.model.Run.execute(Run.java:1488) at hudson.model.ExternalRun.acceptRemoteSubmission(ExternalRun.java:100) at hudson.model.ExternalJob.doPostBuildResult(ExternalJob.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488) at org.kohsuke.stapler.Stapler.service(Stapler.java:162) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang. Thread .run( Thread .java:619)
          Hide
          aaronsproul Aaron added a comment -

          I had the same problem as above on version 1.469. I downgraded to version 1.464 to avoid the above issue.

          Show
          aaronsproul Aaron added a comment - I had the same problem as above on version 1.469. I downgraded to version 1.464 to avoid the above issue.
          Hide
          azigui azigui azigui added a comment -

          I have the same problem since I upgraded to 1.474
          how can I resolve this or downgrade

          Best regards

          Show
          azigui azigui azigui added a comment - I have the same problem since I upgraded to 1.474 how can I resolve this or downgrade Best regards
          Hide
          dkelsey Dave Kelsey added a comment - - edited

          Aaron, thanks that worked.
          I downgraded to 1.464 and re-ran the ls -l example and it worked.

          So newer versions have broken the ability to monitor external jobs.

          Show
          dkelsey Dave Kelsey added a comment - - edited Aaron, thanks that worked. I downgraded to 1.464 and re-ran the ls -l example and it worked. So newer versions have broken the ability to monitor external jobs.
          Hide
          azigui azigui azigui added a comment -

          Hi Dave,

          Can you explain me how can you downgrade Jenkins to 1.464

          Thx a lot

          Best regards

          Show
          azigui azigui azigui added a comment - Hi Dave, Can you explain me how can you downgrade Jenkins to 1.464 Thx a lot Best regards
          Hide
          dkelsey Dave Kelsey added a comment -

          azigui,

          I simply downloaded the old version of Jenks from the 'past releases' link -> http://mirrors.jenkins-ci.org/war/1.464/
          I found where the current jeninks.war was , deleted it, put the 1.464 version there and started my app server. On solaris I'm using Tomcat.

          Dave

          Show
          dkelsey Dave Kelsey added a comment - azigui, I simply downloaded the old version of Jenks from the 'past releases' link -> http://mirrors.jenkins-ci.org/war/1.464/ I found where the current jeninks.war was , deleted it, put the 1.464 version there and started my app server. On solaris I'm using Tomcat. Dave
          Hide
          jeremycrussell Jeremy Russell added a comment -

          Getting the same exception, other it's with FATAL: null, with jenkins 1.474 and Sun JDK 6u32 on RHEL 5.6.

          Show
          jeremycrussell Jeremy Russell added a comment - Getting the same exception, other it's with FATAL: null, with jenkins 1.474 and Sun JDK 6u32 on RHEL 5.6.
          Hide
          dkelsey Dave Kelsey added a comment -

          Jeremy, try version 1.464 1.474 fails.

          Show
          dkelsey Dave Kelsey added a comment - Jeremy, try version 1.464 1.474 fails.
          Hide
          jeremycrussell Jeremy Russell added a comment -

          Ya, I downgraded to 1.467 and it's working just fine.

          Show
          jeremycrussell Jeremy Russell added a comment - Ya, I downgraded to 1.467 and it's working just fine.
          Hide
          azigui azigui azigui added a comment -

          Thx a lot for yours responses, I test with jenkins 1.464

          Show
          azigui azigui azigui added a comment - Thx a lot for yours responses, I test with jenkins 1.464
          Hide
          azigui azigui azigui added a comment -

          Thx a lot it's working
          so jenkins 1.474 contain probably bugs

          Best regards

          Show
          azigui azigui azigui added a comment - Thx a lot it's working so jenkins 1.474 contain probably bugs Best regards
          Hide
          chrisbailey Chris Bailey added a comment -

          What would be really great is if one of the jenkins devs could acknowledge this issue as a real problem and resolve to fix it. Otherwise future upgrades become impossible.

          Show
          chrisbailey Chris Bailey added a comment - What would be really great is if one of the jenkins devs could acknowledge this issue as a real problem and resolve to fix it. Otherwise future upgrades become impossible.
          Hide
          aaronsproul Aaron added a comment -

          Looks like the External Job functionality was broken during its move to a plugin after version 1.467 was released. See commit 903bf089 for details.

          Show
          aaronsproul Aaron added a comment - Looks like the External Job functionality was broken during its move to a plugin after version 1.467 was released. See commit 903bf089 for details .
          Hide
          linugee hyunil shin added a comment -

          Jenkins ver. 1.474
          the same problem. yesterday was ok, but today in the morning the problem occurred.

          Show
          linugee hyunil shin added a comment - Jenkins ver. 1.474 the same problem. yesterday was ok, but today in the morning the problem occurred.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          src/main/java/hudson/model/ExternalRun.java
          http://jenkins-ci.org/commit/external-monitor-job-plugin/d2bef2c24422b41960914fddc0dab321d59395b5
          Log:
          [FIXED JENKINS-14107] IllegalAccessError on Run.charset.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/model/ExternalRun.java http://jenkins-ci.org/commit/external-monitor-job-plugin/d2bef2c24422b41960914fddc0dab321d59395b5 Log: [FIXED JENKINS-14107] IllegalAccessError on Run.charset.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          war/pom.xml
          http://jenkins-ci.org/commit/jenkins/02e05ec8ef444c7d74bf12f95caae83c3b44f682
          Log:
          JENKINS-14107 Bundling 1.1 version of external job plugin with critical fix.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html war/pom.xml http://jenkins-ci.org/commit/jenkins/02e05ec8ef444c7d74bf12f95caae83c3b44f682 Log: JENKINS-14107 Bundling 1.1 version of external job plugin with critical fix.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1843
          JENKINS-14107 Bundling 1.1 version of external job plugin with critical fix. (Revision 02e05ec8ef444c7d74bf12f95caae83c3b44f682)

          Result = SUCCESS
          Jesse Glick : 02e05ec8ef444c7d74bf12f95caae83c3b44f682
          Files :

          • changelog.html
          • war/pom.xml
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1843 JENKINS-14107 Bundling 1.1 version of external job plugin with critical fix. (Revision 02e05ec8ef444c7d74bf12f95caae83c3b44f682) Result = SUCCESS Jesse Glick : 02e05ec8ef444c7d74bf12f95caae83c3b44f682 Files : changelog.html war/pom.xml

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              chrisbailey Chris Bailey
            • Votes:
              6 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: