java.lang.NullPointerException

Jenkins JIRA | clandestino_bgd | 7 years ago
  1. 0

    Hi, I followed installation procedure from wiki: 1. in /etc/default/tomcat added line: CATALINA_OPTS="-DHUDSON_HOME=/home/hudson/ -Xmx1024m" 2. Placed hudson.war in /var/lib/tomcat/webapps and assigned permissions to tomcat:tomcat 3. created dir /home/hudson and assigned permissions to tomcat:tomcat 4. updated /var/lib/tomcat/conf/tomcat-users.xml by adding lines: <role rolename="admin"/> <user username="hudson-admin" password="secret" roles="admin"/> 5. updated /var/lib/tomcat/conf/catalina.policy by adding these lines: grant codeBase "file:/var/lib/tomcat/webapps/hudson/-" { permission java.security.AllPermission; }; grant codeBase "file:/home/hudson/-" { permission java.security.AllPermission; }; The latest version (1.346) of hudson crashes with: INFO: Server startup in 47470 ms 17-Feb-2010 16:06:48 org.apache.commons.jelly.expression.jexl.JexlExpression evaluate WARNING: Caught exception evaluating: h.getCrumbRequestField(). Reason: java.lang.NullPointerException java.lang.NullPointerException at hudson.Functions.getCrumbRequestField(Functions.java:1144) 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:585) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69) at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:37) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:27) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:43) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:83) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:508) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) 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:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) 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.HudsonFilter.doFilter(HudsonFilter.java:162) 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:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 7 years ago | clandestino_bgd
    java.lang.NullPointerException
  2. 0

    Hi, I followed installation procedure from wiki: 1. in /etc/default/tomcat added line: CATALINA_OPTS="-DHUDSON_HOME=/home/hudson/ -Xmx1024m" 2. Placed hudson.war in /var/lib/tomcat/webapps and assigned permissions to tomcat:tomcat 3. created dir /home/hudson and assigned permissions to tomcat:tomcat 4. updated /var/lib/tomcat/conf/tomcat-users.xml by adding lines: <role rolename="admin"/> <user username="hudson-admin" password="secret" roles="admin"/> 5. updated /var/lib/tomcat/conf/catalina.policy by adding these lines: grant codeBase "file:/var/lib/tomcat/webapps/hudson/-" { permission java.security.AllPermission; }; grant codeBase "file:/home/hudson/-" { permission java.security.AllPermission; }; The latest version (1.346) of hudson crashes with: INFO: Server startup in 47470 ms 17-Feb-2010 16:06:48 org.apache.commons.jelly.expression.jexl.JexlExpression evaluate WARNING: Caught exception evaluating: h.getCrumbRequestField(). Reason: java.lang.NullPointerException java.lang.NullPointerException at hudson.Functions.getCrumbRequestField(Functions.java:1144) 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:585) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104) at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83) at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57) at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51) at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80) at org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69) at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:37) at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:27) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:43) at org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:83) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:508) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:435) at org.kohsuke.stapler.Stapler.service(Stapler.java:123) 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:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) 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.HudsonFilter.doFilter(HudsonFilter.java:162) 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:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)

    Jenkins JIRA | 7 years ago | clandestino_bgd
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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. java.lang.NullPointerException

      No message provided

      at hudson.Functions.getCrumbRequestField()
    2. Hudson
      Functions.getCrumbRequestField
      1. hudson.Functions.getCrumbRequestField(Functions.java:1144)
      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:585)
      4 frames
    4. Commons JEXL
      ExpressionImpl.evaluate
      1. org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
      2. org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
      3. org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      4. org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
      5. org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
      6. org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
      6 frames
    5. commons-jelly
      TagScript.run
      1. org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:69)
      2. org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
      3. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      4. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      5. org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
      6. org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
      7. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      8. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      9. org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
      10. org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
      11. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      12. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      13. org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
      14. org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
      15. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      16. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      17. org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
      18. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263)
      19. org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81)
      20. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263)
      21. org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      22. org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
      23. org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
      24. org.apache.commons.jelly.impl.TagScript.run(TagScript.java:263)
      24 frames
    6. Stapler Jelly
      JellyFacet.handleIndexRequest
      1. org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:37)
      2. org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:27)
      3. org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:43)
      4. org.kohsuke.stapler.jelly.JellyFacet.handleIndexRequest(JellyFacet.java:83)
      4 frames
    7. Stapler
      Stapler.service
      1. org.kohsuke.stapler.Stapler.invoke(Stapler.java:508)
      2. org.kohsuke.stapler.Stapler.invoke(Stapler.java:435)
      3. org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      3 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    9. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    10. Hudson
      PluginServletFilter.doFilter
      1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      2 frames
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    12. Hudson
      CrumbFilter.doFilter
      1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    14. Hudson
      HudsonFilter.doFilter
      1. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:162)
      1 frame
    15. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      10 frames
    16. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      3 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame