没有主题备用DNS名称匹配代理名称使用Mule ESB找到

时间:2015-08-11 08:55:07

标签: java mule

我正在使用Mule 3.7。我有一个Web服务使用者连接器。它试图访问外部Web服务,但低于例外。我可以通过SOAPUI使用相同的代理访问服务。

=============== 根异常堆栈跟踪: java.security.cert.CertificateException:找不到匹配proxyName的主题备用DNS名称。 at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:191) at sun.security.util.HostnameChecker.match(HostnameChecker.java:93) at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:255)

============代码============================

<data-mapper:config name="Home_Loan_Mapper" transformationGraphPath="home_loan_mapper.grf" doc:name="Home_Loan_Mapper"/>
<ws:consumer-config name="Web_Service_Consumer" wsdlLocation="crmod/Contact.wsdl" service="Contact" port="Contact" serviceAddress="serviceURL" doc:name="Web Service Consumer" connectorConfig="HTTP_Request_Configuration">
<ws:security>
<ws:wss-username-token username="userID" password="password" passwordType="TEXT" addCreated="true" addNonce="true"/>
<ws:wss-timestamp expires="30000" />
</ws:security>
</ws:consumer-config>
<http:request-config name="HTTP_Request_Configuration" doc:name="HTTP Request Configuration" protocol="HTTPS" host="0.0.0.0" port="8083">
<tls:context>
<tls:trust-store path="C:\Dev\certificates\greenmail-truststore" password="password"/>
<tls:key-store path="clientKeystore" keyPassword="mulepassword" password="mulepassword"/>
</tls:context>
<http:proxy host="proxyName" port="89" username="userID" password="password"/>
</http:request-config>
<flow name="Home_Loan">
<set-payload value="#[flowVars.emailBody]" doc:name="Home Loan"/>
<data-mapper:transform config-ref="Home_Loan_Mapper" doc:name="Home Loan Mapper"/>
<set-variable variableName="homeLoanEnquiry" value="#[payload]" doc:name="Set home loan Variable"/>
<choice doc:name="Choice">
<when expression="#[payload.existingcustomer == 'Yes']">
<custom-transformer
class="ContactServiceTransformer"
doc:name="Create Contact Query Page Request" mimeType="text/xml" />
<set-payload value="#[homeLoanEnquiry.contactQueryPageRequest]"
doc:name="Set Contact Request in payload" />
<ws:consumer config-ref="Web_Service_Consumer" doc:name="Contact Consumer"
operation="ContactQueryPage" />
<set-payload value="#[flowVars.homeLoanEnquiry]" doc:name="Set Home Loan bean in payload" />
</when>
<otherwise>
<logger message="No customer account" level="INFO" doc:name="Logger"/>
</otherwise>
</choice>
<custom-transformer class="HoamLoanTransformer" doc:name="Hoam Loan Validation & SOAP Request Gerneration"/>
</flow>

1 个答案:

答案 0 :(得分:1)

您似乎遇到了bug。这已在3.7.1中修复。如果无法更新,则替换版本1.9.27的async-http-client jar应该有效。 HTH。