axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artur Kraft <kra...@darkfluid.com>
Subject Axis Client - Connection Timeout
Date Mon, 01 May 2006 15:53:51 GMT
Hello,

I'm trying to get a axis client to work with my web service (located on 
a remote machine) over HTTPS. The call of the web service succeeds with 
the browser. I accept the server certificate (self-signed), then I am 
able to access and call the methods.

But with the java client I got the following Exception:
    java.net.ConnectException: Connection timed out: connect
(the whole stacktrace is included lower)

 From the view of the amount of time passed, no connection timeout 
should occur. I though it maybe be an SSL cert thing, so I used the 
"SunFakeTrustSocketFactory" from the Axis Wiki, but the result was the 
same as before.
Maybe I am doing something in the basics?

The stub code looks like this:
MeasuringDeviceMonitorService loc = new 
MeasuringDeviceMonitorServiceLocator();
MeasuringDeviceMonitorIF service = loc.getmdmonitor();
Header header = service.getDevice("11/100");

Currently I have no way of disabling SSL from the web service, so any 
help is much appreciated.

kind regards,
Artur Kraft




_Exception Stacktrace:_
trigger seeding of SecureRandom
done seeding SecureRandom
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: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:507)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:546)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.&lt;init&gt;(SSLSocketImpl.java:349)
    at 
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:69)
    at 
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
    at 
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    at 
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at 
de.qsgrimm.wsclient.mdm.gen.MdmonitorSoapBindingStub.getMeasuringDevice(MdmonitorSoapBindingStub.java:752)
    at 
de.qsgrimm.wsclient.mdm.MainFrame$1.actionPerformed(MainFrame.java:164)
    at 
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at 
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at 
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Mime
View raw message