java.lang.NullPointerException

Jenkins JIRA | Andres Garcia | 5 months ago
  1. 0

    Builds triggered via Poll SCM end in error i see this page http://stackoverflow.com/questions/7482503/how-to-avoid-nullpointerexception-in-webappclassloader-findresources but i have the jar in /apache-tomcat-7.0.47/webapps/jenkins/WEB-INF/lib This error is solved after restar web server {noformat} ERROR: Build step failed with exception java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1334) at java.lang.ClassLoader.getResources(ClassLoader.java:1185) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at hudson.util.MaskingClassLoader.getResources(MaskingClassLoader.java:89) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:957) at hudson.PluginFirstClassLoader.findResources(PluginFirstClassLoader.java:79) at org.apache.tools.ant.AntClassLoader.findResources(AntClassLoader.java:935) at hudson.PluginFirstClassLoader.findResources(PluginFirstClassLoader.java:87) at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44) at jenkins.ClassLoaderReflectionToolkit._findResources(ClassLoaderReflectionToolkit.java:103) at hudson.PluginManager$UberClassLoader.findResources(PluginManager.java:1171) at java.lang.ClassLoader.getResources(ClassLoader.java:1185) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at org.codehaus.groovy.transform.ASTTransformationVisitor.doAddGlobalTransforms(ASTTransformationVisitor.java:194) at org.codehaus.groovy.transform.ASTTransformationVisitor.addGlobalTransforms(ASTTransformationVisitor.java:187) at org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:150) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:186) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:118) at groovy.lang.GroovyClassLoader.createCompilationUnit(GroovyClassLoader.java:476) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:290) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at groovy.lang.GroovyShell.parse(GroovyShell.java:723) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:680) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:666) at hudson.plugins.groovy.SystemGroovy.perform(SystemGroovy.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Execute system Groovy script' marked build as failure ERROR: Failed to evaluate groovy script. java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1334) at java.lang.ClassLoader.getResources(ClassLoader.java:1185) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at hudson.util.MaskingClassLoader.getResources(MaskingClassLoader.java:89) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at java.lang.ClassLoader.getResources(ClassLoader.java:1181) at org.codehaus.groovy.transform.ASTTransformationVisitor.doAddGlobalTransforms(ASTTransformationVisitor.java:194) at org.codehaus.groovy.transform.ASTTransformationVisitor.addGlobalTransforms(ASTTransformationVisitor.java:187) at org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:150) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:186) at org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:118) at groovy.lang.GroovyClassLoader.createCompilationUnit(GroovyClassLoader.java:476) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:290) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:731) at groovy.lang.GroovyShell.parse(GroovyShell.java:743) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:578) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:276) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Groovy Postbuild' marked build as failure {noformat} Version of Jenkins this bug is occurring {noformat} Jenkins ver. 1.625.3 {noformat} Tomcat {noformat} Tomcat 7.0.47 {noformat}

    Jenkins JIRA | 5 months ago | Andres Garcia
    java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

      No message provided

      at org.apache.catalina.loader.WebappClassLoader.findResources()
    2. Glassfish Core
      WebappClassLoader.findResources
      1. org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:1334)
      1 frame
    3. Java RT
      ClassLoader.getResources
      1. java.lang.ClassLoader.getResources(ClassLoader.java:1185)
      2. java.lang.ClassLoader.getResources(ClassLoader.java:1181)
      2 frames
    4. Hudson
      MaskingClassLoader.getResources
      1. hudson.util.MaskingClassLoader.getResources(MaskingClassLoader.java:89)
      1 frame
    5. Java RT
      ClassLoader.getResources
      1. java.lang.ClassLoader.getResources(ClassLoader.java:1181)
      2. java.lang.ClassLoader.getResources(ClassLoader.java:1181)
      3. java.lang.ClassLoader.getResources(ClassLoader.java:1181)
      4. java.lang.ClassLoader.getResources(ClassLoader.java:1181)
      4 frames
    6. Groovy
      GroovyShell.evaluate
      1. org.codehaus.groovy.transform.ASTTransformationVisitor.doAddGlobalTransforms(ASTTransformationVisitor.java:194)
      2. org.codehaus.groovy.transform.ASTTransformationVisitor.addGlobalTransforms(ASTTransformationVisitor.java:187)
      3. org.codehaus.groovy.transform.ASTTransformationVisitor.addPhaseOperations(ASTTransformationVisitor.java:150)
      4. org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:186)
      5. org.codehaus.groovy.control.CompilationUnit.<init>(CompilationUnit.java:118)
      6. groovy.lang.GroovyClassLoader.createCompilationUnit(GroovyClassLoader.java:476)
      7. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:290)
      8. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:281)
      9. groovy.lang.GroovyShell.parseClass(GroovyShell.java:731)
      10. groovy.lang.GroovyShell.parse(GroovyShell.java:743)
      11. groovy.lang.GroovyShell.evaluate(GroovyShell.java:578)
      12. groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
      13. groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
      13 frames
    7. org.jvnet.hudson
      GroovyPostbuildRecorder.perform
      1. org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:276)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
      4. hudson.model.Build$BuildExecution.post2(Build.java:185)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
      6. hudson.model.Run.execute(Run.java:1766)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:408)
      9 frames