Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 2102 invoked from network); 21 Oct 2010 09:49:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Oct 2010 09:49:57 -0000 Received: (qmail 37265 invoked by uid 500); 21 Oct 2010 09:49:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37231 invoked by uid 500); 21 Oct 2010 09:49:57 -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 37223 invoked by uid 99); 21 Oct 2010 09:49:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 09:49:56 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 74.125.83.173 as permitted sender) Received: from [74.125.83.173] (HELO mail-pv0-f173.google.com) (74.125.83.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 09:49:50 +0000 Received: by pva4 with SMTP id 4so221209pva.32 for ; Thu, 21 Oct 2010 02:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=1gn1kPpKWD1CHMbBbFzIYcViOEW1Q/JJ5wI0LVuaKN0=; b=OOBhtGStSPSN9IXh8tTalI1dQkjaiJppI0mAxKBk5G9V60oKePXr+sNu7j+Jvw03Lq NRrZZQgrr83D8DHshw5a5rlXYXoDvdFHi9swnW4a9EtR3sBKG82mt+242+YeBG4O9Z7l Dh6GcIpDOEFmHF+8gnoX71zIYBhZTqhMwjfHE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=IaF4STlVFwxWNoCTLZctbCkX7dcRUHPZuVZPtCHbP46UZN2a8SI2AC/f6rH/U6WGp1 iukEs9YPTTMcB1FDHHgxhs8sBnqvM9JFXzxn2WlSQ7PBbw8OJqp9og5ZZHkdqfm/kbdr M2lE+RL8Wt2OHjz2DPnUCb6nIxFyYIJYYX+E4= Received: by 10.142.48.16 with SMTP id v16mr407342wfv.441.1287654567123; Thu, 21 Oct 2010 02:49:27 -0700 (PDT) Received: from [192.168.0.158] ([123.116.35.140]) by mx.google.com with ESMTPS id w14sm2058982wfd.18.2010.10.21.02.49.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Oct 2010 02:49:26 -0700 (PDT) Message-ID: <4CC00CA1.6020009@gmail.com> Date: Thu, 21 Oct 2010 17:49:21 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101013 Lightning/1.0b2 Thunderbird/3.1.5 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Camel CXF Producers And Timeout Configuration References: <1287649610970-3230048.post@n5.nabble.com> <1287654123511-3230161.post@n5.nabble.com> In-Reply-To: <1287654123511-3230161.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Can you check the log to find more information about NPE? BTW, I don't think you set a right serviceName and endpointName for the importEndpoint. On 10/21/10 5:42 PM, raymond wrote: > > I also tried following, but this throws exceptions: > > 2010-10-21 11:40:34,150 [WARN ] DefaultManagementLifecycleStrategy - Could > not unregister service: > Consumer[http://service-test1.test:8420/rating-bus/verizonImportTest] as > Service MBean. > javax.management.InstanceNotFoundException: > org.apache.camel:context=service-test1/camelContext,type=consumers,name=CxfConsumer(0x2eb6fb) > > 2010-10-21 11:40:34,157 [WARN ] DefaultManagementLifecycleStrategy - Could > not unregister service: > sendTo(Endpoint[http://service-test1.test:8380/destination-server/verizonImport]) > as Service MBean. > javax.management.InstanceNotFoundException: > org.apache.camel:context=service-test1/camelContext,type=processors,name=SendProcessor(0x169c398) > > > org.apache.camel.FailedToCreateProducerException: Failed to create Producer > for endpoint: > Endpoint[http://service-test1.test:8380/destination-server/verizonImport]. > Reason: java.lang.NullPointerException > > > > id="importerEndpoint" > serviceName="myservice:VerizonDestinationImportService" > > address="http://service-test1.test:8380/destination-server/verizonImport" > > wsdlURL="http://service-test1.test:8380/destination-server/verizonImport?wsdl"> > > > value="VerizonDestinationImporterImplPort"/> > > > > > > > id="camelContext" > xmlns="http://camel.apache.org/schema/spring" > xmlns:lookupservice="http://www.tc.nl/nl.tc.rating.destination-service" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:tns="http://www.tc.nl/nl.tc.rating.destination-service" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > trace="true" > autoStartup="true"> > > > uri="cxf://http://service-test1.test:8420/rating-bus/verizonImportTest?wsdlURL=http://service-test1.test:8380/destination-server/verizonImport?wsdl&serviceName={http://www.tc.nl/nl.tc.rating.destination-service}VerizonDestinationImportService&portName={http://www.tc.nl/nl.tc.rating.destination-service}VerizonDestinationImporterImplPort&dataFormat=MESSAGE" > /> > > -- Willem ---------------------------------- Open Source Integration: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: http://twitter.com/willemjiang