If there's a Java exception, we need to at least clear the exception so JNI knows we're aware of it. When do we so, it is smart to print its stacktrace or otherwise do something useful for debugging.
Java 7, Windows 7, Glassfish 3.1.1, Maven 3.0.4 Describe the problem. When invoking anything from the library I get this exception. My line 104 in the stacktrace is Credential loadedCredential = ...