hudson.util.HudsonFailedToLoad: java.lang.NullPointerException

Java.net JIRA | kazssym | 2 years ago
  1. 0

    Today I updated my installation of GlassFish 4.0 to 4.1 with the Update Tool. After that Jenkins (I redeployed the latest version 1.583) has not been starting at all. The GlassFish server.log contains the following error: {quote} [2014-10-08T15:44:03.852+0900] [glassfish 4.1] [SEVERE] [] [hudson.util.BootFailure] [tid: _ThreadID=223 _ThreadName=Jenkins initialization thread] [timeMillis: 1412750643852] [levelValue: 1000] [[ Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.lang.NullPointerException at hudson.WebAppMain$3.run(WebAppMain.java:234) Caused by: java.lang.NullPointerException at org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJars(WebappClassLoader.java:2976) at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2846) at org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2736) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1194) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1750) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getDeclaredMethods(Class.java:1855) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:102) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:72) at org.jenkinsci.bytecode.TransformationSpec.loadRule(TransformationSpec.java:63) at org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:40) at org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:24) at hudson.PluginManager.<init>(PluginManager.java:190) at hudson.LocalPluginManager.<init>(LocalPluginManager.java:47) at jenkins.model.Jenkins.<init>(Jenkins.java:787) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.model.Hudson.<init>(Hudson.java:78) at hudson.WebAppMain$3.run(WebAppMain.java:222) ]] {quote} It could be an indication of a potential bug in Jenkins but the NPE happens in org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJa rs and it has not been a problem with GlassFish 4.0, it may be possibly a regression bug in GlassFish 4.1.

    Java.net JIRA | 2 years ago | kazssym
    hudson.util.HudsonFailedToLoad: java.lang.NullPointerException
  2. 0

    Today I updated my installation of GlassFish 4.0 to 4.1 with the Update Tool. After that Jenkins (I redeployed the latest version 1.583) has not been starting at all. The GlassFish server.log contains the following error: {quote} [2014-10-08T15:44:03.852+0900] [glassfish 4.1] [SEVERE] [] [hudson.util.BootFailure] [tid: _ThreadID=223 _ThreadName=Jenkins initialization thread] [timeMillis: 1412750643852] [levelValue: 1000] [[ Failed to initialize Jenkins hudson.util.HudsonFailedToLoad: java.lang.NullPointerException at hudson.WebAppMain$3.run(WebAppMain.java:234) Caused by: java.lang.NullPointerException at org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJars(WebappClassLoader.java:2976) at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2846) at org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2736) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1194) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1750) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getDeclaredMethods(Class.java:1855) at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:102) at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:72) at org.jenkinsci.bytecode.TransformationSpec.loadRule(TransformationSpec.java:63) at org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:40) at org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:24) at hudson.PluginManager.<init>(PluginManager.java:190) at hudson.LocalPluginManager.<init>(LocalPluginManager.java:47) at jenkins.model.Jenkins.<init>(Jenkins.java:787) at hudson.model.Hudson.<init>(Hudson.java:82) at hudson.model.Hudson.<init>(Hudson.java:78) at hudson.WebAppMain$3.run(WebAppMain.java:222) ]] {quote} It could be an indication of a potential bug in Jenkins but the NPE happens in org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJa rs and it has not been a problem with GlassFish 4.0, it may be possibly a regression bug in GlassFish 4.1.

    Java.net JIRA | 2 years ago | kazssym
    hudson.util.HudsonFailedToLoad: 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 org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJars()
    2. Web Container Common Utilities
      WebappClassLoader.loadClass
      1. org.glassfish.web.loader.WebappClassLoader.findResourceInternalFromJars(WebappClassLoader.java:2976)
      2. org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2846)
      3. org.glassfish.web.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2736)
      4. org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1194)
      5. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1750)
      6. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
      6 frames
    3. Java RT
      Class.getDeclaredMethods
      1. java.lang.Class.getDeclaredMethods0(Native Method)
      2. java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
      3. java.lang.Class.getDeclaredMethods(Class.java:1855)
      3 frames
    4. annotation-indexer
      Index$2$1.hasNext
      1. org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:102)
      2. org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:72)
      2 frames
    5. org.jenkinsci.bytecode
      Transformer.loadRules
      1. org.jenkinsci.bytecode.TransformationSpec.loadRule(TransformationSpec.java:63)
      2. org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:40)
      3. org.jenkinsci.bytecode.Transformer.loadRules(Transformer.java:24)
      3 frames
    6. Hudson
      LocalPluginManager.<init>
      1. hudson.PluginManager.<init>(PluginManager.java:190)
      2. hudson.LocalPluginManager.<init>(LocalPluginManager.java:47)
      2 frames
    7. jenkins.model
      Jenkins.<init>
      1. jenkins.model.Jenkins.<init>(Jenkins.java:787)
      1 frame
    8. Hudson
      WebAppMain$3.run
      1. hudson.model.Hudson.<init>(Hudson.java:82)
      2. hudson.model.Hudson.<init>(Hudson.java:78)
      3. hudson.WebAppMain$3.run(WebAppMain.java:222)
      3 frames