This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes axis2 stops making https connections randomly... HELP! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2 stops making https connections randomly... HELP!" Watch "axis2 stops making https connections randomly... HELP!" New topic
Author

axis2 stops making https connections randomly... HELP!

Sam Jonson
Greenhorn

Joined: Mar 24, 2009
Posts: 2
We have some java code that uses axis2 to connect to a webservice away
from our network. The code runs fine for an undetermined amount of
time (1 minute to 4 hours) then axis reports in the catalina.out it
cannot make the web connection.

We are using java 6 update 12, the latest tomcat 5.5. and axis 1.4.1.

when setting the log level to DEBUG, you can see that axis seems to
want to use a proxyHost setting when the error occurs, where as it was
fine beore:

connection that occured correctly:

DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod)
DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod,HttpState)
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long)
DEBUG iThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration [host=https://somedomain.com], timeout = 0
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host=https://somedomain.com]
DEBUG HttpMethodDirector - Attempt number 1 to process request
DEBUG HttpConnection - enter HttpConnection.open()
DEBUG HttpConnection - Open connection to somedomain.com:443

It seems to want to add a proxyHost=http://:0 to the config when it
attemtps to connect.
here is a later connection that failed:

DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod)
DEBUG HttpClient - enter HttpClient.executeMethod (HostConfiguration,HttpMethod,HttpState)
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.getConnectionWithTimeout(HostConfiguration, long)
DEBUG iThreadedHttpConnectionManager - HttpConnectionManager.getConnection: config = HostConfiguration [host=https://somedomain.com, proxyHost=http://:0], timeout = 0
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - Allocating new connection, hostConfig=HostConfiguration[host=https://somedomain.com, proxyHost=http://:0]
DEBUG HttpMethodDirector - Attempt number 1 to process request
DEBUG HttpConnection - enter HttpConnection.open()
DEBUG HttpConnection - Open connection to :0
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Closing the connection.
DEBUG HttpConnection - enter HttpConnection.close()
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Connection refused
DEBUG HttpMethodDirector - Attempt number 2 to process request
DEBUG HttpConnection - enter HttpConnection.open()
DEBUG HttpConnection - Open connection to :0
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Closing the connection.
DEBUG HttpConnection - enter HttpConnection.close()
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Connection refused
DEBUG HttpMethodDirector - Attempt number 3 to process request
DEBUG HttpConnection - enter HttpConnection.open()
DEBUG HttpConnection - Open connection to :0
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Closing the connection.
DEBUG HttpConnection - enter HttpConnection.close()
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Connection refused
DEBUG HttpMethodDirector - Attempt number 4 to process request
DEBUG HttpConnection - enter HttpConnection.open()
DEBUG HttpConnection - Open connection to :0
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Closing the connection.
DEBUG HttpConnection - enter HttpConnection.close()
DEBUG HttpConnection - enter HttpConnection.closeSockedAndStreams()
DEBUG HttpMethodDirector - Method retry handler returned false. Automatic recovery will not be attempted
DEBUG HttpConnection - enter HttpConnection.releaseConnection()
DEBUG HttpConnection - Releasing connection back to connection manager.
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.releaseConnection(HttpConnection)
DEBUG iThreadedHttpConnectionManager - Freeing connection, hostConfig=HostConfiguration[host=https://somedomain.com, proxyHost=http://:0]
DEBUG iThreadedHttpConnectionManager - enter HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - Notifying no-one, there are no waiting threads

This is driving me nuts.... what could it be?
Sam Jonson
Greenhorn

Joined: Mar 24, 2009
Posts: 2
BTW,

in the code there is no proxyHost set.... so this seems like this proxyHost is being generated automatically after a certain period of time.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18154
    
    8

"dumb user", please check your private messages regarding an important administrative matter.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: axis2 stops making https connections randomly... HELP!
 
Similar Threads
Apache - HttpConnection
prob with Jakarta HttpClient & HostConfiguration
Problem with Axis2 via proxy with NTLM authentication (currently defaulting to BASIC)
HTTPS over Apache Commons HttpConnection.
No trusted certificate found : when opeing a ssl connection from behind the proxy.