Hi, Are you still seeing this problem? Have you tried debugging to see why your Persistence Provider service might be null?
Regards, Tim Date: Fri, 16 Sep 2011 18:17:33 -0500 Subject: KARAF and JPA Bundle issues - Urgent From: mattmadha...@gmail.com To: user@aries.apache.org; us...@felix.apache.org; anpie...@gmail.com; n...@apache.org Hello,I moving couple of my sample applications from pax:provision to Apache Karaf. Both application run ok on pax:provision inside of a Felix container. But when I run the same applications (derby/openjpa 2.0, aries) I'm getting a null pointer exception when I start my persistence bundle. The same bundle worked fine in pax:provision! Can some one send me an example or send me the list of Bundles/Features I must have in order to make this work? I would greatly appreciate it. The errors are as follows: The log says:2011-09-16 17:57:07,578 | INFO | rint Extender: 2 | BlueprintContainerImpl | container.BlueprintContainerImpl 305 | 9 - org.apache.aries.blueprint - 0.3.1 | Bundle itso.bank.persistence is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))] 2011-09-16 18:02:07,578 | ERROR | rint Extender: 3 | BlueprintContainerImpl | ntainer.BlueprintContainerImpl$1 293 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle itso.bank.persistence due to unresolved dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))] java.util.concurrent.TimeoutException at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:287)[9:org.apache.aries.blueprint:0.3.1] But the console output says: karaf@root> start 207ERROR: Bundle org.apache.aries.jpa.container [126] EventDispatcher: Error during dispatch. (java.lang.NullPointerExcepti on)java.lang.NullPointerException at org.apache.aries.jpa.container.impl.PersistenceBundleManager$ProviderServiceComparator.compare(PersistenceBundleManager.java:575) at org.apache.aries.jpa.container.impl.PersistenceBundleManager$ProviderServiceComparator.compare(PersistenceBundleManager.java:572) at java.util.Collections.max(Collections.java:681) at org.apache.aries.jpa.container.impl.PersistenceBundleManager.getBestProvider(PersistenceBundleManager.java:554) at org.apache.aries.jpa.container.impl.PersistenceBundleManager.getProviderServiceReference(PersistenceBundleMan ager.java:460) Any help will be appreciated. ThanksMatt