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

/api/xml?depth=1 throws exception (again)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Postponed
    • Component/s: core
    • Labels:
      None
    • Environment:
      RHEL5.5
    • Similar Issues:

      Description

      We're running the latest Hudson 1.373 and trying to call /api/xml?depth=1. We get the following stack trace:

      [Winstone 2010/08/25 11:57:08] - Untrapped Error in Servlet
      javax.servlet.ServletException: org.kohsuke.stapler.export.NotExportableException: class hudson.util.DescribableList doesn't have @ExportedBean
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:569)
      at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      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 winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: org.kohsuke.stapler.export.NotExportableException: class hudson.util.DescribableList doesn't have @ExportedBean
      at org.kohsuke.stapler.export.Model.<init>(Model.java:46)
      at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:181)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:188)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:151)
      at org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
      at org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
      at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
      at org.kohsuke.stapler.export.Model.writeTo(Model.java:129)
      at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:176)
      at hudson.model.Api.doXml(Api.java:88)
      at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
      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:259)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      ... 25 more

        Attachments

          Issue Links

            Activity

            Hide
            mindless Alan Harder added a comment -

            I don't like the clone feature in jira.. can you update the issue description or add comments for the details of the problem you saw? I assume you're not using 1.373, and probably the stack trace in a newer release is slightly different..

            Show
            mindless Alan Harder added a comment - I don't like the clone feature in jira.. can you update the issue description or add comments for the details of the problem you saw? I assume you're not using 1.373, and probably the stack trace in a newer release is slightly different..
            Hide
            tumbarumba Tumbarumba added a comment -

            Sorry, I cloned this on Friday, but then couldn't work out how to edit the details to give the new information (not sure that I have enough privileges)

            Anyway, we installed Hudson 1.380, and we were able to see the exception starting like org.kohsuke.stapler.export.NotExportableException: class hudson.util.DescribableList doesn't have @ExportedBean - the same as the previous issue which had apparently been fixed in 1.376

            I checked the code, and I couldn't see that the change to fix it had been reverted, so I guess this is something else.

            Note that we only actually see this particular exception when we request details for a job that is currently executing.

            e.g. http://ci-master:8080/job/JobName/api/xml?depth=1

            (works when job is not executing, gets an exception when the job is executing

            Show
            tumbarumba Tumbarumba added a comment - Sorry, I cloned this on Friday, but then couldn't work out how to edit the details to give the new information (not sure that I have enough privileges) Anyway, we installed Hudson 1.380, and we were able to see the exception starting like org.kohsuke.stapler.export.NotExportableException: class hudson.util.DescribableList doesn't have @ExportedBean - the same as the previous issue which had apparently been fixed in 1.376 I checked the code, and I couldn't see that the change to fix it had been reverted, so I guess this is something else. Note that we only actually see this particular exception when we request details for a job that is currently executing. e.g. http://ci-master:8080/job/JobName/api/xml?depth=1 (works when job is not executing, gets an exception when the job is executing
            Hide
            mindless Alan Harder added a comment -

            I was not able to reproduce this. Please follow the advice in the comments of the original issue.. try removing different plugins, etc to narrow down what is causing this. Job API while job is running is a good start at narrowing, but I didn't see any error on a simple freestyle job with current svn.
            Also post the stack trace you get.

            Show
            mindless Alan Harder added a comment - I was not able to reproduce this. Please follow the advice in the comments of the original issue.. try removing different plugins, etc to narrow down what is causing this. Job API while job is running is a good start at narrowing, but I didn't see any error on a simple freestyle job with current svn. Also post the stack trace you get.
            Hide
            mindless Alan Harder added a comment -

            reopen issue when you can provide more details to narrow down the issue, thanks.

            Show
            mindless Alan Harder added a comment - reopen issue when you can provide more details to narrow down the issue, thanks.

              People

              • Assignee:
                mindless Alan Harder
                Reporter:
                tumbarumba Tumbarumba
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: