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

Unable to monitor external job in 1.470 (IllegalAccessError)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      java-6-openjdk, Linux/3.2.0-0.bpo.2-amd64

      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)

        Activity

        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: