Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6DF810435 for ; Thu, 3 Oct 2013 11:35:47 +0000 (UTC) Received: (qmail 23220 invoked by uid 500); 3 Oct 2013 11:35:44 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 23187 invoked by uid 500); 3 Oct 2013 11:35:44 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 23162 invoked by uid 99); 3 Oct 2013 11:35:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 11:35:42 +0000 Date: Thu, 3 Oct 2013 11:35:42 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2497) NPE in PropertiesLoginModule MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2497?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1378= 5020#comment-13785020 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-2497: --------------------------------------------- It may be related to the latest changes performed by Freeman. I gonna take = a look. > 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=C3=A9 > Priority: Minor > > Notice this stacktrace during an karaf itest in ActiveMQ > {code} > Caused by: javax.security.auth.login.LoginException: java.lang.NullPointe= rException > =09at java.lang.String.(String.java:168) > =09at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.logi= n(PropertiesLoginModule.java:85) > =09at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.= java:83) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:57) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:606) > =09at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784= ) > =09at javax.security.auth.login.LoginContext.access$000(LoginContext.java= :203) > =09at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698) > =09at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java= :695) > =09at javax.security.auth.login.LoginContext.login(LoginContext.java:594) > =09at org.apache.activemq.security.JaasAuthenticationBroker.addConnection= (JaasAuthenticationBroker.java:73) > =09at org.apache.activemq.broker.MutableBrokerFilter.addConnection(Mutabl= eBrokerFilter.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)