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

Synchronizing Netbeans to Hudson fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Ought to be fixed in 1.332, please confirm.

            Show
            jglick Jesse Glick added a comment - Ought to be fixed in 1.332, please confirm.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java
            trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java
            http://fisheye4.cenqua.com/changelog/hudson/?cs=23458
            Log:
            JENKINS-4760 Forward-porting 23427 to trunk (hotfix for SCM not being @ExportedBean).

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=23458 Log: JENKINS-4760 Forward-porting 23427 to trunk (hotfix for SCM not being @ExportedBean).
            Hide
            jglick Jesse Glick added a comment -

            No, it's not... partly fixed but other issues remain.

            Show
            jglick Jesse Glick added a comment - No, it's not... partly fixed but other issues remain.
            Hide
            jglick Jesse Glick added a comment -

            .

            Show
            jglick Jesse Glick added a comment - .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/hudson/main/core/src/main/java/hudson/scm/RepositoryBrowser.java
            trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java
            trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java
            http://fisheye4.cenqua.com/changelog/hudson/?cs=23460
            Log:
            [FIXED JENKINS-4760] If you export a RepositoryBrowser, it needs to actually be exportable!
            Otherwise get e.g.:
            org.kohsuke.stapler.export.NotExportableException: class hudson.plugins.mercurial.browser.HgWeb 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.Property.writeValue(Property.java:180)
            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.Model.writeTo(Model.java:133)
            at hudson.model.Api.doXml(Api.java:94)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/main/core/src/main/java/hudson/scm/RepositoryBrowser.java trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java trunk/hudson/main/test/src/test/java/hudson/model/ApiTest.java http://fisheye4.cenqua.com/changelog/hudson/?cs=23460 Log: [FIXED JENKINS-4760] If you export a RepositoryBrowser, it needs to actually be exportable! Otherwise get e.g.: org.kohsuke.stapler.export.NotExportableException: class hudson.plugins.mercurial.browser.HgWeb 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.Property.writeValue(Property.java:180) 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.Model.writeTo(Model.java:133) at hudson.model.Api.doXml(Api.java:94)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : jglick
            Path:
            trunk/www/changelog.html
            http://fisheye4.cenqua.com/changelog/hudson/?cs=23461
            Log:
            JENKINS-4760 Noting.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=23461 Log: JENKINS-4760 Noting.
            Hide
            jglick Jesse Glick added a comment -
                • Issue 4793 has been marked as a duplicate of this issue. ***
            Show
            jglick Jesse Glick added a comment - Issue 4793 has been marked as a duplicate of this issue. ***

              People

              Assignee:
              petehayes Peter Hayes
              Reporter:
              grimlock81 grimlock81
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: