activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toli Kuznets (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQNET-92) Running unit tests in NMS against ActiveMQ results in errors Click to flag this post
Date Sun, 29 Jun 2008 23:26:00 GMT
 Running unit tests in NMS against ActiveMQ results in errors Click to flag this post 
--------------------------------------------------------------------------------------

                 Key: AMQNET-92
                 URL: https://issues.apache.org/activemq/browse/AMQNET-92
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: ActiveMQ Client
    Affects Versions: 1.2
         Environment: Windows XP
            Reporter: Toli Kuznets
            Assignee: James Strachan


Which version of ActiveMQ are the NMS tests supposed to run against?
I checked out a fresh copy of NMS and NMS.ActiveMQ and tried running the unit tests from Visual
Studio againstit, and i'm seeing the errors (see below for example).

Setup: Windows Vista and XP, ActvieMQ 5.1.0, NMS rev 672094

Perhaps i'm not doing something right? Are there any pre-built bins from a "known good" release?

thanks.

Unit test error:
BytesMessageTest_OpenWire.SendAndSyncReceive : Failed
#### : Connecting...
#### : Connected.
#### : Disconnecting...
#### : Disconnected.
NUnit.Framework.AssertionException: Did not receive a IBytesMessage: ActiveMQMessage[ ProducerId=ProducerId[
ConnectionId=441aed02-1e76-4ed2-8836-0210b1f8f784 Value=1 SessionId=1 ] Destination=queue://Test.DotNet.BytesMessageTest_OpenWire.1
TransactionId= OriginalDestination= MessageId=MessageId[ ProducerId=ProducerId[ ConnectionId=441aed02-1e76-4ed2-8836-0210b1f8f784
Value=1 SessionId=1 ] ProducerSequenceId=1 BrokerSequenceId=12 ] OriginalTransactionId= GroupID=
GroupSequence=0 CorrelationId= Persistent=True Expiration=0 Priority=5 ReplyTo= Timestamp=1214593508370
Type= Content= MarshalledProperties= DataStructure= TargetConsumerId= Compressed=False RedeliveryCounter=0
BrokerPath= Arrival=0 UserID= RecievedByDFBridge=False Droppable=False ]
at NUnit.Framework.Assert.IsTrue(Boolean condition, String message)
at Apache.NMS.Test.BytesMessageTest.AssertValidMessage(IMessage message) in BytesMessageTest.cs:
line 53
at Apache.NMS.Test.NMSTestSupport.SendAndSyncReceive() in NMSTestSupport.cs: line 180
at Apache.NMS.Test.BytesMessageTest.SendAndSyncReceive() in BytesMessageTest.cs: line 42

Output from ActiveMQ:
ERROR Service                        - Async error occurred: java.lang.IllegalStateException:
Cannot remove a consumer from a session that had not been registered: 36a3dfb0-80e5-4053-bb2f-4c77077a0746:1
java.lang.IllegalStateException: Cannot remove a consumer from a session that had not been
registered: 36a3dfb0-80e5-4053-bb2f-4c77077a0746:1
org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:544)
        at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:64)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
        at java.lang.Thread.run(Unknown Source)
ERROR Service                        - Async error occurred: java.lang.IllegalStateException:
Cannot remove a producer from a session that had not been registered: 36a3dfb0-80e5-4053-bb2f-4c77077a0746:1
java.lang.IllegalStateException: Cannot remove a producer from a session that had not been
registered: 36a3dfb0-80e5-4053-bb2f-4c77077a0746:1
        at org.apache.activemq.broker.TransportConnection.processRemoveProducer(TransportConnection.java:503)
        at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:66)
        at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292)
        at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
        at java.lang.Thread.run(Unknown Source)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message