java.lang.NullPointerException: null

Apache's JIRA Issue Tracker | Helge-Frank Zimpel | 1 year ago
  1. 0

    See https://issues.apache.org/jira/browse/SLING-4425. I've tried to remove {{org.apache.sling.fragment.xml}} and replace it with {{org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/2.4.0}} using {{Sling Launchpad 8}}. This results into incompatibilities after restarting Sling: Reported exception: ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:88) at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302) at org.apache.sling.commons.log.logback.internal.Activator.isSlf4jInitialized(Activator.java:108) at org.apache.sling.commons.log.logback.internal.Activator.start(Activator.java:54) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) at org.apache.felix.framework.Felix.activateBundle(Felix.java:2220) at org.apache.felix.framework.Felix.startBundle(Felix.java:2138) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1365) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:115) at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:81) ... 19 more

    Apache's JIRA Issue Tracker | 1 year ago | Helge-Frank Zimpel
    java.lang.NullPointerException: null
  2. 0

    See https://issues.apache.org/jira/browse/SLING-4425. I've tried to remove {{org.apache.sling.fragment.xml}} and replace it with {{org.apache.servicemix.specs/org.apache.servicemix.specs.jaxp-api-1.4/2.4.0}} using {{Sling Launchpad 8}}. This results into incompatibilities after restarting Sling: Reported exception: ch.qos.logback.core.joran.spi.JoranException: Parser configuration error occurred at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:88) at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:59) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:134) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302) at org.apache.sling.commons.log.logback.internal.Activator.isSlf4jInitialized(Activator.java:108) at org.apache.sling.commons.log.logback.internal.Activator.start(Activator.java:54) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697) at org.apache.felix.framework.Felix.activateBundle(Felix.java:2220) at org.apache.felix.framework.Felix.startBundle(Felix.java:2138) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1365) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:115) at ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:81) ... 19 more

    Apache's JIRA Issue Tracker | 1 year ago | Helge-Frank Zimpel
    java.lang.NullPointerException: null
  3. 0

    vdr-binding throws exceptions

    GitHub | 3 years ago | openhab-bot
    java.lang.NullPointerException: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    vdr-binding throws exceptions

    GitHub | 2 years ago | udo1toni
    java.lang.NullPointerException: null
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

    null

    at java.util.Hashtable.put()
  2. Java RT
    Hashtable.put
    1. java.util.Hashtable.put(Hashtable.java:542)
    1 frame
  3. org.apache.sling
    ScriptEngineManagerFactory.bindScriptEngineFactory
    1. org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.postEvent(ScriptEngineManagerFactory.java:305)
    2. org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.bindScriptEngineFactory(ScriptEngineManagerFactory.java:263)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. Apache Felix Declarative Services
    BundleComponentActivator$ListenerInfo.serviceChanged
    1. org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
    2. org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
    3. org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
    4. org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
    5. org.apache.felix.scr.impl.helper.BindMethod.invoke(BindMethod.java:41)
    6. org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1660)
    7. org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1636)
    8. org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:370)
    9. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:319)
    10. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:295)
    11. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
    12. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
    13. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
    14. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
    15. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
    16. org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
    16 frames
  6. Apache Felix Framework
    BundleContextImpl.registerService
    1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:987)
    2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
    3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
    4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4560)
    5. org.apache.felix.framework.Felix.registerService(Felix.java:3542)
    6. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
    6 frames
  7. Apache Felix Declarative Services
    BundleComponentActivator$ListenerInfo.serviceChanged
    1. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
    2. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
    3. org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
    4. org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
    5. org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
    6. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:330)
    7. org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:295)
    8. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
    9. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
    10. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
    11. org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
    12. org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
    13. org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
    13 frames
  8. Apache Felix Framework
    BundleContextImpl.registerService
    1. org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:987)
    2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
    3. org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
    4. org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4560)
    5. org.apache.felix.framework.Felix.registerService(Felix.java:3542)
    6. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
    6 frames
  9. Apache Felix Declarative Services
    Activator$ScrExtension.start
    1. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
    2. org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
    3. org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
    4. org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
    5. org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
    6. org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:399)
    7. org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:676)
    8. org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:339)
    9. org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:360)
    10. org.apache.felix.scr.impl.Activator.access$000(Activator.java:53)
    11. org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:260)
    11 frames
  10. Apache Felix Bundle Repository
    AbstractExtender.modifiedBundle
    1. org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)
    2. org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)
    2 frames
  11. OSGi
    BundleTracker$Tracked.bundleChanged
    1. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)
    2. org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)
    3. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)
    4. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)
    4 frames
  12. Apache Felix Framework
    BundleImpl.start
    1. org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
    2. org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
    3. org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
    4. org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4544)
    5. org.apache.felix.framework.Felix.startBundle(Felix.java:2166)
    6. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
    7. org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
    7 frames
  13. Apache Felix Web Management Console
    BaseUpdateInstallHelper.run
    1. org.apache.felix.webconsole.internal.core.InstallHelper.doRun(InstallHelper.java:67)
    2. org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.doRun(BaseUpdateInstallHelper.java:93)
    3. org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.run(BaseUpdateInstallHelper.java:123)
    3 frames
  14. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame