Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1145444

Summary: AMQP 1.0 Windows client trying to authenticate to a broker raises java.lang.NullPointerException
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Petra Svobodová <psvobodo>
Component: MessagingAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact: Matej Melko <mmelko>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:43:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Attached files: activemq.xml, users.properties, system.properties and amq.log none

Description Petra Svobodová 2014-09-23 06:11:57 UTC
Describe the issue: 
A client trying to authenticate by username and password from a Windows machine to an A-MQ broker on Linux with enabled anonymous access via AMQP 1.0 protocol raises "java.lang.NullPointerException" on the broker.

This issue does not occur with qpid-cpp client connected from a Linux machine.

Version-Release number of selected component (if applicable):
qpid-cpp-win-3.22.48.2-1
jboss-a-mq-6.1.0.redhat-379.zip

How reproducible:
100%

Steps to reproduce:
1. Permit admin user to log in the A-MQ (see attached files users.properties and system.properties)
1. Start jboss amq with enabled anonymous access (see attached activemq.xml file, please)
2. Unzip and build qpid-cpp-win examples on a Windows machine.
3. Try to send a message: 
spout.exe --broker <IP A-MQ broker machine>:5672 --connection-options "{protocol:amqp1.0, username:admin,password:admin}" "myQueue"
4. Watch a log file "$INSTALL_DIR/data/log/amq.log"

Actual results:
The connection is not created and A-MQ broker raises the "java.lang.NullPointerException" exception (see the terminal transcript in Additional information part, please)

Expected results:
The connection should be created and the message delivered on the broker.

Additional information: 
Exception message from the amq.log:
java.lang.NullPointerException
        at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:83)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:97)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:764)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:148)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpTransportFilter.sendToActiveMQ(AmqpTransportFilter.java:111)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpProtocolConverter.sendToActiveMQ(AmqpProtocolConverter.java:1291)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onConnectionOpen(AmqpProtocolConverter.java:428)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:268)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onAMQPData(AmqpProtocolConverter.java:224)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:96)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)[121:org.apache.activemq.activemq-osgi:5.9.0.redhat-610379]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
2014-09-23 01:30:54,544 | WARN  | 7.149:59304@5672 | Transport                        | ivemq.broker.TransportConnection  205 | 121 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610379 | Transport Connection to: tcp://10.34.37.149:59304 failed: java.io.IOException

Comment 1 Petra Svobodová 2014-09-23 06:17:21 UTC
Created attachment 940255 [details]
Attached files: activemq.xml, users.properties, system.properties and amq.log

Comment 5 Red Hat Bugzilla 2025-02-10 03:43:03 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.