Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 27073 invoked from network); 31 Mar 2010 13:53:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 13:53:52 -0000 Received: (qmail 31390 invoked by uid 500); 31 Mar 2010 13:53:52 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 31360 invoked by uid 500); 31 Mar 2010 13:53:52 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 31352 invoked by uid 99); 31 Mar 2010 13:53:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 13:53:52 +0000 X-ASF-Spam-Status: No, hits=2.3 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cmoulliard@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 13:53:48 +0000 Received: by wwb28 with SMTP id 28so81011wwb.32 for ; Wed, 31 Mar 2010 06:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=TBP71L/HZMahSE9AF8Tt0e2+EiWagW82hbuWYOyzCu4=; b=LJ3ETPGsf/00YKWlWSZdeO9g0iSNxgjYomYPpwEalqFEoEQNFV94x8x7NEdJyr6KQ6 w1OciE3QjZYbsHGzfNmXgDVmHXHvTW5ZJseEyo6rloXJfK/0uzY9EGtr6gKeZ3pSKxjW UG6eL2N6/HfRVmepMpAdmv6bBmx2Z7kSVTBdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EEtCwznS5ngMprwG4ZUIdgMJ2/fCu9EsyrTteuc0hKeq6xX5CgB7bU3sQuvXpNa94U +HtEd5Ak1C0vQPozPSJoJCZ8v0D3RtSVNsTVQDBZP42aTyvb4Vp02kso8Foe5e948X3o T6WJTl1fdQZtvdXCAy+ui8XI8p+ikzaM4O4UM= MIME-Version: 1.0 Received: by 10.216.88.84 with HTTP; Wed, 31 Mar 2010 06:53:26 -0700 (PDT) In-Reply-To: <4BB35333.1000000@gmail.com> References: <4BB35333.1000000@gmail.com> Date: Wed, 31 Mar 2010 15:53:26 +0200 Received: by 10.216.166.80 with SMTP id f58mr948360wel.187.1270043606529; Wed, 31 Mar 2010 06:53:26 -0700 (PDT) Message-ID: Subject: Re: camel-cxf & osgi error From: Charles Moulliard To: users@camel.apache.org Content-Type: multipart/alternative; boundary=0016364273dd043f2e0483191284 --0016364273dd043f2e0483191284 Content-Type: text/plain; charset=ISO-8859-1 The route is defined in the tutorial but here is the code that I don't change : file webservice All the bundles are strated in karaf Kind regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm On Wed, Mar 31, 2010 at 3:50 PM, Willem Jiang wrote: > Hi Charles, > > You are using the cxf osgi transport, can you check the karaf log to see if > the camel-cxf endpoint start up rightly? > > BTW, can you show me the camel route and the camel-cxf endpoint > configuration? > > Willem > > > Charles Moulliard wrote: > >> Hi, >> >> I try to test the camel tutorial using camel 2.2.0 & cxf 2.2.6 on karaf >> 1.4 >> and get this error : >> >> >> >> Error 500 INTERNAL_SERVER_ERROR >> >> >>

HTTP ERROR 500

>>

>> Problem accessing /cxf/camel-example/incident. Reason: >>

INTERNAL_SERVER_ERROR
>>

>>

Caused by:

>>
java.lang.NullPointerException
>>    at
>>
>> org.apache.cxf.transport.http_osgi.OsgiDestination.doMessage(OsgiDestination.java:79)
>>    at
>>
>> org.apache.cxf.transport.http_osgi.OsgiServletController.invokeDestination(OsgiServletController.java:327)
>>    at
>>
>> org.apache.cxf.transport.http_osgi.OsgiServletController.invoke(OsgiServletController.java:151)
>>    at
>> org.apache.cxf.transport.http_osgi.OsgiServlet.invoke(OsgiServlet.java:53)
>>    at
>>
>> org.apache.cxf.transport.http_osgi.SpringOsgiServlet.invoke(SpringOsgiServlet.java:48)
>>    at
>>
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
>>    at
>>
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>>    at
>>
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
>>    at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>>    at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
>>    at
>>
>> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
>>    at
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>>    at
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>    at
>>
>> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
>>    at
>>
>> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
>>    at
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>    at org.mortbay.jetty.Server.handle(Server.java:326)
>>    at
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
>>    at
>>
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
>>    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
>>    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>>    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>    at
>>
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>    at
>>
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
>>
>> >> Powered by Jetty:// >> >> >> >> Any idea is welcome ? >> >> Kind regards, >> >> Charles Moulliard >> Senior Enterprise Architect >> Apache Camel Committer >> >> ***************************** >> blog : http://cmoulliard.blogspot.com >> twitter : http://twitter.com/cmoulliard >> Linkedlin : http://www.linkedin.com/in/charlesmoulliard >> >> Apache Camel Group : >> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm >> >> > --0016364273dd043f2e0483191284--