Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 11846 invoked from network); 29 Apr 2009 17:20:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 17:20:12 -0000 Received: (qmail 93839 invoked by uid 500); 29 Apr 2009 17:20:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 93801 invoked by uid 500); 29 Apr 2009 17:20:11 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 93791 invoked by uid 99); 29 Apr 2009 17:20:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 17:20:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 17:20:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C70CE234C04B for ; Wed, 29 Apr 2009 10:19:39 -0700 (PDT) Message-ID: <1740818748.1241025579811.JavaMail.jira@brutus> Date: Wed, 29 Apr 2009 10:19:39 -0700 (PDT) From: "Dejan Bosanac (JIRA)" To: dev@activemq.apache.org Subject: [jira] Resolved: (AMQ-1781) LDAP + JAAS = NullPointerException In-Reply-To: <1642204916.1212795240274.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dejan Bosanac resolved AMQ-1781. -------------------------------- Resolution: Fixed Assignee: Dejan Bosanac Modified patch committed in SVN revision 769838. I started working on removing commons-primitives snapshot dependency, which ended up in upgrading to apache ds 1.5.4 and junit 4.4 (see http://directory.apache.org/apacheds/1.5/42-using-apacheds-for-unit-tests.html). Thanks. > LDAP + JAAS = NullPointerException > ---------------------------------- > > Key: AMQ-1781 > URL: https://issues.apache.org/activemq/browse/AMQ-1781 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.1.0 > Reporter: Graham Leggett > Assignee: Dejan Bosanac > Fix For: 5.3.0 > > Attachments: AMQ-1781.patch > > > If an attempt is made to configure the LDAPLoginModule JAAS plugin, as per the instructions inside either of these two messages, ActiveMQ refuses to start with the NullPointerException reported below. > http://osdir.com/ml/java.activemq.user/2006-05/msg00556.html > http://www.nabble.com/Adding-users-on-the-fly-ACTIVEMQ-to16825211s2354.html#a16984528 > Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException > at java.lang.String.(String.java:176) > at org.apache.activemq.jaas.LDAPLoginModule.login(LDAPLoginModule.java:134) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769) > at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186) > at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) > at javax.security.auth.login.LoginContext.login(LoginContext.java:579) > at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76) > at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:88) > at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:662) > at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:86) > at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125) > at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292) > at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) > at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143) > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206) > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) > at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183) > at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.