You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jeremy Leung (JIRA)" <ji...@apache.org> on 2013/04/11 11:31:16 UTC
[jira] [Comment Edited] (AMQCPP-476) Reading of Stomp Frame with
content length may throw excecption
[ https://issues.apache.org/jira/browse/AMQCPP-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13628784#comment-13628784 ]
Jeremy Leung edited comment on AMQCPP-476 at 4/11/13 9:29 AM:
--------------------------------------------------------------
I forgot this can be reproduced easily by using the BytesMessage instead of TextMessage.
I have added the Bulk send test for stomp with BytesMessage and can reproduce the problems.
activemq::test::stomp::StompSimpleRollbackTest::testRollbacks. : OK
activemq::test::stomp::StompTransactionTest::testSendReceiveTransactedBatches. : OK
activemq::test::stomp::StompTransactionTest::testSendRollback. : OK
activemq::test::stomp::StompTransactionTest::testWithTTLSet. : OK
activemq::test::stomp::StompSlowListenerTest::testSlowListener. : OK
activemq::test::stomp::StompSimpleTest::testAutoAck. : OK
activemq::test::stomp::StompSimpleTest::testClientAck. : OK
activemq::test::stomp::StompSimpleTest::testProducerWithNullDestination. : OK
activemq::test::stomp::StompSimpleTest::testSyncReceive. : OK
activemq::test::stomp::StompSimpleTest::testSyncReceiveClientAck. : OK
activemq::test::stomp::StompSimpleTest::testMultipleConnections. : OK
activemq::test::stomp::StompSimpleTest::testMultipleSessions. : OK
activemq::test::stomp::StompSimpleTest::testReceiveAlreadyInQueue. : OK
activemq::test::stomp::StompSimpleTest::testQuickCreateAndDestroy. : OK
activemq::test::stomp::StompExpirationTest::testExpired. : OK
activemq::test::stomp::StompExpirationTest::testNotExpired. : OK
activemq::test::stomp::StompDurableTest::testDurableConsumer. : assertionF
activemq::test::stomp::StompCmsConnectionStartStopTest::testStoppedConsumerHoldsMessagesTillStarted. : OK
activemq::test::stomp::StompCmsConnectionStartStopTest::testMultipleConnectionStops. : OK
activemq::test::stomp::StompCmsConnectionStartStopTest::testConcurrentSessionCreateWithStart. : OK
activemq::test::stomp::StompCmsTemplateTest::testBasics. : OK
activemq::test::stomp::StompCmsTemplateTest::testReceiveException. : OK
activemq::test::stomp::StompCmsTemplateTest::testSendException. : OK
activemq::test::stomp::StompBulkMessageTest::testBulkMessageSendReceive. : OK
activemq::test::stomp::StompAsyncSenderTest::testAsyncSends. : OK
!!!FAILURES!!!
Test Results:
Run: 25 Failures: 1 Errors: 0
1) test: activemq::test::stomp::StompDurableTest::testDurableConsumer (F) line: 75 activemq/test/DurableTest.cpp
assertion failed
- Expression: received.get() != NULL
- Failed to receive all messages in batch
was (Author: jeremyleung):
I forgot this can be reproduced by using the BytesMessage instead of TextMessage.
activemq::test::stomp::StompSimpleRollbackTest::testRollbacks. : OK
activemq::test::stomp::StompTransactionTest::testSendReceiveTransactedBatches. : OK
activemq::test::stomp::StompTransactionTest::testSendRollback. : OK
activemq::test::stomp::StompTransactionTest::testWithTTLSet. : OK
activemq::test::stomp::StompSlowListenerTest::testSlowListener. : OK
activemq::test::stomp::StompSimpleTest::testAutoAck. : OK
activemq::test::stomp::StompSimpleTest::testClientAck. : OK
activemq::test::stomp::StompSimpleTest::testProducerWithNullDestination. : OK
activemq::test::stomp::StompSimpleTest::testSyncReceive. : OK
activemq::test::stomp::StompSimpleTest::testSyncReceiveClientAck. : OK
activemq::test::stomp::StompSimpleTest::testMultipleConnections. : OK
activemq::test::stomp::StompSimpleTest::testMultipleSessions. : OK
activemq::test::stomp::StompSimpleTest::testReceiveAlreadyInQueue. : OK
activemq::test::stomp::StompSimpleTest::testQuickCreateAndDestroy. : OK
activemq::test::stomp::StompExpirationTest::testExpired. : OK
activemq::test::stomp::StompExpirationTest::testNotExpired. : OK
activemq::test::stomp::StompDurableTest::testDurableConsumer. : assertionF
activemq::test::stomp::StompCmsConnectionStartStopTest::testStoppedConsumerHoldsMessagesTillStarted. : OK
activemq::test::stomp::StompCmsConnectionStartStopTest::testMultipleConnectionStops. : OK
activemq::test::stomp::StompCmsConnectionStartStopTest::testConcurrentSessionCreateWithStart. : OK
activemq::test::stomp::StompCmsTemplateTest::testBasics. : OK
activemq::test::stomp::StompCmsTemplateTest::testReceiveException. : OK
activemq::test::stomp::StompCmsTemplateTest::testSendException. : OK
activemq::test::stomp::StompBulkMessageTest::testBulkMessageSendReceive. : assertionF
activemq::test::stomp::StompAsyncSenderTest::testAsyncSends. : OK
!!!FAILURES!!!
Test Results:
Run: 25 Failures: 1 Errors: 0
1) test: activemq::test::stomp::StompBulkMessageTest::testBulkMessageSendReceive (F) line: 108 activemq/test/BulkMessageTest.cpp
unexpected exception caught
- Caught: cms::CMSException
- What(): StompWireFormat::readStompBody: Read Content Length, and no trailing null
> Reading of Stomp Frame with content length may throw excecption
> ---------------------------------------------------------------
>
> Key: AMQCPP-476
> URL: https://issues.apache.org/jira/browse/AMQCPP-476
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Stomp
> Affects Versions: 3.6.0
> Environment: Solaris 10
> Reporter: Jeremy Leung
> Assignee: Timothy Bish
> Attachments: consumer.cpp, Publisher.java, StompFrame.cpp.patch.txt, unit_test.txt
>
>
> -- HOW TO REPRODUCE --
> 1) Setup a consumer to listen for messages on Topic XXX using CMS with stomp.
> 2) Setup a publisher to send a messages from java JMS interface to Topic XXX continually. (with org.fusesource.stomp.jms.*)
> 3) An exception is thrown in consumer from StompWireFormat::readStompBody() with description "Read Content Length, and no trailing null"
> -- BLOCK DIAGRAM --
> All components are in different hosts and all run under Solaris 10 environment.
> | C++ CONSUMER | <- | APOLLO 1.6 | <- | JAVA PUBLISHER |
> or
> | C++ CONSUMER | <- | APOLLO 1.6 | <- | C++ PUBLISHER |
--
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