PostMethod postAnatelSiteLogin = new PostMethod

06/02/2009

1

Olá:

Preciso de uma ajuda

Tenho uma aplicação em java que acessa um site externo com o comando abaixo:

PostMethod postAnatelSiteLogin = new PostMethod( ´http://www.google.com.br/´);


Porém começou a dar erro de conexão:

06/02/2009 12:02:07 pasabot.commands.AnatelSiteLogin Execute
INFO: Tentando efetuar login no site da Anatel...
06/02/2009 12:02:08 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception caught when processing request: Connection refused: connect
06/02/2009 12:02:08 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
06/02/2009 12:02:09 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception caught when processing request: Connection refused: connect
06/02/2009 12:02:09 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
06/02/2009 12:02:10 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception caught when processing request: Connection refused: connect
06/02/2009 12:02:10 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
06/02/2009 12:02:11 pasabot.commands.AnatelSiteLogin Execute
SEVERE: Erro ao tentar efetuar login no site da Anatel!!
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

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 java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:238)
Responder