java.lang.NullPointerException

SpringSource Issue Tracker | Miles G | 7 years ago
  1. 0

    Hi, When a jar file does not exist in the archive, but is described in the Bundle-ClassPath, a NullPointerException is thrown. The application is attached. The following steps are performed: osgi> install webbundle:file:d:/root.war Bundle id is 43 osgi> start 43 2009-11-24 22:19:02 com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader start SEVERE: LifecycleException java.lang.NullPointerException at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleClassPathURLExtractor.extractBundleClassPathURLs(BundleClassPathURLExtractor.java:46) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.addBundleClassPathURLs(BundleWebappClassLoader.java:88) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.<init>(BundleWebappClassLoader.java:61) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.createClassLoader(BundleWebappLoader.java:79) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.start(BundleWebappLoader.java:159) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:119) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.osgi.webcontainer.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:25) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:440) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:362) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) 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:597) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) at java.lang.Thread.run(Thread.java:619) 2009-11-24 22:19:02 org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start:LifecycleException: start: : java.lang.NullPointerException at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.start(BundleWebappLoader.java:170) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:119) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.osgi.webcontainer.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:25) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:440) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:362) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) 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:597) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) at java.lang.Thread.run(Thread.java:619) osgi> Could you please provide appropriate message/exception that gives information for the real problem? Thank you and Regards

    SpringSource Issue Tracker | 7 years ago | Miles G
    java.lang.NullPointerException
  2. 0

    Hi, When a jar file does not exist in the archive, but is described in the Bundle-ClassPath, a NullPointerException is thrown. The application is attached. The following steps are performed: osgi> install webbundle:file:d:/root.war Bundle id is 43 osgi> start 43 2009-11-24 22:19:02 com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader start SEVERE: LifecycleException java.lang.NullPointerException at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleClassPathURLExtractor.extractBundleClassPathURLs(BundleClassPathURLExtractor.java:46) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.addBundleClassPathURLs(BundleWebappClassLoader.java:88) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.<init>(BundleWebappClassLoader.java:61) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.createClassLoader(BundleWebappLoader.java:79) at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.start(BundleWebappLoader.java:159) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:119) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.osgi.webcontainer.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:25) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:440) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:362) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) 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:597) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) at java.lang.Thread.run(Thread.java:619) 2009-11-24 22:19:02 org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start:LifecycleException: start: : java.lang.NullPointerException at com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.start(BundleWebappLoader.java:170) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4352) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:119) at com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102) at com.springsource.osgi.webcontainer.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:25) at org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:440) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233) at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:362) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253) 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:597) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224) at java.lang.Thread.run(Thread.java:619) osgi> Could you please provide appropriate message/exception that gives information for the real problem? Thank you and Regards

    SpringSource Issue Tracker | 7 years ago | Miles G
    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 com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleClassPathURLExtractor.extractBundleClassPathURLs()
    2. com.springsource.osgi
      BundleWebappLoader.start
      1. com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleClassPathURLExtractor.extractBundleClassPathURLs(BundleClassPathURLExtractor.java:46)
      2. com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.addBundleClassPathURLs(BundleWebappClassLoader.java:88)
      3. com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappClassLoader.<init>(BundleWebappClassLoader.java:61)
      4. com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.createClassLoader(BundleWebappLoader.java:79)
      5. com.springsource.osgi.webcontainer.tomcat.internal.loading.BundleWebappLoader.start(BundleWebappLoader.java:159)
      5 frames
    3. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.StandardContext.start(StandardContext.java:4352)
      2. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      3. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      4. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
      4 frames
    4. com.springsource.osgi
      WebContainerBundleCustomizer.addingBundle
      1. com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:119)
      2. com.springsource.osgi.webcontainer.internal.StandardWebContainer$StandardWebApplication.start(StandardWebContainer.java:102)
      3. com.springsource.osgi.webcontainer.extender.WebContainerBundleCustomizer.addingBundle(WebContainerBundleCustomizer.java:25)
      3 frames
    5. OSGi
      BundleTracker$Tracked.bundleChanged
      1. org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:440)
      2. org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
      3. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)
      4. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413)
      4 frames
    6. Eclipse OSGi
      BundleContextImpl.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:916)
      1 frame
    7. Eclipse OSGi
      ListenerQueue.dispatchEventSynchronous
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
      2. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)
      2 frames
    8. Eclipse OSGi
      FrameworkCommandProvider._start
      1. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1350)
      2. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1301)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:362)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
      5. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:272)
      6. org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:253)
      6 frames
    9. 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:597)
      4 frames
    10. Eclipse OSGi
      FrameworkConsole.run
      1. org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
      2. org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:303)
      3. org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:288)
      4. org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:224)
      4 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame