You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/10/08 15:12:43 UTC

[jira] [Work started] (KARAF-2497) NPE in PropertiesLoginModule

     [ https://issues.apache.org/jira/browse/KARAF-2497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on KARAF-2497 started by Jean-Baptiste Onofré.

> NPE in PropertiesLoginModule
> ----------------------------
>
>                 Key: KARAF-2497
>                 URL: https://issues.apache.org/jira/browse/KARAF-2497
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.3
>            Reporter: Claus Ibsen
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 2.4.0, 3.0.0, 2.3.4
>
>
> Notice this stacktrace during an karaf itest in ActiveMQ
> {code}
> Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
> 	at java.lang.String.<init>(String.java:168)
> 	at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.login(PropertiesLoginModule.java:85)
> 	at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)
> 	at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)
> 	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)
> 	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)
> 	at javax.security.auth.login.LoginContext.login(LoginContext.java:594)
> 	at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:73)
> 	at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:97)
> {code}
> I guess the PropertiesLoginModule could deal with this an possible throw a more meaningful exception instead of NPE if something is not correct.



--
This message was sent by Atlassian JIRA
(v6.1#6144)