Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53A89182B1 for ; Wed, 19 Aug 2015 17:17:08 +0000 (UTC) Received: (qmail 20339 invoked by uid 500); 19 Aug 2015 17:17:08 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 20297 invoked by uid 500); 19 Aug 2015 17:17:08 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 20287 invoked by uid 99); 19 Aug 2015 17:17:08 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2015 17:17:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A82781AA801 for ; Wed, 19 Aug 2015 17:17:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id jqivaYwe8JqR for ; Wed, 19 Aug 2015 17:16:57 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id 9BCAB20F4F for ; Wed, 19 Aug 2015 17:16:56 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 5E596269CE4E for ; Wed, 19 Aug 2015 10:17:16 -0700 (PDT) Date: Wed, 19 Aug 2015 10:16:55 -0700 (MST) From: slim To: user@karaf.apache.org Message-ID: <1440004615883-4041946.post@n3.nabble.com> In-Reply-To: <55D3907A.4080807@die-schneider.net> References: <1439923888037-4041915.post@n3.nabble.com> <55D3907A.4080807@die-schneider.net> Subject: Re: inject service using cxf MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Christian, Many thanks for your answer and your blog. here is a sample for what I'm trying to do: https://github.com/leadertun/karaf-cxf-postgresql-example yes, I'm using blueprint. the problem is visible when executing the Rest web service. null pointer exception is fired due to a null reference Error 500 Server Error. Problem accessing /cxf/person/rest/message. Reason: Server Error Caused by: Caused by: java.lang.NullPointerException at com.person.service.impl.JsonResponseServiceImpl.getJsonResponse(JsonResponseServiceImpl.java:31) at com.person.rest.RestServiceImpl.getJsonResponseResult(RestServiceImpl.java:27) Do I miss something? Many thanks for your help Reagrds, Slim -- View this message in context: http://karaf.922171.n3.nabble.com/inject-service-using-cxf-tp4041915p4041946.html Sent from the Karaf - User mailing list archive at Nabble.com.