org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean

Jenkins JIRA | grimlock81 | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    After upgrading to version 1.331, we can no longer use Netbeans to connect to our Hudson instance. hudson.out.log contains this exception: [Winstone 2009/11/03 17:39:08] - Untrapped Error in Servlet javax.servlet.ServletException: org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean at org.kohsuke.stapler.Stapler.invoke(Stapler.java:505) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:493) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.Stapler.service(Stapler.java:118) 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 org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:38) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97) 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.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:35) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 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(Unknown Source) Caused by: org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean at org.kohsuke.stapler.export.Model.<init>(Model.java:44) at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25) at org.kohsuke.stapler.export.Property.writeValue(Property.java:173) at org.kohsuke.stapler.export.Property.writeValue(Property.java:98) at org.kohsuke.stapler.export.Property.writeTo(Property.java:82) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139) at org.kohsuke.stapler.export.Property.writeValue(Property.java:180) at org.kohsuke.stapler.export.Property.writeValue(Property.java:143) at org.kohsuke.stapler.export.Property.writeValue(Property.java:98) at org.kohsuke.stapler.export.Property.writeTo(Property.java:82) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142) at org.kohsuke.stapler.export.Model.writeTo(Model.java:133) at hudson.model.Api.doXml(Api.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) We are still able to connect to the Hudson instance via a browser.

    Jenkins JIRA | 8 years ago | grimlock81
    org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean
  2. 0

    After upgrading to version 1.331, we can no longer use Netbeans to connect to our Hudson instance. hudson.out.log contains this exception: [Winstone 2009/11/03 17:39:08] - Untrapped Error in Servlet javax.servlet.ServletException: org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean at org.kohsuke.stapler.Stapler.invoke(Stapler.java:505) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:493) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:409) at org.kohsuke.stapler.Stapler.service(Stapler.java:118) 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 org.jvnet.hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:38) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97) 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.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:35) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 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(Unknown Source) Caused by: org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean at org.kohsuke.stapler.export.Model.<init>(Model.java:44) at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25) at org.kohsuke.stapler.export.Property.writeValue(Property.java:173) at org.kohsuke.stapler.export.Property.writeValue(Property.java:98) at org.kohsuke.stapler.export.Property.writeTo(Property.java:82) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139) at org.kohsuke.stapler.export.Property.writeValue(Property.java:180) at org.kohsuke.stapler.export.Property.writeValue(Property.java:143) at org.kohsuke.stapler.export.Property.writeValue(Property.java:98) at org.kohsuke.stapler.export.Property.writeTo(Property.java:82) at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142) at org.kohsuke.stapler.export.Model.writeTo(Model.java:133) at hudson.model.Api.doXml(Api.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) We are still able to connect to the Hudson instance via a browser.

    Jenkins JIRA | 8 years ago | grimlock81
    org.kohsuke.stapler.export.NotExportableException: class hudson.scm.NullSCM doesn't have @ExportedBean

    Root Cause Analysis

    1. org.kohsuke.stapler.export.NotExportableException

      class hudson.scm.NullSCM doesn't have @ExportedBean

      at org.kohsuke.stapler.Stapler.invoke()
    2. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Stapler.invoke(Stapler.java:505)
      2. org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144)
      3. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      4. org.kohsuke.stapler.Stapler.invoke(Stapler.java:493)
      5. org.kohsuke.stapler.Stapler.invoke(Stapler.java:409)
      6. org.kohsuke.stapler.Stapler.service(Stapler.java:118)
      6 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    4. winstone
      RequestDispatcher.doFilter
      1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      3 frames
    5. Hudson
      PluginServletFilter$1.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      1 frame