karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-2497) NPE in PropertiesLoginModule
Date Tue, 08 Oct 2013 14:28:42 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789242#comment-13789242
] 

Jean-Baptiste Onofré commented on KARAF-2497:
---------------------------------------------

Fixed on trunk: http://svn.apache.org/viewvc?view=revision&revision=1530285

> 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)

Mime
View raw message