[ https://issues.apache.org/jira/browse/SLING-12430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joerg Hoh updated SLING-12430: ------------------------------ Description: {noformat} [FelixLogListener] org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker bundle org.apache.sling.servlets.resolver:2.11.2 (360)[org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker(1313)] : The activate method has thrown an exception (java.lang.NullPointerException) java.lang.NullPointerException: null at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker$1.invoke(BundledScriptTracker.java:354) [org.apache.sling.servlets.resolver:2.11.2] at com.sun.proxy.$Proxy381.getBundle(Unknown Source) at org.apache.sling.servlets.resolver.internal.resource.ServletMounter.createServlet(ServletMounter.java:230) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.resource.ServletMounter.bindServlet(ServletMounter.java:175) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.register(BundledScriptTracker.java:425) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.lambda$addingBundle$9(BundledScriptTracker.java:314) [org.apache.sling.servlets.resolver:2.11.2] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1620) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.addingBundle(BundledScriptTracker.java:321) [org.apache.sling.servlets.resolver:2.11.2] [...] {noformat} This seems like a race condition because the BundleContext is null here. was: {noformat} [FelixLogListener] org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker bundle org.apache.sling.servlets.resolver:2.11.2 (360)[org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker(1313)] : The activate method has thrown an exception (java.lang.NullPointerException) java.lang.NullPointerException: null at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker$1.invoke(BundledScriptTracker.java:354) [org.apache.sling.servlets.resolver:2.11.2] at com.sun.proxy.$Proxy381.getBundle(Unknown Source) at org.apache.sling.servlets.resolver.internal.resource.ServletMounter.createServlet(ServletMounter.java:230) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.resource.ServletMounter.bindServlet(ServletMounter.java:175) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.register(BundledScriptTracker.java:425) [org.apache.sling.servlets.resolver:2.11.2] at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.lambda$addingBundle$9(BundledScriptTracker.java:314) [org.apache.sling.servlets.resolver:2.11.2] at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1620) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.addingBundle(BundledScriptTracker.java:321) [org.apache.sling.servlets.resolver:2.11.2] [...] {noformat} > BundledScriptTracker: NPE when registering servlet > -------------------------------------------------- > > Key: SLING-12430 > URL: https://issues.apache.org/jira/browse/SLING-12430 > Project: Sling > Issue Type: Improvement > Components: Scripting > Affects Versions: Servlets Resolver 2.11.2 > Reporter: Joerg Hoh > Priority: Major > > {noformat} > [FelixLogListener] > org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker > bundle org.apache.sling.servlets.resolver:2.11.2 > (360)[org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker(1313)] > : The activate method has thrown an exception > (java.lang.NullPointerException) > java.lang.NullPointerException: null > at > org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker$1.invoke(BundledScriptTracker.java:354) > [org.apache.sling.servlets.resolver:2.11.2] > at com.sun.proxy.$Proxy381.getBundle(Unknown Source) > at > org.apache.sling.servlets.resolver.internal.resource.ServletMounter.createServlet(ServletMounter.java:230) > [org.apache.sling.servlets.resolver:2.11.2] > at > org.apache.sling.servlets.resolver.internal.resource.ServletMounter.bindServlet(ServletMounter.java:175) > [org.apache.sling.servlets.resolver:2.11.2] > at > org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.register(BundledScriptTracker.java:425) > [org.apache.sling.servlets.resolver:2.11.2] > at > org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.lambda$addingBundle$9(BundledScriptTracker.java:314) > [org.apache.sling.servlets.resolver:2.11.2] > at > java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) > at > java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1620) > at > java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) > at > java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) > at > java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) > at > java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > at > java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) > at > org.apache.sling.servlets.resolver.internal.bundle.BundledScriptTracker.addingBundle(BundledScriptTracker.java:321) > [org.apache.sling.servlets.resolver:2.11.2] > [...] > {noformat} > This seems like a race condition because the BundleContext is null here. -- This message was sent by Atlassian Jira (v8.20.10#820010)