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.

  • 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.
    via by Hendy Irawan,
  • 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)
    via by Hendy Irawan,
  • 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)
    via by Hendy Irawan,
  • 2005.11.25 15:41:05 [org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:203) ] Internal server error java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:617) at java.util.LinkedList$ListItr.remove(LinkedList.java:585) at org.jivesoftware.messenger.muc.HistoryStrategy.addMessage(HistoryStrategy.java:175) at org.jivesoftware.messenger.muc.MUCRoomHistory.addMessage(MUCRoomHistory.java:105) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.send(MUCRoomImpl.java:767) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.sendPublicMessage(MUCRoomImpl.java:750) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:214) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:120) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:200) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:184) at org.jivesoftware.messenger.MessageRouter.route(MessageRouter.java:80) at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:69) at org.jivesoftware.messenger.net.SocketReader.processMessage(SocketReader.java:416) at org.jivesoftware.messenger.net.ClientSocketReader.processMessage(ClientSocketReader.java:63) at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:190) at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115) at java.lang.Thread.run(Thread.java:595) 2005.11.25 15:41:55 [org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:203) ] Internal server error java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:648) at java.util.LinkedList.access$200(LinkedList.java:74) at java.util.LinkedList$ListItr.remove(LinkedList.java:588) at org.jivesoftware.messenger.muc.HistoryStrategy.addMessage(HistoryStrategy.java:175) at org.jivesoftware.messenger.muc.MUCRoomHistory.addMessage(MUCRoomHistory.java:105) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.send(MUCRoomImpl.java:767) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.sendPublicMessage(MUCRoomImpl.java:750) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:214) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:120) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:200) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:184) at org.jivesoftware.messenger.MessageRouter.route(MessageRouter.java:80) at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:69) at org.jivesoftware.messenger.net.SocketReader.processMessage(SocketReader.java:416) at org.jivesoftware.messenger.net.ClientSocketReader.processMessage(ClientSocketReader.java:63) at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:190) at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115) at java.lang.Thread.run(Thread.java:595)
    via by Gaston Dombiak,
  • Sudden Nullpointerexception in LRUCache
    via by silentcrooner,
  • 2005.11.25 15:41:05 [org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:203) ] Internal server error java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:617) at java.util.LinkedList$ListItr.remove(LinkedList.java:585) at org.jivesoftware.messenger.muc.HistoryStrategy.addMessage(HistoryStrategy.java:175) at org.jivesoftware.messenger.muc.MUCRoomHistory.addMessage(MUCRoomHistory.java:105) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.send(MUCRoomImpl.java:767) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.sendPublicMessage(MUCRoomImpl.java:750) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:214) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:120) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:200) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:184) at org.jivesoftware.messenger.MessageRouter.route(MessageRouter.java:80) at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:69) at org.jivesoftware.messenger.net.SocketReader.processMessage(SocketReader.java:416) at org.jivesoftware.messenger.net.ClientSocketReader.processMessage(ClientSocketReader.java:63) at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:190) at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115) at java.lang.Thread.run(Thread.java:595) 2005.11.25 15:41:55 [org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:203) ] Internal server error java.lang.NullPointerException at java.util.LinkedList.remove(LinkedList.java:648) at java.util.LinkedList.access$200(LinkedList.java:74) at java.util.LinkedList$ListItr.remove(LinkedList.java:588) at org.jivesoftware.messenger.muc.HistoryStrategy.addMessage(HistoryStrategy.java:175) at org.jivesoftware.messenger.muc.MUCRoomHistory.addMessage(MUCRoomHistory.java:105) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.send(MUCRoomImpl.java:767) at org.jivesoftware.messenger.muc.spi.MUCRoomImpl.sendPublicMessage(MUCRoomImpl.java:750) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:214) at org.jivesoftware.messenger.muc.spi.MUCUserImpl.process(MUCUserImpl.java:120) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:200) at org.jivesoftware.messenger.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:184) at org.jivesoftware.messenger.MessageRouter.route(MessageRouter.java:80) at org.jivesoftware.messenger.PacketRouter.route(PacketRouter.java:69) at org.jivesoftware.messenger.net.SocketReader.processMessage(SocketReader.java:416) at org.jivesoftware.messenger.net.ClientSocketReader.processMessage(ClientSocketReader.java:63) at org.jivesoftware.messenger.net.SocketReader.readStream(SocketReader.java:190) at org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:115) at java.lang.Thread.run(Thread.java:595)
    via by Gaston Dombiak,
    • 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)
    No Bugmate found.