If the client program receives a “New Generic Exception” message, one possible cause is that the session has expired. As a workaround, you can increase values of the Session Idle Timeout and Max Session Time attributes. In the Access Manager administration console, click Configuration > Global > Session. See "Maximum Session Time" and "Maximum Idle Time" in the section Resulting Behavior If Session Quota Exhausted in Sun Java System Access Manager 7.1 Administration Reference for attribute descriptions.
When attempting to authenticate against Access Manager, if the client program receives a “NullPointerException” message, one possible cause is that the client identity username, secret, or password properties are not set correctly. For more information, see Security Credentials Properties and Using the Java API.