Fix for issue 2617.
The fix consists on creating a TopologyCache even if the ADS does not exist. The code in TopologyCache will generate an exception describing the problem (if any).
| | |
| | | TopologyCache cache = null; |
| | | try |
| | | { |
| | | if (adsCtx.hasAdminData()) |
| | | { |
| | | cache = new TopologyCache(adsCtx, getTrustManager()); |
| | | cache.reloadTopology(); |
| | | } |
| | | } |
| | | catch (ADSContextException adce) |
| | | { |
| | | throw new ReplicationCliException( |
| | | ERR_REPLICATION_READING_ADS.get(adce.getMessage()), |
| | | ERROR_READING_ADS, adce); |
| | | cache = new TopologyCache(adsCtx, getTrustManager()); |
| | | cache.reloadTopology(); |
| | | } |
| | | catch (TopologyCacheException tce) |
| | | { |