• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

axis2 stops making https connections randomly... HELP!

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 28322
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"dumb user", please check your private messages regarding an important administrative matter.

Thank you.
 
pie. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic