Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1315

OSGiIT NPE parsing OsgiSecurityProvider.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.14
    • Fix Version/s: 0.15
    • Component/s: it
    • Labels:
      None

      Description

      I see some NPE running the osgi integration tests [0]:
      General problem with descriptor entry '/OSGI-INF/org.apache.jackrabbit.oak.osgi.OsgiSecurityProvider.xml'

      This is visible in the travis build logs too, but they don't appear to fail the build [1].

      [0]

      [main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - running test class org.apache.jackrabbit.oak.osgi.OSGiIT
      java.lang.NullPointerException
      	at org.apache.felix.scr.impl.metadata.XmlHandler.startElement(XmlHandler.java:237)
      	at org.apache.felix.scr.impl.parser.KXml2SAXParser.parseXML(KXml2SAXParser.java:73)
      	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:227)
      	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
      	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
      	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
      	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
      	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3879)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:1850)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
      	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
      	at java.lang.Thread.run(Thread.java:744)
      ERROR: org.apache.jackrabbit.oak-core (30): General problem with descriptor entry '/OSGI-INF/org.apache.jackrabbit.oak.osgi.OsgiSecurityProvider.xml'
      org.apache.felix.scr.impl.parser.ParseException: Exception during parsing
      	at org.apache.felix.scr.impl.metadata.XmlHandler.startElement(XmlHandler.java:333)
      	at org.apache.felix.scr.impl.parser.KXml2SAXParser.parseXML(KXml2SAXParser.java:73)
      	at org.apache.felix.scr.impl.BundleComponentActivator.loadDescriptor(BundleComponentActivator.java:227)
      	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:147)
      	at org.apache.felix.scr.impl.BundleComponentActivator.<init>(BundleComponentActivator.java:111)
      	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:285)
      	at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:203)
      	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
      	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3879)
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:1850)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
      	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
      	at java.lang.Thread.run(Thread.java:744)
      

      [1] https://travis-ci.org/apache/jackrabbit-oak/builds/16653173#L9745

        Attachments

          Activity

            People

            • Assignee:
              stillalex Alex Deparvu
              Reporter:
              stillalex Alex Deparvu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: