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

java.lang.NullPointerException at hudson.model.Project.createTransientActions(Project.java:212)

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I tried to create a job via sending a POST request to Jenkins.

      But it did not work, an exception is thrown.

      <html><head><title>Error 500</title></head>
      <body bgcolor=#fff><h1>Status Code: 500</h1>Exception: javax.servlet.ServletException: java.lang.NullPointerException<br>Stacktrace: <pre>
      
      javax.servlet.ServletException: javax.servlet.ServletException: java.lang.NullPointerException
      	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:46)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: javax.servlet.ServletException: java.lang.NullPointerException
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:164)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:36)
      	at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103)
      	at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:32)
      	... 29 more
      Caused by: java.lang.NullPointerException
      	at hudson.model.Project.createTransientActions(Project.java:212)
      	at hudson.model.AbstractProject.updateTransientActions(AbstractProject.java:682)
      	at hudson.model.AbstractProject.onLoad(AbstractProject.java:301)
      	at hudson.model.Project.onLoad(Project.java:88)
      	at hudson.model.Items.load(Items.java:221)
      	at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:235)
      	at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:167)
      	at jenkins.model.Jenkins.doCreateItem(Jenkins.java:2821)
      	at sun.reflect.GeneratedMethodAccessor992.invoke(Unknown Source)
      	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:288)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573)
      	... 39 more
      

        Attachments

          Activity

          Hide
          marki_merc markiewb_merc added a comment -

          I looked into the job xml and found something interesting.

          Without <publishers>...</publishers> -> Exception
          With <publishers/> -> No exception

          Show
          marki_merc markiewb_merc added a comment - I looked into the job xml and found something interesting. Without <publishers>...</publishers> -> Exception With <publishers/> -> No exception
          Hide
          fcamblor Frédéric Camblor added a comment -

          Doesn't seem to have anything to do with scm sync config plugin (it appears in stacktrace, but only because it declares a plugin servlet filter which is called on every http request ... it doesn't seem NPE is related to scm sync config plugin)

          => unassigned issue to myself and removed scm-sync-config component

          Show
          fcamblor Frédéric Camblor added a comment - Doesn't seem to have anything to do with scm sync config plugin (it appears in stacktrace, but only because it declares a plugin servlet filter which is called on every http request ... it doesn't seem NPE is related to scm sync config plugin) => unassigned issue to myself and removed scm-sync-config component
          Hide
          evernat evernat added a comment -

          Is it reproduced with a recent Jenkins version?

          Show
          evernat evernat added a comment - Is it reproduced with a recent Jenkins version?
          Hide
          danielbeck Daniel Beck added a comment -

          No response to comment asking for updated information in ten months, resolving as Cannot Reproduce.

          In this issue, the exact job config.xml posted would be essential for further investigation, please don't reopen or file a new issue without providing it.

          Also, it looks like the XML was incomplete e.g. by not including a <publishers/> element. Make sure not to submit broken or partial XML files before filing a new issue or reopening.

          Show
          danielbeck Daniel Beck added a comment - No response to comment asking for updated information in ten months, resolving as Cannot Reproduce. In this issue, the exact job config.xml posted would be essential for further investigation, please don't reopen or file a new issue without providing it. Also, it looks like the XML was incomplete e.g. by not including a <publishers/> element. Make sure not to submit broken or partial XML files before filing a new issue or reopening.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marki_merc markiewb_merc
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: