I have an issue as said in the title of this post. I am unable to login.
SessionState currentstate = session.getState();
gives me
I know this has already has a selected answer, but it is important to note that if you are trying to use keytool instead of printing the keyhash in code, make sure you use the keytool that comes with java 1.6 instead of java 1.7.