javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor?

Jenkins JIRA | leosoto | 8 years ago
  1. 0

    When using the latest trac plugin and hudson 1.233, if I select Trac as the repository browser and save the setting, I get a "NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler" (complete stacktrace at the end of the report). I don't know too much about the hudson plugin architecture, but I suspect that the "TracRepositoryBrowser.stapler" file should be inside ~/.hudson/plugins/trac/WEB-INF/classes/hudson/plugins/trac/. It isn't. Here is the complete tree I have inside ~/.hudson/plugins/trac/: lsoto@spirit:~/.hudson/plugins/trac$ tree . |-- META-INF | |-- MANIFEST.MF | `-- maven | `-- org.jvnet.hudson.plugins | `-- trac | |-- pom.properties | `-- pom.xml |-- WEB-INF | `-- classes | |-- META-INF | | |-- exposed.beans | | `-- services | | `-- hudson.Plugin | |-- hudson | | `-- plugins | | `-- trac | | |-- PluginImpl.class | | |-- TracLinkAction.class | | |-- TracLinkAnnotator$LinkMarkup.class | | |-- TracLinkAnnotator.class | | |-- TracProjectProperty | | | `-- config.jelly | | |-- TracProjectProperty$DescriptorImpl.class | | |-- TracProjectProperty.class | | |-- TracProjectProperty.stapler | | |-- TracRepositoryBrowser | | | `-- config.jelly | | |-- TracRepositoryBrowser$DescriptorImpl.class | | `-- TracRepositoryBrowser.class | `-- index.jelly |-- help-global.html `-- trac.png 13 directories, 19 files Finally, here is the complete stracktrace [show] org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? at org.kohsuke.stapler.Stapler.invoke(Stapler.java:449) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.service(Stapler.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:91) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:38) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:30) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:619) Caused by: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:426) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:308) at hudson.scm.RepositoryBrowsers.createInstance(RepositoryBrowsers.java:72) at hudson.scm.SubversionSCM$DescriptorImpl.newInstance(SubversionSCM.java:1033) at hudson.scm.SubversionSCM$DescriptorImpl.newInstance(SubversionSCM.java:808) at hudson.scm.SCMS.parseSCM(SCMS.java:37) at hudson.model.AbstractProject.submit(AbstractProject.java:914) at hudson.model.Project.submit(Project.java:150) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68) at hudson.model.Job.doConfigSubmit(Job.java:831) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.service(Stapler.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:91) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:38) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:30) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 8 years ago | leosoto
    javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor?
  2. 0

    When using the latest trac plugin and hudson 1.233, if I select Trac as the repository browser and save the setting, I get a "NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler" (complete stacktrace at the end of the report). I don't know too much about the hudson plugin architecture, but I suspect that the "TracRepositoryBrowser.stapler" file should be inside ~/.hudson/plugins/trac/WEB-INF/classes/hudson/plugins/trac/. It isn't. Here is the complete tree I have inside ~/.hudson/plugins/trac/: lsoto@spirit:~/.hudson/plugins/trac$ tree . |-- META-INF | |-- MANIFEST.MF | `-- maven | `-- org.jvnet.hudson.plugins | `-- trac | |-- pom.properties | `-- pom.xml |-- WEB-INF | `-- classes | |-- META-INF | | |-- exposed.beans | | `-- services | | `-- hudson.Plugin | |-- hudson | | `-- plugins | | `-- trac | | |-- PluginImpl.class | | |-- TracLinkAction.class | | |-- TracLinkAnnotator$LinkMarkup.class | | |-- TracLinkAnnotator.class | | |-- TracProjectProperty | | | `-- config.jelly | | |-- TracProjectProperty$DescriptorImpl.class | | |-- TracProjectProperty.class | | |-- TracProjectProperty.stapler | | |-- TracRepositoryBrowser | | | `-- config.jelly | | |-- TracRepositoryBrowser$DescriptorImpl.class | | `-- TracRepositoryBrowser.class | `-- index.jelly |-- help-global.html `-- trac.png 13 directories, 19 files Finally, here is the complete stracktrace [show] org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? at org.kohsuke.stapler.Stapler.invoke(Stapler.java:449) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.service(Stapler.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:91) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:38) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:30) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:619) Caused by: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor? at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:426) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:308) at hudson.scm.RepositoryBrowsers.createInstance(RepositoryBrowsers.java:72) at hudson.scm.SubversionSCM$DescriptorImpl.newInstance(SubversionSCM.java:1033) at hudson.scm.SubversionSCM$DescriptorImpl.newInstance(SubversionSCM.java:808) at hudson.scm.SCMS.parseSCM(SCMS.java:37) at hudson.model.AbstractProject.submit(AbstractProject.java:914) at hudson.model.Project.submit(Project.java:150) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:68) at hudson.model.Job.doConfigSubmit(Job.java:831) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:312) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:440) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.service(Stapler.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:91) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:38) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:30) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:85) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:181) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 8 years ago | leosoto
    javax.servlet.ServletException: org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor?
  3. 0

    Upgraded Boot2Docker to 1.3.0 with Docker 1.3.0 now I can't connect my Docker Cloud.

    GitHub | 2 years ago | mtscout6
    javax.servlet.ServletException: javax.ws.rs.ProcessingException: java.net.SocketException: Unexpected end of file from server
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue with creating Admin account in Jenkins

    Stack Overflow | 4 years ago | Kishore Tamire
    javax.servlet.ServletException: Bad version number in .class file
  6. 0

    Jenkins Global Security - Null Pointer Exception while saving settings

    Stack Overflow | 3 years ago | user2611745
    javax.servlet.ServletException: java.lang.NullPointerException

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.servlet.ServletException

      org.kohsuke.stapler.NoStaplerConstructorException: Unable to find hudson/plugins/trac/TracRepositoryBrowser.stapler. Have you put @DataBoundConstructor javadoc tag on a constructor?

      at org.kohsuke.stapler.Stapler.invoke()
    2. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Stapler.invoke(Stapler.java:449)
      2. org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:263)
      3. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      4. org.kohsuke.stapler.Stapler.invoke(Stapler.java:440)
      5. org.kohsuke.stapler.Stapler.invoke(Stapler.java:361)
      6. org.kohsuke.stapler.Stapler.service(Stapler.java:121)
      6 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
      1 frame