You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nagesh Subrahmanyam <na...@gmail.com> on 2007/09/16 11:30:09 UTC

java.net.ConnectException while invoking a web service.

Hi all,
I am trying out this example : 
http://www.ibm.com/developerworks/xml/library/x-tipjaxrpc/ which results 
in the following exception. Can you please tell me what am I missing ?

Sep 16, 2007 7:14:46 PM org.apache.axis.utils.JavaUtils 
isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler 
and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection refused: connect
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: 
Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at 
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
    at 
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
    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 getPriceWS.GetPriceWS.main(GetPriceWS.java:35)

    {http://xml.apache.org/axis/}hostname:YDEVENDR

etc...

Regards,
Nags

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org