Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

axis2 stops making https connections randomly... HELP!

 
Sam Jonson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21316
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dumb user", please check your private messages regarding an important administrative matter.

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic