Uploaded image for project: 'Spring OSGi'
  1. Spring OSGi
  2. OSGI-504

java.lang.NullPointerException on java.util.LinkedList.remove

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1 M2
    • Fix Version/s: 1.1 RC1
    • Component/s: EXTENDER
    • Labels:
      None
    • Environment:
      Spring 2.5.4. (not A). Spring-DM 1.1 M2. Pax-Logging snapshot

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              costin Costin Leau
              Reporter:
              ceefour Hendy Irawan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: