You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by "John W (JIRA)" <ji...@apache.org> on 2017/11/02 15:55:01 UTC
[jira] [Commented] (APLO-400) Connecting with paho.mqtt.client
python lib does not work and causes NullPointer java error
[ https://issues.apache.org/jira/browse/APLO-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16236000#comment-16236000 ]
John W commented on APLO-400:
-----------------------------
[~tabish121] Thanks for the heads up. It turns out this is also a duplicate of another active bug. I thought Apollo Broker was supposed to be the "new world" of ActiveMQ
> Connecting with paho.mqtt.client python lib does not work and causes NullPointer java error
> -------------------------------------------------------------------------------------------
>
> Key: APLO-400
> URL: https://issues.apache.org/jira/browse/APLO-400
> Project: ActiveMQ Apollo
> Issue Type: Bug
> Components: apollo-mqtt
> Affects Versions: 1.7.1
> Environment: Ubuntu 16.04 server x86_64
> Reporter: John W
> Priority: Major
>
> Was getting a `[Errno 54] Connection reset by peer` error on my python frontend which wasn't useful so I checked my connection log and found this:
> 2017-11-02 11:24:23,919 MQTT connection '/192.168.1.122:49730' error: Internal Server Error: java.lang.NullPointerException
> That lead me to take a look at the stacktrace:
> {code:java}
> 2017-11-02 11:24:23,919 | WARN | stackref=15f7965f9e0
> java.lang.NullPointerException
> at org.apache.activemq.apollo.mqtt.MqttProtocolHandler.on_mqtt_connect(MqttProtocolHandler.java:443)
> at org.apache.activemq.apollo.mqtt.MqttProtocolHandler$9.call(MqttProtocolHandler.java:410)
> at org.apache.activemq.apollo.util.UnitFn1.apply(Scala2JavaHelper.scala:41)
> at org.apache.activemq.apollo.mqtt.MqttProtocolHandler.on_transport_command(MqttProtocolHandler.java:377)
> at org.apache.activemq.apollo.broker.BrokerConnection.on_transport_command(Connection.scala:144)
> at org.apache.activemq.apollo.broker.Connection$$anon$1.onTransportCommand(Connection.scala:71)
> at org.fusesource.hawtdispatch.transport.TcpTransport.drainInbound(TcpTransport.java:709)
> at org.fusesource.hawtdispatch.transport.TcpTransport$9.run(TcpTransport.java:770)
> at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
> at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
> {code}
> Any idea what this is?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)