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

NotExportableException in com.nirima.jenkins.plugins.docker.DockerTemplate on job/(.*)/api/json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • docker-plugin
    • None
    • Jenkins Version: 2.204.2
      Docker Plugin Version: 1.1.9

    Description

      Calls to https://<jenkins-host>/job/<JobName>/api/json  result in an exception with the message DockerTemplate doesn’t have @ExportBean.

      This occurs when the “Define a Docker template” option is used in the job configuration.

      Stacktrace: org.kohsuke.stapler.export.NotExportableException: class com.nirima.jenkins.plugins.docker.DockerTemplate doesn't have @ExportedBean
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:298)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:168)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:153)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:223)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:302)
                  at org.kohsuke.stapler.export.Property.writeBuffered(Property.java:174)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:234)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:168)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:153)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:223)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:219)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:219)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:219)
                  at org.kohsuke.stapler.export.Model.writeTo(Model.java:194)
                  at org.kohsuke.stapler.ResponseImpl.writeOne(ResponseImpl.java:287)
                  at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:278)
                  at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:234)
                  at hudson.model.Api.doJson(Api.java:223)
                  at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
                  at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
                  at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
                  at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
                  at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
                  at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
                  at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            pjstanley Paul Stanley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: