qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-244) NPE in org/apache/qpid/proton/jms/InboundTransformer when connecting qpid-client to qpid-proton in ActiveMQ
Date Wed, 20 Feb 2013 15:01:19 GMT

    [ https://issues.apache.org/jira/browse/PROTON-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582225#comment-13582225
] 

Hiram Chirino commented on PROTON-244:
--------------------------------------

Hi, could you post how you were using the Qpid JMS client?  What kind of message you were
creating, what fields your were setting etc?
                
> NPE in org/apache/qpid/proton/jms/InboundTransformer when connecting qpid-client to qpid-proton
in ActiveMQ
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PROTON-244
>                 URL: https://issues.apache.org/jira/browse/PROTON-244
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: 0.3
>            Reporter: Jan-Helge Bergesen
>              Labels: robustness
>         Attachments: PROTON-244.logexcerpt.txt
>
>
> Connecting a ConnectionFactory from qpid-amqp-1-0-client-jms version 0.20 to ActiveMQ
5.8.0, yields NPE:
> org.apache.activemq.transport.amqp.AmqpProtocolException: Could not process AMQP commands
>         at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:245)
>         at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onAMQPData(AmqpProtocolConverter.java:151)
>         at org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:94)
>         at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
>         at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NullPointerException
>         at org.apache.qpid.proton.jms.InboundTransformer.populateMessage(InboundTransformer.java:146)
>         at org.apache.qpid.proton.jms.AMQPNativeInboundTransformer.transform(AMQPNativeInboundTransformer.java:37)
>         at org.apache.activemq.transport.amqp.AmqpProtocolConverter$ProducerContext.onMessage(AmqpProtocolConverter.java:454)
>         at org.apache.activemq.transport.amqp.AmqpProtocolConverter$BaseProducerContext.onDelivery(AmqpProtocolConverter.java:435)
>         at org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:215)
>         ... 6 more
> Looking at https://github.com/apache/qpid-proton/blob/trunk/proton-j/contrib/proton-jms/src/main/java/org/apache/qpid/proton/jms/InboundTransformer.java#L146
> It would seems that qpid-amqp-1-0-client-jms sends a message with header "x-opt-jms-type"
with value NULL.
> This might very well be an invalid combination of client/broker setup -- however, the
proton-jms code could possibly benefit from utilizing String.valueOf(..) instead of getValue().toString()
(or similar) :-)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message