[ https://issues.apache.org/activemq/browse/AMQNET-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50507#action_50507 ]
Sean O'Callaghan commented on AMQNET-92: ---------------------------------------- Hi, What was the fix for this, another user is currently having the same issue and I was curious as to what was the cause and fix for the issue. Thanks, Seán. > Running unit tests in NMS against ActiveMQ results in errors > ------------------------------------------------------------- > > Key: AMQNET-92 > URL: https://issues.apache.org/activemq/browse/AMQNET-92 > Project: ActiveMQ .Net > Issue Type: Test > Components: ActiveMQ Client, EMS, MSMQ, Stomp > Affects Versions: 1.0 > Environment: Windows XP > Reporter: Toli Kuznets > Assignee: Jim Gomes > Fix For: 1.0 > > Original Estimate: 1 day, 5 hours > Time Spent: 2 days > Remaining Estimate: 0 minutes > > 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.