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

ShowParametersBuildAction doesn't have @ExportedBean so cannot write hudson.model.Actionabl

      These exceptions are being written to the log file at regular intervalls.

      According to JENKINS-24458 it might have to do with some REST API call done by the plugin.

      WARNING: null
      org.kohsuke.stapler.export.NotExportableException: class jenkins.plugins.show_build_parameter
      s.ShowParametersBuildAction doesn't have @ExportedBean so cannot write hudson.model.Actionabl
      e.actions
              at org.kohsuke.stapler.export.Model.<init>(Model.java:73)
              at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:51)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:231)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
              at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
              at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
              at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
              at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
              at org.kohsuke.stapler.export.Model.writeTo(Model.java:157)
              at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
              at hudson.model.Api.doJson(Api.java:205)
              at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
              at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      :
      
      ....
      

          [JENKINS-24698] ShowParametersBuildAction doesn't have @ExportedBean so cannot write hudson.model.Actionabl

          Per Arnold Blaasmo created issue -
          Per Arnold Blaasmo made changes -
          Link New: This issue is related to JENKINS-24458 [ JENKINS-24458 ]

          I just rebuild this using Jenkins 1.579, and updated the pom.xml to point to correct repository.

          Then all warnings disappeared. I did not change any of the code itself. So maybe it just need a newer version of Jenkins?

          Per Arnold Blaasmo added a comment - I just rebuild this using Jenkins 1.579, and updated the pom.xml to point to correct repository. Then all warnings disappeared. I did not change any of the code itself. So maybe it just need a newer version of Jenkins?

          I was a little to hasty, the warnings did not disappear
          So I get I have to follow https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API and add @ExportedBean for the class.

          I will try that.

          I am not sure though what provokes the warning?
          When running it isolated it does not seem to trigger the warning, but when running it on the production server it gets triggered.

          Per Arnold Blaasmo added a comment - I was a little to hasty, the warnings did not disappear So I get I have to follow https://wiki.jenkins-ci.org/display/JENKINS/Exposing+data+to+the+remote+API and add @ExportedBean for the class. I will try that. I am not sure though what provokes the warning? When running it isolated it does not seem to trigger the warning, but when running it on the production server it gets triggered.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 157727 ] New: JNJira + In-Review [ 179661 ]
          Allan Lewis made changes -
          Description Original: These exceptions are being written to the log file at regular intervalls.

          According to JENKINS-24458 it might have to do with some REST API call done by the plugin.

          WARNING: null
          org.kohsuke.stapler.export.NotExportableException: class jenkins.plugins.show_build_parameter
          s.ShowParametersBuildAction doesn't have @ExportedBean so cannot write hudson.model.Actionabl
          e.actions
                  at org.kohsuke.stapler.export.Model.<init>(Model.java:73)
                  at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:51)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:231)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeTo(Model.java:157)
                  at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
                  at hudson.model.Api.doJson(Api.java:205)
                  at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
                  at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
                  at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
                  at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
                  at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          :

          ....
          New: These exceptions are being written to the log file at regular intervalls.

          According to JENKINS-24458 it might have to do with some REST API call done by the plugin.

          {noformat}
          WARNING: null
          org.kohsuke.stapler.export.NotExportableException: class jenkins.plugins.show_build_parameter
          s.ShowParametersBuildAction doesn't have @ExportedBean so cannot write hudson.model.Actionabl
          e.actions
                  at org.kohsuke.stapler.export.Model.<init>(Model.java:73)
                  at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:51)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:231)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:241)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:187)
                  at org.kohsuke.stapler.export.Property.writeValue(Property.java:139)
                  at org.kohsuke.stapler.export.Property.writeTo(Property.java:116)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:190)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:185)
                  at org.kohsuke.stapler.export.Model.writeTo(Model.java:157)
                  at org.kohsuke.stapler.ResponseImpl.serveExposedBean(ResponseImpl.java:267)
                  at hudson.model.Api.doJson(Api.java:205)
                  at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                  at java.lang.reflect.Method.invoke(Method.java:606)
                  at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
                  at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
                  at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
                  at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120)
                  at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
                  at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
          :

          ....
          {noformat}

            petehayes Peter Hayes
            pablaasmo Per Arnold Blaasmo
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: