Symptom


The Runtime worked successfully with a Database Server. 

The Database server's IP is modified, and the Runtime cannot resolve the hostname of the server, resulting in connection errors. 


Solution


In some configurations, Java maintains a cache for IP addresses. 

To disable this cache, you can :

  • Add the following Java option to the initvariables script in XDI_RUNTIME_VM_PROPERTIES (legacy STAMBIA_VM_PROPERTIES) :
    -Dsun.net.inetaddr.ttl=0
  • Or add this in the java.security file of your Java installation:
    networkaddress.cache.ttl=0