You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "amit (JIRA)" <ji...@apache.org> on 2007/04/18 09:09:16 UTC

[jira] Created: (AXIS2-2554) Webservice client code is not able to contact server with IP address.

Webservice client code is not able to contact server with IP address.
---------------------------------------------------------------------

                 Key: AXIS2-2554
                 URL: https://issues.apache.org/jira/browse/AXIS2-2554
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.1.1
            Reporter: amit


Webservice client code is not able to contact server with IP address. It is working fine if I use 'localhost'. I tried addressbook sample shipped with axis2.

        EndpointReference targetEPR = new EndpointReference(
                "http://10.212.81.180:8080/axis2/services/AddressBookService");

It gives me exception 'connection refused'.  Is there any setting required for this?
See the stack trace below

Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
	java.net.ConnectException: Connection refused: connect; nested exception is: 
	org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
	java.net.ConnectException: Connection refused: connect
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
	at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
	at AddressBookRPCClient.main(AddressBookRPCClient.java:65)
Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
	java.net.ConnectException: Connection refused: connect
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
	... 7 more
Caused by: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2554) Webservice client code is not able to contact server with IP address.

Posted by "amit (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490797 ] 

amit commented on AXIS2-2554:
-----------------------------

Hi Davanum
   
  Can you please give me some hint on that. I am able to see the wsdl in browser while accessing using IP but when I run the client code it gives me the error.
   
  thanks
  Amit

"Davanum Srinivas (JIRA)" <ji...@apache.org> wrote:
  
[ https://issues.apache.org/jira/browse/AXIS2-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490403 ] 

Davanum Srinivas commented on AXIS2-2554:
-----------------------------------------

There's nothing we can do to help. seems you are not connecting to the right box 

-- dims


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 


> Webservice client code is not able to contact server with IP address.
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2554
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2554
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>            Reporter: amit
>
> Webservice client code is not able to contact server with IP address. It is working fine if I use 'localhost'. I tried addressbook sample shipped with axis2.
>         EndpointReference targetEPR = new EndpointReference(
>                 "http://10.212.81.180:8080/axis2/services/AddressBookService");
> It gives me exception 'connection refused'.  Is there any setting required for this?
> See the stack trace below
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect; nested exception is: 
> 	org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> 	at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
> 	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
> 	at AddressBookRPCClient.main(AddressBookRPCClient.java:65)
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> 	... 7 more
> Caused by: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (AXIS2-2554) Webservice client code is not able to contact server with IP address.

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2554.
-------------------------------------

    Resolution: Invalid

> Webservice client code is not able to contact server with IP address.
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2554
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2554
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>            Reporter: amit
>
> Webservice client code is not able to contact server with IP address. It is working fine if I use 'localhost'. I tried addressbook sample shipped with axis2.
>         EndpointReference targetEPR = new EndpointReference(
>                 "http://10.212.81.180:8080/axis2/services/AddressBookService");
> It gives me exception 'connection refused'.  Is there any setting required for this?
> See the stack trace below
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect; nested exception is: 
> 	org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> 	at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
> 	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
> 	at AddressBookRPCClient.main(AddressBookRPCClient.java:65)
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> 	... 7 more
> Caused by: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2554) Webservice client code is not able to contact server with IP address.

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490403 ] 

Davanum Srinivas commented on AXIS2-2554:
-----------------------------------------

There's nothing we can do to help. seems you are not connecting to the right box 

-- dims

> Webservice client code is not able to contact server with IP address.
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2554
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2554
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>            Reporter: amit
>
> Webservice client code is not able to contact server with IP address. It is working fine if I use 'localhost'. I tried addressbook sample shipped with axis2.
>         EndpointReference targetEPR = new EndpointReference(
>                 "http://10.212.81.180:8080/axis2/services/AddressBookService");
> It gives me exception 'connection refused'.  Is there any setting required for this?
> See the stack trace below
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect; nested exception is: 
> 	org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> 	at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
> 	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
> 	at AddressBookRPCClient.main(AddressBookRPCClient.java:65)
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> 	... 7 more
> Caused by: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (AXIS2-2554) Webservice client code is not able to contact server with IP address.

Posted by "haha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503819 ] 

haha commented on AXIS2-2554:
-----------------------------

I got the same Errors. i had started the server, the EPR is right too, but i cann't connect with the server, "AxisFault:Connection refused:connect".
I use axis2-1.2, java jdk1.5, what's wrong? the structure? the commando, which is to run the client? or the codes?
can anyone tell?

> Webservice client code is not able to contact server with IP address.
> ---------------------------------------------------------------------
>
>                 Key: AXIS2-2554
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2554
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.1.1
>            Reporter: amit
>
> Webservice client code is not able to contact server with IP address. It is working fine if I use 'localhost'. I tried addressbook sample shipped with axis2.
>         EndpointReference targetEPR = new EndpointReference(
>                 "http://10.212.81.180:8080/axis2/services/AddressBookService");
> It gives me exception 'connection refused'.  Is there any setting required for this?
> See the stack trace below
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
> Apr 18, 2007 10:39:42 AM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
> INFO: Retrying request
> Exception in thread "main" org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect; nested exception is: 
> 	org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
> 	at org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOperationClient.send(RobustOutOnlyAxisOperation.java:72)
> 	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:453)
> 	at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:380)
> 	at org.apache.axis2.rpc.client.RPCServiceClient.invokeRobust(RPCServiceClient.java:131)
> 	at AddressBookRPCClient.main(AddressBookRPCClient.java:65)
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect; nested exception is: 
> 	java.net.ConnectException: Connection refused: connect
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:344)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
> 	... 7 more
> Caused by: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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