ops4j / org.ops4j.pax.exam2

Pax Exam is a testing framework for OSGi
https://ops4j1.jira.com/wiki/spaces/PAXEXAM4/
Apache License 2.0
84 stars 100 forks source link

NPE: Problem creating secured service proxy [PAXEXAM-700] #801

Open ops4j-issues opened 9 years ago

ops4j-issues commented 9 years ago

Oliver Lietz created PAXEXAM-700

repeatable NPEs when running Sling Launchpad Karaf ITs:

[org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer] : Shutting down the test container (Pax Runner)
2015-04-03 11:08:19,982 | ERROR | BundleWatcher: 1 | BundleWatcher                    | 47 - org.ops4j.pax.swissbox.extender - 1.8.0 | Exception in executor thread
java.lang.NullPointerException
    at org.ops4j.pax.exam.raw.extender.intern.Probe.register(Probe.java:42)[52:org.ops4j.pax.exam.extender.service:4.4.0]
    at org.ops4j.pax.exam.raw.extender.intern.TestBundleObserver.addingEntries(TestBundleObserver.java:72)[52:org.ops4j.pax.exam.extender.service:4.4.0]
    at org.ops4j.pax.swissbox.extender.BundleWatcher$3.run(BundleWatcher.java:226)[47:org.ops4j.pax.swissbox.extender:1.8.0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_40]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_40]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_40]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_40]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
2015-04-03 11:08:20,041 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.kar.command
2015-04-03 11:08:20,058 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.ssh
2015-04-03 11:08:20,077 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.region.command
2015-04-03 11:08:20,087 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.http.command
2015-04-03 11:08:20,091 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.features.obr
2015-04-03 11:08:20,093 | INFO  | FelixShutdown    | BlueprintExtender                | 15 - org.apache.aries.blueprint.core - 1.4.2 | Destroying BlueprintContainer for bundle org.apache.karaf.obr.command
2015-04-03 11:08:20,103 | WARN  | ce Proxy Creator | GuardProxyCatalog                | 5 - org.apache.karaf.service.guard - 3.0.3 | Problem creating secured service proxy
java.lang.NullPointerException
    at org.apache.karaf.service.guard.impl.GuardProxyCatalog$1.run(GuardProxyCatalog.java:251)[5:org.apache.karaf.service.guard:3.0.3]
    at org.apache.karaf.service.guard.impl.GuardProxyCatalog$ServiceProxyCreatorCustomizer$1.run(GuardProxyCatalog.java:566)[5:org.apache.karaf.service.guard:3.0.3]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]

Affects: 4.4.0 Votes: 0, Watches: 2


Referenced issues

relates to:

ops4j-issues commented 9 years ago

Harald Wellmann commented

Unclear. Same stacktrace as PAXEXAM-699 , so what's the point?

If you refer to the exception thrown by org.apache.karaf.service.guard.impl.GuardProxyCatalog, please raise an issue with Karaf.

ops4j-issues commented 9 years ago

Oliver Lietz commented

I haven't noticed this NPE in plain Karaf and it always shows up close to the one in PAXEXAM-699 - so they might be related :question:.