any axis gurus? axis2 stops making http connections

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?
 
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?


BTW,

in the code there is no proxyHost set.... so this seems like this
proxyHost=http://:0 is being generated automatically after a certain
period of time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,187
Members
46,730
Latest member
AudryNolan

Latest Threads

Top