Hi,

Can you try by adding following parameter to the proxy configuration

<parameter name="enablePublishWSDLSafeMode">true</parameter>

On Thu, Feb 19, 2015 at 3:42 PM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

>  *Hi all,*
>
>
>
> *I'm trying to create a proxy service where the endpoint URL uses HTTPS
> and uses a ip address instead of a fqdn. I've done the following steps*
>
>
>
> *imported the certificate to
> /repository/resources/security/client-truststore.jks*
>
>
>
> *set the parameter <parameter name="HostnameVerifier">AllowAll</parameter>*
>
> *in PassThroughHttpSender,PassThroughHttpSSLSender*
>
>
>
> *but getting the following error message. what should I do to overcome
> this problem.*
>
>
>
> TID: [0] [ESB] [2015-02-19 15:11:24,203] ERROR
> {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin} -  Error trying to
> add the proxy service to the ESB configuration : dd :: Error reading from
> wsdl URI {org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin}
>
> org.apache.synapse.SynapseException: Error reading from wsdl URI
>
>                 at
> org.apache.synapse.core.axis2.ProxyService.handleException(ProxyService.java:856)
>
>                 at
> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:330)
>
>                 at
> org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxyService(ProxyServiceAdmin.java:237)
>
>                 at
> org.wso2.carbon.proxyadmin.service.ProxyServiceAdmin.addProxy(ProxyServiceAdmin.java:656)
>
>                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
>                 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                 at java.lang.reflect.Method.invoke(Method.java:606)
>
>                 at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>
>                 at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>
>                 at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>
>                 at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>
>                 at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>
>                 at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>
>                 at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>
>                 at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>
>                 at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>
>                 at
> org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>
>                 at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>
>                 at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>
>                 at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>
>                 at
> org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminStub.addProxy(ProxyServiceAdminStub.java:1272)
>
>                 at
> org.wso2.carbon.proxyadmin.ui.client.ProxyServiceAdminClient.addProxy(ProxyServiceAdminClient.java:102)
>
>                 at
> org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp._jspService(org.apache.jsp.proxyservices.template_005fpass_002dthrough_jsp:226)
>
>                 at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
>                 at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>
>                 at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>
>                 at
> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>
>                 at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>
>                 at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
>
>                 at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
>
>                 at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown
> Source)
>
>                 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>                 at java.lang.reflect.Method.invoke(Method.java:606)
>
>                 at
> org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>
>                 at
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
>
>                 at
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
>
>                 at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
>
>                 at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
>
>                 at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
>
>                 at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
>
>                 at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
>
>                 at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
>
>                 at
> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
>
>                 at
> org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
>
>                 at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
>                 at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>
>                 at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>
>                 at
> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>
>                 at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:30)
>
>                 at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.forward(ContextPathServletAdaptor.java:362)
>
>                 at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
>
>                 at
> org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:185)
>
>                 at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:419)
>
>                 at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:370)
>
>                 at
> org.wso2.carbon.ui.action.ActionHelper.render(ActionHelper.java:52)
>
>                 at
> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:101)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
>                 at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>                 at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
>                 at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
>                 at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>
>                 at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>
>                 at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>
>                 at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>
>                 at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>
>                 at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>
>                 at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
>
>                 at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>
>                 at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>
>                 at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>
>                 at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>
>                 at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>
>                 at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>
>                 at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>
>                 at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>
>                 at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>
>                 at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>                 at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>                 at java.lang.Thread.run(Thread.java:745)
>
> Caused by: javax.net.ssl.SSLHandshakeException:
> java.security.cert.CertificateException: No subject alternative names
> present
>
>                 at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>
>                 at
> sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
>
>                 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
>
>                 at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
>
>                 at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
>
>                 at
> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
>
>                 at
> sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
>
>                 at
> sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
>
>                 at
> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
>
>                 at
> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
>
>                 at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
>
>                 at
> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
>
>                 at
> sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
>
>                 at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
>
>                 at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
>
>                 at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
>
>                 at
> org.apache.synapse.config.SynapseConfigUtils.getOMElementFromURL(SynapseConfigUtils.java:312)
>
>                 at
> org.apache.synapse.core.axis2.ProxyService.buildAxisService(ProxyService.java:284)
>
>                 ... 120 more
>
> Caused by: java.security.cert.CertificateException: No subject alternative
> names present
>
>                 at
> sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:142)
>
>                 at
> sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
>
>                 at
> sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
>
>                 at
> sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203)
>
>                 at
> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
>
>                 at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
>
>
>
> Regards,
>
> Akila Rathnayake
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to