I've got this error in this case...
Login failed: javax.security.auth.login.LoginException: java.lang.IllegalStateException: Readonly object at javax.security.auth.Subject$SecureSet.add(Subject.java:1049)
[Message sent by forum member 'tominfo' (tominfo)]
http://forums.java.net/jive/thread.jspa?messageID=336064