Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 83316 invoked from network); 23 Mar 2009 16:12:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2009 16:12:06 -0000 Received: (qmail 364 invoked by uid 500); 23 Mar 2009 16:12:06 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 190 invoked by uid 500); 23 Mar 2009 16:12:06 -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 179 invoked by uid 99); 23 Mar 2009 16:12:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 16:12:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 16:12:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD474234C003 for ; Mon, 23 Mar 2009 09:11:42 -0700 (PDT) Message-ID: <2128088710.1237824702827.JavaMail.jira@brutus> Date: Mon, 23 Mar 2009 09:11:42 -0700 (PDT) From: "xinfang.yuan (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQNET-153) Acknowledgment of Messages consumed from VirtualTopic consumer queues fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org Acknowledgment of Messages consumed from VirtualTopic consumer queues fails ---------------------------------------------------------------------------- Key: AMQNET-153 URL: https://issues.apache.org/activemq/browse/AMQNET-153 Project: ActiveMQ .Net Issue Type: Bug Components: ActiveMQ Client Affects Versions: 1.1 Environment: windows xp 64 ,java1.6 ,Activemq 5.2 NMS1.1 vs2008 Reporter: xinfang.yuan Assignee: Jim Gomes Priority: Blocker i try to test virtual topic found out the isssue 1.create cosumer.a.virtualtopic.test queue. 2.create cosumer.b.virtualtopic.test queue. 3.create virtualtopic.test queue 4.send message into topic 5 consumer the message and uses the ClientAcknowledge submit the message. occurred the error ---msga.Acknowledge(); the mesga can't submit , i go to NMS source look at the code. and debug the information. i found out the if we uses clientacknowledge to submit the message ,it will create the MessageAck , the MessageAck's info from info class and message class in MessageConsumer Class protected virtual MessageAck CreateMessageAck(Message message) { MessageAck ack = new MessageAck(); ack.AckType = (int) AckType.ConsumedAck; ack.ConsumerId = info.ConsumerId; ack.Destination = message.Destination; ack.FirstMessageId = message.MessageId; ack.LastMessageId = message.MessageId; ack.MessageCount = 1; if(session.Transacted) { session.DoStartTransaction(); ack.TransactionId = session.TransactionContext.TransactionId; session.TransactionContext.AddSynchronization( new MessageConsumerSynchronization(this, message)); } return ack; } in there i can saw the message.Destination = topic:\\virtualtopic.test , if i change the Destination to queue:\\Consumer.a.Virtualtopic.test . and continue running the program ,it works . but i think the problem not here. i think the problem in the running the Acknowledge between Broker and Client NMS-------------------running Command-------VirtualTopic.test--------------------->Consumer.A.virtualTopic.test i guess the problem maybe in command . because i uses the java client to test it . everything is works. other information for Message and Command Tracer.Debug("Sending Ack: "+ ack); ack = {MessageAck[ Destination=topic://VirtualTopic.test TransactionId= ConsumerId=ConsumerId[ ConnectionId=1a8ceea3-e808-473a-98a6-e08906181f64 SessionId=1 Value=1 ] AckType=2 FirstMessageId=MessageId[ ProducerId=ProducerId[ ConnectionId=a84996ea-6e8d-475e-bae1-25eee46b482f Value=1 SessionId=1 ] ProducerSequenceId=1 BrokerSequenceId=8 ] LastMessageId=MessageId[ ProducerId=ProducerId[ ConnectionId=a84996ea-6e8d-475e-bae1-25eee46b482f Value=1 SessionId=1 ] ProducerSequenceId=1 BrokerSequenceId=8 ] MessageCount=1 ]} transport.Oneway(command); command= {MessageAck[ Destination=topic://VirtualTopic.test TransactionId= ConsumerId=ConsumerId[ ConnectionId=1a8ceea3-e808-473a-98a6-e08906181f64 SessionId=1 Value=1 ] AckType=2 FirstMessageId=MessageId[ ProducerId=ProducerId[ ConnectionId=a84996ea-6e8d-475e-bae1-25eee46b482f Value=1 SessionId=1 ] ProducerSequenceId=1 BrokerSequenceId=8 ] LastMessageId=MessageId[ ProducerId=ProducerId[ ConnectionId=a84996ea-6e8d-475e-bae1-25eee46b482f Value=1 SessionId=1 ] ProducerSequenceId=1 BrokerSequenceId=8 ] MessageCount=1 ]}\ 2009-03-23 10:30:26,132 [/127.0.0.1:4352] ERROR Service - Async error occurred: java.lang.IllegalArgumentException: The subscription does not exist: 23f5c4b1-511f-4336-a0ce-d428ae28574b:1:1 java.lang.IllegalArgumentException: The subscription does not exist: 23f5c4b1-511f-4336-a0ce-d428ae28574b:1:1 at org.apache.activemq.broker.region.AbstractRegion.acknowledge(AbstractRegion.java:364) at org.apache.activemq.broker.region.RegionBroker.acknowledge(RegionBroker.java:462) at org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:194) at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) at org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74) at org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:85) at org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:456) at org.apache.activemq.command.MessageAck.visit(MessageAck.java:205) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:305) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:179) 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:203) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:185) at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.