Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 52049 invoked from network); 21 Aug 2007 01:05:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 01:05:45 -0000 Received: (qmail 31435 invoked by uid 500); 21 Aug 2007 01:05:42 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 31397 invoked by uid 500); 21 Aug 2007 01:05:42 -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 31387 invoked by uid 99); 21 Aug 2007 01:05:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2007 18:05:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 01:06:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26991714208 for ; Mon, 20 Aug 2007 18:05:22 -0700 (PDT) Message-ID: <20970470.1187658322147.JavaMail.jira@brutus> Date: Mon, 20 Aug 2007 18:05:22 -0700 (PDT) From: "Dingwen Yuan (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1366) Stomp property "expires" not properly supported MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Stomp property "expires" not properly supported ----------------------------------------------- Key: AMQ-1366 URL: https://issues.apache.org/activemq/browse/AMQ-1366 Project: ActiveMQ Issue Type: Bug Components: Transport Affects Versions: 5.0.0 Environment: JDK1.6.0 WinXP Pro Reporter: Dingwen Yuan Fix For: 4.1.1 Attachments: difffile.txt When a stomp queue message sent with "expires" property set to non-zero, AMQ will not route it to the destination. I have added a function to the unit test class org.apache.activemq.transport.stomp.StompTest, to expose that bug. public void testStompExpireProperty() throws Exception It connects to a stomp server (AMQ) and subscribes for a queue. Then it sends a SEND frame to this queue with "expires" set to non-zero value. On version 5.0, you will get this exception: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.net.SocketInputStream.read(SocketInputStream.java:182) at org.apache.activemq.transport.stomp.StompConnection.receiveFrame(StompConnection.java:64) at org.apache.activemq.transport.stomp.StompConnection.receiveFrame(StompConnection.java:56) at org.apache.activemq.transport.stomp.StompTest.testStompExpireProperty(StompTest.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:98) at org.apache.activemq.CombinationTestSupport.runBare(CombinationTestSupport.java:104) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Attached is a diff file for the unit test. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.