Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CD44930A for ; Mon, 27 Feb 2012 21:08:12 +0000 (UTC) Received: (qmail 94139 invoked by uid 500); 27 Feb 2012 21:08:12 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 93979 invoked by uid 500); 27 Feb 2012 21:08:12 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 93971 invoked by uid 99); 27 Feb 2012 21:08:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:08:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:08:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B99F533DE0C for ; Mon, 27 Feb 2012 21:07:48 +0000 (UTC) Date: Mon, 27 Feb 2012 21:07:48 +0000 (UTC) From: "David Wheeler (Commented) (JIRA)" To: dev@activemq.apache.org Message-ID: <1752432232.24771.1330376868762.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1111433562.24761.1330376628816.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3742) STOMP subscriber does not receive TextMessage with null body sent from JMS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217559#comment-13217559 ] David Wheeler commented on AMQ-3742: ------------------------------------ I've created the following extra test method that should reproduce the issue Index: src/test/java/org/apache/activemq/transport/stomp/StompTest.java =================================================================== --- src/test/java/org/apache/activemq/transport/stomp/StompTest.java (revision 1294315) +++ src/test/java/org/apache/activemq/transport/stomp/StompTest.java (working copy) @@ -1819,6 +1819,24 @@ doReplyToAcrossConnections("queue"); } + public void testSendNullBodyTextMessage() throws Exception { + String frame = "CONNECT\n" + "login: system\n" + "passcode: manager\n\n" + Stomp.NULL; + stompConnection.sendFrame(frame); + + frame = stompConnection.receiveFrame(); + assertTrue(frame.startsWith("CONNECTED")); + + frame = "SUBSCRIBE\n" + "destination:/queue/" + getQueueName() + "\n" + "ack:auto\n\n" + Stomp.NULL; + stompConnection.sendFrame(frame); + + sendMessage(null); + frame = stompConnection.receiveFrame(); + assertNotNull("Message not received", frame); + + frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL; + stompConnection.sendFrame(frame); + } + private void doReplyToAcrossConnections(String type) throws Exception { LOG.info("Starting test on Temp Destinations using a temporary: " + type); > STOMP subscriber does not receive TextMessage with null body sent from JMS > -------------------------------------------------------------------------- > > Key: AMQ-3742 > URL: https://issues.apache.org/jira/browse/AMQ-3742 > Project: ActiveMQ > Issue Type: Bug > Components: stomp > Affects Versions: 5.5.1 > Reporter: David Wheeler > > If a JMS publisher sends a TextMessage with null body, any STOMP subscribers to the topic (I haven't tested queues) will not receive that message or any further messages on that topic. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira