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

Timothy Bish commented on QPID-6404:
------------------------------------

Should the client code not put putting in an empty data section then to allow 
for this sort of JMS message to be sent?  Otherwise this causes the client to 
fail against JMS compliance tests that use the empty JMS Message to validate 
behaviour in message properties and JMS headers.  

> [AMQP 1.0 JMS Client ] Cannot send simple empty body JMS Message types
> ----------------------------------------------------------------------
>
>                 Key: QPID-6404
>                 URL: https://issues.apache.org/jira/browse/QPID-6404
>             Project: Qpid
>          Issue Type: Bug
>          Components: JMS AMQP 1.0 Client
>    Affects Versions: 0.31
>            Reporter: Timothy Bish
>         Attachments: reproducer.tar.bz2
>
>
> Test ActiveMQ against 0.32-SNAPSHOT I see lots of test failures around 
> sending of the simple JMS Message object (no body). 
> Error logged during test:
> {noformat}
> java.lang.IllegalArgumentException: Message must contain one of Data, 
> AmqpValue or AmqpSequence
>       at 
> org.apache.qpid.amqp_1_0.client.Message.reorderSections(Message.java:168)
>       at 
> org.apache.qpid.amqp_1_0.client.Message.validateOrReorder(Message.java:147)
>       at org.apache.qpid.amqp_1_0.client.Message.<init>(Message.java:120)
>       at 
> org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:307)
>       at 
> org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:240)
>       at 
> org.objectweb.jtests.jms.conform.connection.ConnectionTest.testAcknowledge(ConnectionTest.java:58)
> {noformat}
> I'll attach a simple reproducer that shows the problem, it spins up an 
> ActiveMQ Broker and sends one message to demonstrate the error.
> I only poked at the history a little but my guess would be changes for 
> QPID-6338 might be the culprit given it touches the area in question.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to