External Connections like Web Services fail after some time (hours or days) but work again after a restarting QIE.

0 votes
asked Oct 16, 2013 by rich-c-2789 (16,180 points)

I have some web service calls configured in my channel.  After restarting QIE they all work correctly.  After some time.  Sometimes hours, days, or weeks they stop working.  After restarting QIE they work again.  How can I figure out what is going on?  

My logs contain this exception: Connection refused

1 Answer

0 votes

The following link provides some ideas about debugging ConnectExceptions but that fact that QIE works again after a restart may be related to DNS caching.  This may occur if the web services that you are trying to connect to are hosted by Amazon.

This article describes the behavior seen in QIE with a solution to use the networkaddress.cache.ttl setting.

Note this is a JRE or system wide setting found in the file %JRE%\lib\security\ and can not be set using a -D.  However, the is a -D java option that can be used instead.  This allows for setting the DNS caching per JVM instance.  Note this is a depricated java option and will be removed in a future version of java. 

To debug this issue you might try using the DNSCache.jar located on Qveras download directory (private access).

This would tell you the IP addresses that a domain is resolved to within a JVM.  Which can be compared to a new jvm instance to see if the domain now resolves to a new IP.


To run it in QIE:

  • Add the DNSCache.jar to QIE
  • Setup a channel to call it (This could be a run once or test channel and the code could be placed in the source node or a mapping). Here is the code:



To run it from the command line:

  • cd to path where where jar is located.
  • Run this command: java -cp DNSCache.jar

Replace "" with the domain that is failing.

Additional resources:

Other Question that may be useful in diagonsis connection issues:

answered Oct 16, 2013 by rich-c-2789 (16,180 points)