Remove import * in java.
Fix path to a variable that moved.
Added debug info to output when we didn't receive JSON value from the server.
Catch all exception when trying to connect to the server. Otherwise, we do not retry.