java.lang.NullPointerException

Jenkins JIRA | redsolo | 9 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

    If the slave is not on line and the user tries to access the workspace through the gui a NPE is generated. Steps to reproduce 1. Create a slave 2. Start slave through web start 3. Create job that is tied to the slave 4. Build job to generate the workspace 5. Verify that the workspace can be accessed 6. Kill the web start app 7. Try to access the workspace and the NPE is shown Exception: java.lang.NullPointerException at hudson.model.AbstractProject.doWs(AbstractProject.java:927) 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:69) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) 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.security.HudsonFilter.doFilter(HudsonFilter.java:88) 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(Thread.java:619)

    Jenkins JIRA | 9 years ago | redsolo
    java.lang.NullPointerException
  2. 0

    If the slave is not on line and the user tries to access the workspace through the gui a NPE is generated. Steps to reproduce 1. Create a slave 2. Start slave through web start 3. Create job that is tied to the slave 4. Build job to generate the workspace 5. Verify that the workspace can be accessed 6. Kill the web start app 7. Try to access the workspace and the NPE is shown Exception: java.lang.NullPointerException at hudson.model.AbstractProject.doWs(AbstractProject.java:927) 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:69) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:416) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:352) at org.kohsuke.stapler.Stapler.service(Stapler.java:112) 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.security.HudsonFilter.doFilter(HudsonFilter.java:88) 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(Thread.java:619)

    Jenkins JIRA | 9 years ago | redsolo
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.model.AbstractProject.doWs()
    2. Hudson
      AbstractProject.doWs
      1. hudson.model.AbstractProject.doWs(AbstractProject.java:927)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103)
      2. org.kohsuke.stapler.Function.bindAndinvoke(Function.java:57)
      3. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:69)
      4. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      5. org.kohsuke.stapler.Stapler.invoke(Stapler.java:416)
      6. org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:248)
      7. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      8. org.kohsuke.stapler.Stapler.invoke(Stapler.java:416)
      9. org.kohsuke.stapler.Stapler.invoke(Stapler.java:352)
      10. org.kohsuke.stapler.Stapler.service(Stapler.java:112)
      10 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      1 frame
    6. 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
    7. Hudson
      HudsonFilter.doFilter
      1. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88)
      1 frame
    8. winstone
      RequestHandlerThread.run
      1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      5 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame