java.lang.NullPointerException

Spring JIRA | Hendy Irawan | 9 years ago
  1. 0

    Original report here: http://jira.springframework.org/browse/OSGI-504 I can't make it to work consistently. Sometimes it happens with different bundle. It seems to happen under pax-logging. I'll try to report ops4j about this too. [SpringOsgiExtenderThread-1] TRACE org.springframework.osgi.util.BundleDelegatingClassLoader - Looking for resource META-INF/services/javax.xml.parsers.DocumentBuilderFactory [SpringOsgiExtenderThread-1] DEBUG org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] [Framework Event Dispatcher] INFO org.springframework.bundle.osgi.extender - FrameworkEvent ERROR java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:791) at java.util.LinkedList.removeLast(LinkedList.java:144) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.cleanUp(LogReaderServiceImpl.java:87) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.fireEvent(LogReaderServiceImpl.java:80) at org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.handleEvents(PaxLoggingServiceImpl.java:143) at org.ops4j.pax.logging.internal.PaxLoggerImpl.debug(PaxLoggerImpl.java:89) at org.ops4j.pax.logging.internal.TrackingLogger.debug(TrackingLogger.java:80) at org.apache.commons.logging.internal.JclLogger.debug(JclLogger.java:91) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:162) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1210) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1509) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:355) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297) Another error, different invocation of the exact same application configuration. Intermittent bug it seems, and inconsistent where it happens. [SpringOsgiExtenderThread-1] TRACE org.springframework.osgi.util.BundleDelegatingClassLoader - Found resource META-INF/spring.schemas at initial@reference:file:org.springframework.bundle.spring.context_2.5.4.jar/ [Start Level Event Dispatcher] ERROR org.springframework.osgi.extender.internal.activator.ContextLoaderListener - Cannot create application context for bundle OPS4J Pax Web Extender - Whiteboard (org.ops4j.pax.web.extender.whiteboard) java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:791) at java.util.LinkedList.removeLast(LinkedList.java:144) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.cleanUp(LogReaderServiceImpl.java:87) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.fireEvent(LogReaderServiceImpl.java:80) at org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.handleEvents(PaxLoggingServiceImpl.java:143) at org.ops4j.pax.logging.internal.PaxLoggerImpl.trace(PaxLoggerImpl.java:83) at org.ops4j.pax.logging.internal.TrackingLogger.trace(TrackingLogger.java:75) at org.apache.commons.logging.internal.JclLogger.trace(JclLogger.java:71) at org.springframework.osgi.extender.support.ApplicationContextConfiguration.<init>(ApplicationContextConfiguration.java:91) at org.springframework.osgi.extender.support.DefaultOsgiApplicationContextCreator.createApplicationContext(DefaultOsgiApplicationContextCreator.java:43) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeCreateApplicationContextFor(ContextLoaderListener.java:646) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:166) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1210) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1509) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:355) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297) [Start Level Event Dispatcher] DEBUG org.springframework.osgi.extender.internal.activator.ContextLoaderListener - Processing bundle event [STA I'll try using SLF4J to isolate whether the problem occurs in Pax4J, Spring, Spring-DM, or my app.

    JIRA | 9 years ago | Hendy Irawan
    java.lang.NullPointerException
  2. 0

    I can't make it to work consistently. Sometimes it happens with different bundle. It seems to happen under pax-logging. I'll try to report ops4j about this too. [SpringOsgiExtenderThread-1] TRACE org.springframework.osgi.util.BundleDelegatingClassLoader - Looking for resource META-INF/services/javax.xml.parsers.DocumentBuilderFactory [SpringOsgiExtenderThread-1] DEBUG org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] [Framework Event Dispatcher] INFO org.springframework.bundle.osgi.extender - FrameworkEvent ERROR java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:791) at java.util.LinkedList.removeLast(LinkedList.java:144) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.cleanUp(LogReaderServiceImpl.java:87) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.fireEvent(LogReaderServiceImpl.java:80) at org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.handleEvents(PaxLoggingServiceImpl.java:143) at org.ops4j.pax.logging.internal.PaxLoggerImpl.debug(PaxLoggerImpl.java:89) at org.ops4j.pax.logging.internal.TrackingLogger.debug(TrackingLogger.java:80) at org.apache.commons.logging.internal.JclLogger.debug(JclLogger.java:91) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:162) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1210) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1509) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:355) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

    Spring JIRA | 9 years ago | Hendy Irawan
    java.lang.NullPointerException
  3. 0

    I can't make it to work consistently. Sometimes it happens with different bundle. It seems to happen under pax-logging. I'll try to report ops4j about this too. [SpringOsgiExtenderThread-1] TRACE org.springframework.osgi.util.BundleDelegatingClassLoader - Looking for resource META-INF/services/javax.xml.parsers.DocumentBuilderFactory [SpringOsgiExtenderThread-1] DEBUG org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl] [Framework Event Dispatcher] INFO org.springframework.bundle.osgi.extender - FrameworkEvent ERROR java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:791) at java.util.LinkedList.removeLast(LinkedList.java:144) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.cleanUp(LogReaderServiceImpl.java:87) at org.ops4j.pax.logging.internal.LogReaderServiceImpl.fireEvent(LogReaderServiceImpl.java:80) at org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.handleEvents(PaxLoggingServiceImpl.java:143) at org.ops4j.pax.logging.internal.PaxLoggerImpl.debug(PaxLoggerImpl.java:89) at org.ops4j.pax.logging.internal.TrackingLogger.debug(TrackingLogger.java:80) at org.apache.commons.logging.internal.JclLogger.debug(JclLogger.java:91) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:162) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1210) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558) at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1509) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:355) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

    Spring JIRA | 9 years ago | Hendy Irawan
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

    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 java.util.LinkedList.remove()
    2. Java RT
      LinkedList.removeLast
      1. java.util.LinkedList.remove(LinkedList.java:791)
      2. java.util.LinkedList.removeLast(LinkedList.java:144)
      2 frames
    3. Pax Logging
      JclLogger.debug
      1. org.ops4j.pax.logging.internal.LogReaderServiceImpl.cleanUp(LogReaderServiceImpl.java:87)
      2. org.ops4j.pax.logging.internal.LogReaderServiceImpl.fireEvent(LogReaderServiceImpl.java:80)
      3. org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.handleEvents(PaxLoggingServiceImpl.java:143)
      4. org.ops4j.pax.logging.internal.PaxLoggerImpl.debug(PaxLoggerImpl.java:89)
      5. org.ops4j.pax.logging.internal.TrackingLogger.debug(TrackingLogger.java:80)
      6. org.apache.commons.logging.internal.JclLogger.debug(JclLogger.java:91)
      6 frames
    4. org.springframework.osgi
      ContextLoaderListener$BaseListener.bundleChanged
      1. org.springframework.osgi.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:162)
      1 frame
    5. Eclipse OSGi
      BundleContextImpl.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1210)
      1 frame
    6. Eclipse OSGi
      ListenerQueue.dispatchEventSynchronous
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
      2. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
      2 frames
    7. Eclipse OSGi
      StartLevelManager.dispatchEvent
      1. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1558)
      2. org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1509)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:355)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
      5. org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
      6. org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
      7. org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
      8. org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
      9. org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
      9 frames
    8. Eclipse OSGi
      EventManager$EventThread.run
      1. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
      2. org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)
      2 frames