aspose file tools*
The moose likes Web Services and the fly likes Unable to connect Https abap webservices( java.net.ConnectException: Connection timed out: connect) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to connect Https abap webservices( java.net.ConnectException: Connection timed out: connect)" Watch "Unable to connect Https abap webservices( java.net.ConnectException: Connection timed out: connect)" New topic
Author

Unable to connect Https abap webservices( java.net.ConnectException: Connection timed out: connect)

pale sandhya
Greenhorn

Joined: Aug 29, 2012
Posts: 1
Hi experts,

I am traying to consume HTTPS websservices Provide by ABAP.Below is the code

Zsum_httpsProxy zsum = new Zsum_httpsProxy();
zsum.setEndpoint("https://ibmcoe2lp12.sapcoe.sap.com:8401/sap/bc/srt/rfc/sap/zsum_https/020/zsum_https/zsum_https");
zsum.z_SUM_HTTPS(1, 2);

I am getting the below exception.

3:26:56,859 ERROR [STDERR] AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection timed out: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out: connectnull at java.net.PlainSocketImpl.socketConnect(Native Method)null at java.net.PlainSocketImpl.doConnect(Unknown Source)null at java.net.PlainSocketImpl.connectToAddress(Unknown Source)null at java.net.PlainSocketImpl.connect(Unknown Source)null at java.net.SocksSocketImpl.connect(Unknown Source)null at java.net.Socket.connect(Unknown Source)null at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)null at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)null at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)null at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)null at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)null at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)null at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)null at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)null at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)null at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)null at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)null at org.apache.axis.client.Call.invokeEngine(Call.java:2784)null at org.apache.axis.client.Call.invoke(Call.java:2767)null at org.apache.axis.client.Call.invoke(Call.java:2443)null at org.apache.axis.client.Call.invoke(Call.java:2366)null at org.apache.axis.client.Call.invoke(Call.java:1812)null at functions.rfc.sap.document.sap_com.Zsum_httpsStub.z_SUM_HTTPS(Zsum_httpsStub.java:108)null at functions.rfc.sap.document.sap_com.Zsum_httpsProxy.z_SUM_HTTPS(Zsum_httpsProxy.java:50)null at com.fr.carrefour.portail.carburant.login.LoginAction.authenticate(LoginAction.java:136)null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)null at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)null at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)null at java.lang.reflect.Method.invoke(Unknown Source)null at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)null at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)null at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)null at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)null at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)null at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.fr.carrefour.portail.carburant.interceptors.SecurityInterceptor.intercept(SecurityInterceptor.java:85)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)null at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)null at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)null at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)null at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)null at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)null at com.fr.carrefour.portail.carburant.login.FilterDispatcher.doFilter(FilterDispatcher.java:662)null at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)null at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)null at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)null at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)null at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)null at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)null at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)null at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)null at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)null at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)null at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)null at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)null at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)null at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)null at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)null at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)null at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)null at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)null at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)null at java.lang.Thread.run(Unknown Source)null
{http://xml.apache.org/axis/}hostname:01HW243966
13:26:56,859 ERROR [STDERR] java.net.ConnectException: Connection timed out: connect
13:26:56,859 ERROR [STDERR] at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
13:26:56,859 ERROR [STDERR] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
13:26:56,859 ERROR [STDERR] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
13:26:56,890 ERROR [STDERR] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
13:26:56,890 ERROR [STDERR] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
13:26:56,890 ERROR [STDERR] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
13:26:56,890 ERROR [STDERR] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
13:26:56,890 ERROR [STDERR] at org.apache.axis.client.Call.invoke(Call.java:2767)

I am able to Consume Http webservices.I did ssl certification in JBOSS by genearting certificate.keystore.

Please help on this

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to connect Https abap webservices( java.net.ConnectException: Connection timed out: connect)