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



   <cxf:cxfEndpoint
      id="importerEndpoint"
      serviceName="myservice:VerizonDestinationImportService"

address="http://service-test1.test:8380/destination-server/verizonImport";

wsdlURL="http://service-test1.test:8380/destination-server/verizonImport?wsdl";>

     <cxf:properties>
       <beans:entry key="portName"
value="VerizonDestinationImporterImplPort"/>
       <beans:entry key="dataFormat" value="MESSAGE"/>
       <beans:entry key="receiveTimeout" value="120000"/>
       <beans:entry key="connectionTimeout" value="120000"/>
     </cxf:properties>
    </cxf:cxfEndpoint>

     <camelContext
        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">

        <route>
         <from
uri="cxf://http://service-test1.test:8420/rating-bus/verizonImportTest?wsdlURL=http://service-test1.test:8380/destination-server/verizonImport&#63;wsdl&amp;serviceName={http://www.tc.nl/nl.tc.rating.destination-service}VerizonDestinationImportService&amp;portName={http://www.tc.nl/nl.tc.rating.destination-service}VerizonDestinationImporterImplPort&amp;dataFormat=MESSAGE";
/>
          <to uri="cxf:bean:importerEndpoint" />
        </route>


--
Willem
----------------------------------
Open Source Integration: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: http://twitter.com/willemjiang

Reply via email to