P
pimpmassa
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=[URL]https://somedomain.com[/URL]], timeout = 0
DEBUG iThreadedHttpConnectionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - Allocating new connection,
hostConfig=HostConfiguration[host=[URL]https://somedomain.com[/URL]]
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=[URL]https://somedomain.com[/URL], 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=[URL]https://somedomain.com[/URL],
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=[URL]https://somedomain.com[/URL],
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?
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=[URL]https://somedomain.com[/URL]], timeout = 0
DEBUG iThreadedHttpConnectionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - enter
HttpConnectionManager.ConnectionPool.getHostPool(HostConfiguration)
DEBUG iThreadedHttpConnectionManager - Allocating new connection,
hostConfig=HostConfiguration[host=[URL]https://somedomain.com[/URL]]
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=[URL]https://somedomain.com[/URL], 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=[URL]https://somedomain.com[/URL],
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=[URL]https://somedomain.com[/URL],
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?