activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dingwen Yuan (JIRA)" <>
Subject [jira] Created: (AMQ-1366) Stomp property "expires" not properly supported
Date Tue, 21 Aug 2007 01:05:22 GMT
Stomp property "expires" not properly supported

                 Key: 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: Read timed out
	at Method)
	at org.apache.activemq.transport.stomp.StompConnection.receiveFrame(
	at org.apache.activemq.transport.stomp.StompConnection.receiveFrame(
	at org.apache.activemq.transport.stomp.StompTest.testStompExpireProperty(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at junit.framework.TestCase.runTest(
	at junit.framework.TestCase.runBare(
	at org.apache.activemq.CombinationTestSupport.runBare(
	at org.apache.activemq.CombinationTestSupport.runBare(
	at junit.framework.TestResult$1.protect(
	at junit.framework.TestResult.runProtected(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(


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.

View raw message