[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/26302] Null Poiner Exception in LoginContext.Login() meth
From: |
jeroen at frijters dot net |
Subject: |
[Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method. |
Date: |
18 Jul 2006 11:29:20 -0000 |
------- Comment #3 from jeroen at frijters dot net 2006-07-18 11:29 -------
There is at least one IKVM specific bug. In ikvm/classpath/classpath.security,
the following line is missing:
security.provider.5=gnu.javax.security.auth.callback.GnuCallbacks
I will modify the IKVM.GNU.Classpath.dll build script to use the GNU Classpath
version of classpath.security (I don't remember why it doesn't use that at the
moment).
However, after fixing this, I still get:
C:\j\LoginSecurity>\ikvm\bin\ikvm security.TestSecurity
Jul 18, 2006 1:17:55 PM security.DBLoginModuleTest initialize
INFO: Starting initialize DbLoginModuleTest
Jul 18, 2006 1:17:55 PM security.DBLoginModuleTest initialize
INFO: callbackhandler is null - initialize - DBLoginModuleTest
Jul 18, 2006 1:17:55 PM security.BaseLoginModule initialize
INFO: Starting initialize BaseLoginModule
Jul 18, 2006 1:17:55 PM security.BaseLoginModule initialize
INFO: CallbackHandler is Null - initialize() - BaseLoginModule
Jul 18, 2006 1:17:55 PM security.BaseLoginModule initialize
INFO: End of initialize BaseLoginModule
Jul 18, 2006 1:17:55 PM security.DBLoginModuleTest initialize
INFO: End of initialize DbLoginModuleTest
Jul 18, 2006 1:17:55 PM security.BaseLoginModule login
INFO: Starting login() of BaseLoginModule
Exception in thread "main" java.lang.NullPointerException
at security.BaseLoginModule.login(BaseLoginModule.java:48)
at javax.security.auth.login.LoginContext.login(LoginContext.java:141)
at security.TestSecurity.<init>(TestSecurity.java:19)
at security.TestSecurity.main(TestSecurity.java:30)
Note that callback is null and this causes the NPE. By my (limited)
understanding callback is allowed to be null (as I don't see anybody setting
the auth.login.defaultCallbackHandler security property), so I'm not sure
whether this is a bug in IKVM/Classpath or in the Radhika's code.
--
jeroen at frijters dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeroen at frijters dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26302
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., raif at swiftdsl dot com dot au, 2006/07/17
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., raif at swiftdsl dot com dot au, 2006/07/18
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method.,
jeroen at frijters dot net <=
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., raif at swiftdsl dot com dot au, 2006/07/18
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., raif at swiftdsl dot com dot au, 2006/07/18
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., jeroen at frijters dot net, 2006/07/19
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., cvs-commit at developer dot classpath dot org, 2006/07/19
- [Bug classpath/26302] Null Poiner Exception in LoginContext.Login() method., raif at swiftdsl dot com dot au, 2006/07/19