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

NullPointerException in WebappClassLoader.findResources

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • _unsorted
    •  Red Hat Enterprise Linux Server release 6.1 x86_64

      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

      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
      

      Version of Jenkins this bug is occurring

      Jenkins ver. 1.625.3
      

      Tomcat

      Tomcat 7.0.47
      

            000panther Paul Weber
            andres123 Andres Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: