activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fintan Bolton (JIRA)" <>
Subject [jira] Commented: (AMQ-1781) LDAP + JAAS = NullPointerException
Date Thu, 19 Feb 2009 11:15:59 GMT


Fintan Bolton commented on AMQ-1781:

Assuming that the source code in the file has not changed in the meantime,
it looks like this error (on line 134) is caused by a null password. That is, it looks like
the client failed to send a password to the broker.

I managed to get LDAP authentication to work, using the instructions from the references you
quoted (by the way, thanks for that! I would have been lost without those references). I plan
to write this up for the FUSE documentation set in the near future (i.e. the Message Broker
Security Guide).

One minor problem with the LDAP authentication plug-in is that it tends to throw a lot of
NullPointerExceptions, mainly because it doesn't check all of the login properties for Nullness
(nor does it provide default values). Consequently, you have to set some of the login properties
to dummy values, even if you don't really need them.

> LDAP + JAAS = NullPointerException
> ----------------------------------
>                 Key: AMQ-1781
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0
>            Reporter: Graham Leggett
>             Fix For: 5.3.0
> 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.
> Caused by: java.lang.NullPointerException
>         at java.lang.String.<init>(
>         at org.apache.activemq.jaas.LDAPLoginModule.login(
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at
>         at$000(
>         at$
>         at Method)
>         at
>         at
>         at
>         at
>         at
>         at
>         at org.apache.activemq.command.ConnectionInfo.visit(
>         at
>         at$1.onCommand(
>         at org.apache.activemq.transport.TransportFilter.onCommand(
>         at org.apache.activemq.transport.WireFormatNegotiator.onCommand(
>         at org.apache.activemq.transport.InactivityMonitor.onCommand(
>         at org.apache.activemq.transport.TransportSupport.doConsume(
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(
>         at
>         at

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message