Dear omer,

Well the target URL shouldn't be on http conduit , Please check below example :

<http:conduit name="{pcrf:soap}ScfPccSoapServiceEndpointPort.http-conduit"> 
(Name space and port binding from WSDL).
    <http:tlsClientParameters disableCNCheck="true">
      <sec:trustManagers>
          <sec:keyStore type="JKS" password="123456"
               
file="/test1/appl/ocs/OCS-PCRF/OCS-router/src/main/resources/certs/UPCC_client.store"></sec:keyStore>
      </sec:trustManagers>
      <sec:keyManagers keyPassword="123456">
           <sec:keyStore type="JKS" password="123456" 
                
file="/test1/appl/ocs/OCS-PCRF/OCS-router/src/main/resources/certs/UPCC_client.store"/>
      </sec:keyManagers>
      <sec:cipherSuitesFilter>
       
        <sec:include>.*_EXPORT_.*</sec:include>
        <sec:include>.*_EXPORT1024_.*</sec:include>
        <sec:include>.*_WITH_DES_.*</sec:include>
        <sec:include>.*_WITH_NULL_.*</sec:include>
        <sec:exclude>.*_DH_anon_.*</sec:exclude>
      </sec:cipherSuitesFilter>
    </http:tlsClientParameters>
   </http:conduit> 


And the main URL will be in the following :

<cxf:cxfEndpoint
            
address="https://10.87.87.8:8080/axis/services/ScfPccSoapServiceEndpointPort";
                id="Masterpcrf" 
serviceClass="pcrf.soap.ScfPccSoapServiceEndpoint"
                wsdlURL="etc/UPCCProvisionsing.wsdl">
                 <cxf:inInterceptors>
            <ref bean="logginginInterceptor"/>
        </cxf:inInterceptors >
        
<cxf:outInterceptors>
            <ref bean="loggingOutInterceptor"/>
        </cxf:outInterceptors>
        
        
        <!--    
address="https://10.100.184.193:8080/axis/services/ScfPccSoapServiceEndpointPort"-->

        </cxf:cxfEndpoint>


Thanks,
Omar Atia

-----Original Message-----
From: oshafi [mailto:[email protected]] 
Sent: Tuesday, February 14, 2012 11:26 PM
To: [email protected]
Subject: Conduit Error on CXF 2.1.4

Hello, I have a service set up that uses a conduit for SSL. This was working
fine with both applications running locally on my development enviornment
but when I moved to test enviornment with both applications running on
separate machines i get the following error

Caused by: java.lang.NullPointerException
      at
org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:228)
      at
org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:81)
      at
org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:61)
      at
org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:809)
      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:505)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:440)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:343)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:295)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
      at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
      ... 36 more


The following is my conduit. The name has the target URL in it.

        <http-conf:conduit name="https://10.101.255.135/.*";>
                        <http-conf:tlsClientParameters 
secureSocketProtocol="SSL"
disableCNCheck="true">
                                <sec:keyManagers keyPassword="password">
                                        <sec:keyStore type="JKS" 
password="${ws.keystorePassword}"
file="${ws.keystoreLocation}" />
                                </sec:keyManagers>
                                 <sec:trustManagers>
                                 <sec:keyStore type="JKS" 
password="${ws.truststorePassword}"
file="${ws.truststoreLocation}" />
                        </sec:trustManagers>
                                 <sec:cipherSuitesFilter>
                                <sec:include>.*_EXPORT_.*</sec:include>
                                    <sec:include>.*_EXPORT1024_.*</sec:include>
                                    <sec:include>.*_WITH_DES_.*</sec:include>
                                    <sec:include>.*_WITH_NULL_.*</sec:include>
                                    <sec:exclude>.*_DH_anon_.*</sec:exclude>
                        </sec:cipherSuitesFilter>
                        </http-conf:tlsClientParameters>
                </http-conf:conduit>
                        

Any ideas?

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Conduit-Error-on-CXF-2-1-4-tp5483971p5483971.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to