java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Andres Garcia,
  • liferay on tomcat don't load a class
    via Stack Overflow by rascio
    ,
  • Startup error fresh from install
    via openbravo by kaladeth
    ,
  • {noformat} 2010-03-16 00:02:39,912 ERROR [pool-3-thread-1046] [JiraRemoteIssueManagerImpl] Failed to login to the Jira Server java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:993) at java.lang.ClassLoader.getResources(ClassLoader.java:1041) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at com.atlassian.jira.rpc.soap.client.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:12) at com.atlassian.bamboo.jira.JiraSoapServiceFactory.newJiraSoapService(JiraSoapServiceFactory.java:26) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.getJiraSoapService(JiraRemoteIssueManagerImpl.java:185) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.refreshLoginToken(JiraRemoteIssueManagerImpl.java:157) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.getJiraIssueDetails(JiraRemoteIssueManagerImpl.java:97) at com.atlassian.bamboo.jira.jiraissues.CachedJiraIssueDetails.getObject(CachedJiraIssueDetails.java:27) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerCache.getJiraIssueDetails(JiraRemoteIssueManagerCache.java:54) at com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl$1.call(JiraIssueManagerImpl.java:53) at com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl$1.call(JiraIssueManagerImpl.java:50) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {noformat} seems to be a result of unclean restart from: http://threebit.net/mail-archive/tomcat-users/msg05293.html
    via by Mark Chaimungkalanont,
  • If you try to shutdown the Tomcat app the following exception is thrown - {code}Jun 16, 2008 2:35:37 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jun 16, 2008 2:35:38 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jun 16, 2008 2:35:39 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Jun 16, 2008 2:35:39 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime Exception in thread "Timer-0" java.lang.NullPointerException at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:257) at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1934) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Exception in thread "QuartzScheduler_QuartzSchedulerThread" java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:973) at java.lang.ClassLoader.getResources(ClassLoader.java:1070) at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1388) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1407) at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1469) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.quartz.core.QuartzSchedulerThread.getLog(QuartzSchedulerThread.java:475) at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:404) Jun 16, 2008 2:35:44 PM org.apache.activemq.broker.BrokerService stop INFO: ActiveMQ Message Broker (bamboo, ID:tui.sydney.atlassian.com-51998-1213590890961-1:0) is shutting down Failed to shut down: java.lang.NullPointerException{code} The activieMQ process remains operational, and Bamboo can't be restarted until the process is killed manually.
    via by Ajay Sridhar [Atlassian],
  • Vendor invoice accounting?
    via openbravo by kchopein
    ,
  • {noformat} 2010-03-16 00:02:39,912 ERROR [pool-3-thread-1046] [JiraRemoteIssueManagerImpl] Failed to login to the Jira Server java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:993) at java.lang.ClassLoader.getResources(ClassLoader.java:1041) at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153) at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129) at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170) at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143) at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159) at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147) at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113) at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160) at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at com.atlassian.jira.rpc.soap.client.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:12) at com.atlassian.bamboo.jira.JiraSoapServiceFactory.newJiraSoapService(JiraSoapServiceFactory.java:26) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.getJiraSoapService(JiraRemoteIssueManagerImpl.java:185) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.refreshLoginToken(JiraRemoteIssueManagerImpl.java:157) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerImpl.getJiraIssueDetails(JiraRemoteIssueManagerImpl.java:97) at com.atlassian.bamboo.jira.jiraissues.CachedJiraIssueDetails.getObject(CachedJiraIssueDetails.java:27) at com.atlassian.bamboo.jira.jiraissues.JiraRemoteIssueManagerCache.getJiraIssueDetails(JiraRemoteIssueManagerCache.java:54) at com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl$1.call(JiraIssueManagerImpl.java:53) at com.atlassian.bamboo.jira.jiraissues.JiraIssueManagerImpl$1.call(JiraIssueManagerImpl.java:50) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {noformat} seems to be a result of unclean restart from: http://threebit.net/mail-archive/tomcat-users/msg05293.html
    via by Mark Chaimungkalanont,
  • If you try to shutdown the Tomcat app the following exception is thrown - {code}Jun 16, 2008 2:35:37 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Jun 16, 2008 2:35:38 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jun 16, 2008 2:35:39 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 Jun 16, 2008 2:35:39 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime Exception in thread "Timer-0" java.lang.NullPointerException at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:257) at com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1934) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Exception in thread "QuartzScheduler_QuartzSchedulerThread" java.lang.NullPointerException at org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:973) at java.lang.ClassLoader.getResources(ClassLoader.java:1070) at org.apache.commons.logging.LogFactory$4.run(LogFactory.java:1388) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.getResources(LogFactory.java:1407) at org.apache.commons.logging.LogFactory.getConfigurationFile(LogFactory.java:1469) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:457) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.quartz.core.QuartzSchedulerThread.getLog(QuartzSchedulerThread.java:475) at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:404) Jun 16, 2008 2:35:44 PM org.apache.activemq.broker.BrokerService stop INFO: ActiveMQ Message Broker (bamboo, ID:tui.sydney.atlassian.com-51998-1213590890961-1:0) is shutting down Failed to shut down: java.lang.NullPointerException{code} The activieMQ process remains operational, and Bamboo can't be restarted until the process is killed manually.
    via by Ajay Sridhar [Atlassian],
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,