java.lang.NullPointerException error after logging into Java Web Client