git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Updated] (ARIES-1483) NullPointerException in Blueprint with karaf 4.0.3 and Hibernate


     [ https://issues.apache.org/jira/browse/ARIES-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Grzybek updated ARIES-1483:
------------------------------------
    Component/s: Blueprint

> NullPointerException in Blueprint with karaf 4.0.3 and Hibernate
> ----------------------------------------------------------------
>
>                 Key: ARIES-1483
>                 URL: https://issues.apache.org/jira/browse/ARIES-1483
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>            Reporter: Christian Niehues
>            Priority: Minor
>
> I get a NullPointerException just right after the restart of my karaf 4.0.3 after installing hibernate with jpa and some relatated features:
> {quote}karaf@root()> ERROR: Bundle org.apache.aries.blueprint.core [13] EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
> java.lang.NullPointerException
> 	at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:126)
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> 	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> 	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
> 	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991)
> 	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839)
> 	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546)
> 	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557)
> 	at org.apache.felix.framework.Felix.registerService(Felix.java:3549)
> 	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:459)
> 	at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193)
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:710)
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:385)
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:270)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
> 	at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745){quote}
> Here is how to reproduce it. I am really new to karaf and aries so these are some commands I collected from examples/tutorials for JPA with karaf:
> - start a clean initial karaf 4.0.3
> - feature:repo-add pax-jdbc 0.7.0
> - feature:install hibernate jpa
> - feature:install jdbc pax-jdbc-config pax-jdbc-pool-dbcp2 transaction
> - restart karaf
> The exception doesn't appear everytime, so maybe some more restarts are needed. I hope you can reproduce it with that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)