[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/26302] New: Null Poiner Exception in LoginContext.Login()
From: |
esec_dotnet at applabs dot com |
Subject: |
[Bug classpath/26302] New: Null Poiner Exception in LoginContext.Login() method. |
Date: |
15 Feb 2006 13:29:50 -0000 |
This mail is with respect to the bug
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25202 marked as resolved fixed. I
have downloaded the latest gnu classpath source which includes
Added files:
gnu/javax/security/auth/login: GnuConfiguration.java
ConfigFileTokenizer.java
ConfigFileParser.java
and Modified files:
javax/security/auth/login: AppConfigurationEntry.java
Configuration.java
from CVS and built the IKVM.GNU.Classpath dll out of it. When I execute the
attached Java program on .NET after generating an exe using IKVMC I get a Null
Pointer Exception saying.
Exception in thread "main" java.lang.NullPointerException
at security.BaseLoginModule.login (BaseLoginModule.java:70)
at javax.security.auth.login.LoginContext.login (LoginContext.java:141)
at security.TestSecurity.<init> (TestSecurity.java:19)
at security.TestSecurity.main (TestSecurity.java:29)
On Java environment the program executes fine with out any errors. Now on .NET
it is able to parse the given auth.login file and finding the configured module
for the application. But, the callbackhandler object in the
DBLoginModuleTest(LoginModule)->initialize is coming as NULL resulting in the
above said Null Pointer Exception. I am attaching the source files and the logs
generated on Java and .NET environment and below are the files/commands i have
used. Please let me know if i am missing anything.
---auth.login -----------
DBLogin {
security.DBLoginModuleTest required;
};
----------------usage ----------------------------
D:\R& D>ikvmc LoginSecurity.jar
Note: found main method in class "security.TestSecurity"
Note: output file is "LoginSecurity.exe"
Note: automatically adding reference to "D:\R& D\IKVM.GNU.Classpath.DLL"
D:\R& D>LoginSecurity
DEBUG: java.security.auth.login.config = auth.login
WARN: Failed opening as URL: auth.login. Will try as File
INFO: Using login configuration defined by System property
DEBUG: java.security.auth.login.config = auth.login
WARN: Failed opening as URL: auth.login. Will try as File
INFO: Using login configuration defined by System property
DEBUG: DBLogin -> 1 entry(ies)
Exception in thread "main" java.lang.NullPointerException
at security.BaseLoginModule.login (BaseLoginModule.java:70)
at javax.security.auth.login.LoginContext.login (LoginContext.java:141)
at security.TestSecurity.<init> (TestSecurity.java:19)
at security.TestSecurity.main (TestSecurity.java:29)
Thanks in advance for your help.
--
Summary: Null Poiner Exception in LoginContext.Login() method.
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: esec_dotnet at applabs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26302
- [Bug classpath/26302] New: Null Poiner Exception in LoginContext.Login() method.,
esec_dotnet at applabs dot com <=