I am working on an eclipse app that has got multiple views. From these views I have to access some data over the wire. An error is thrown in following scenario.
Step 1: Start app, everything works fine.
Step 2: Disable network
Step 3: Enable Network
Step 4: Try to access data over wire from one of the views. The app apparently hangs.
Step 5: Now if you try to access data from some other view, everything works.
Initially I thought that it is happening due to DNS caching by JVM. So I did something like this.
System.setProperty( "networkaddress.cache.ttl", "0" );
System.setProperty( "networkaddress.cache.negative.ttl" , "0" );
But the problem is still there. Any help is appreciated.