I am trying to invoke an outbound external webservice which is https. Its working fine in my local MuleStudion env. But when I deploy to test. I am getting an exception
Message : Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=https://xxx.com/yyy, connector=HttpsConnector
{
name=connector.https.mule.default
lifecycle=start
this=4670c992
numberOfConcurrentTransactedReceivers=4
createMultipleTransactedReceivers=true
connected=true
supportedProtocols=[https]
serviceOverrides=<none>
}
, name='endpoint.https.xxx.comy.yyy', mep=REQUEST_RESPONSE, properties={http.method=POST, Content-Type=text/xml}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: PostMethod
Code : MULE_ERROR-42999
--------------------------------------------------------------------------------
Exception stack is:
- the trustAnchors parameter must be non-empty (java.security.InvalidAlgorithmParameterException) java.security.cert.PKIXParameters:200 (null)
- Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty (java.lang.RuntimeException) sun.security.validator.PKIXValidator:90 (null)
- java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty (javax.net.ssl.SSLException) sun.security.ssl.Alerts:208 (http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/net/ssl/SSLException.html)
- Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=https://xxx.com/yyy, connector=HttpsConnector
The snippet calling is
<set-payload value="<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mcs="http://www.cybershift.com/wfm3/mcs10/" xmlns:ns="http://www.cybershift.com/wfm3/5/3/"><soapenv:Header><mcs:UsernameToken><mcs:clientName>HHMI</mcs:clientName><mcs:user>xxx</mcs:user><mcs:password>yyy5</mcs:password></mcs:UsernameToken></soapenv:Header><soapenv:Body><mcs:RetrieveData><mcs:businessObjectName>SCHEDULE</mcs:businessObjectName><mcs:queryValueObject action="ADD" startDate="#[flowVars['payStartDate']]" endDate="#[flowVars['payEndDate']]"><ns:StringAttribute name="pqr"><ns:string>#[empIDS.get(flowVars['eid']-1).text]</ns:string></ns:StringAttribute></mcs:queryValueObject></mcs:RetrieveData></soapenv:Body></soapenv:Envelope>" doc:name="Set Payload"/>
<logger message="SOAP Request to ST #[message.payload]" level="INFO" doc:name="Logger"/>
<https:outbound-endpoint exchange-pattern="request-response" method="POST" doc:name="ST" contentType="text/xml" address="https://xxx.com/yyy"/>
Do I need to set up an https connector. If so what do I need to have. Many Thanks.
-Djavax.net.debug=ssl:handshake:verbose- Ryan Hoegg