Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90A6F70FB for ; Fri, 16 Sep 2011 23:18:01 +0000 (UTC) Received: (qmail 10400 invoked by uid 500); 16 Sep 2011 23:18:00 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 10321 invoked by uid 500); 16 Sep 2011 23:18:00 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 10302 invoked by uid 99); 16 Sep 2011 23:18:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 23:18:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mattmadhavan@gmail.com designates 209.85.161.49 as permitted sender) Received: from [209.85.161.49] (HELO mail-fx0-f49.google.com) (209.85.161.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 23:17:55 +0000 Received: by fxg7 with SMTP id 7so3149933fxg.22 for ; Fri, 16 Sep 2011 16:17:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=AjPOysZqtn1xnOYv1P7AaUwHWsG4CwpGG9L91wE6aQs=; b=h2AdbH4vDa5i3TxkGAeR2q5u13bDLi/sY//1sMGKMWq8e8u1cjVVYg7Ci5PKHl+e1q amjd0dLYblubrWOkSJw7RU052CqJxcVG2/oo9mZUlAzVwlWYliURL1iP39yj8UTh0MwV Kl7YgOkkDyyyM1Us0DHc1YUHT1DxiO9H47kFU= MIME-Version: 1.0 Received: by 10.223.9.69 with SMTP id k5mr1330345fak.62.1316215053533; Fri, 16 Sep 2011 16:17:33 -0700 (PDT) Received: by 10.152.5.41 with HTTP; Fri, 16 Sep 2011 16:17:33 -0700 (PDT) Date: Fri, 16 Sep 2011 18:17:33 -0500 Message-ID: Subject: KARAF and JPA Bundle issues - Urgent From: Matt Madhavan To: user@aries.apache.org, users@felix.apache.org, anpieber@gmail.com, not@apache.org Content-Type: multipart/alternative; boundary=000e0ce0ed5cb6c1d704ad1732e4 --000e0ce0ed5cb6c1d704ad1732e4 Content-Type: text/plain; charset=ISO-8859-1 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 207 ERROR: 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(PersistenceBun dleManager.java:575) at org.apache.aries.jpa.container.impl.PersistenceBundleManager$ProviderServiceComparator.compare(PersistenceBun dleManager.java:572) at java.util.Collections.max(Collections.java:681) at org.apache.aries.jpa.container.impl.PersistenceBundleManager.getBestProvider(PersistenceBundleManager.java:55 4) at org.apache.aries.jpa.container.impl.PersistenceBundleManager.getProviderServiceReference(PersistenceBundleMan ager.java:460) Any help will be appreciated. Thanks Matt --000e0ce0ed5cb6c1d704ad1732e4--