Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 86385 invoked from network); 12 Jun 2007 15:26:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 15:26:29 -0000 Received: (qmail 35332 invoked by uid 500); 12 Jun 2007 15:26:32 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 35279 invoked by uid 500); 12 Jun 2007 15:26:32 -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 35264 invoked by uid 99); 12 Jun 2007 15:26:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 08:26:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [199.105.164.5] (HELO smtpmail2.sensis.com) (199.105.164.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 08:26:27 -0700 Received: from dimstar3.ats.sensis.com ([172.21.1.34]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1Hy8Fy-0007Cz-VT for dev@activemq.apache.org; Tue, 12 Jun 2007 11:26:07 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar3.ats.sensis.com with esmtp (Exim 4.50) id 1Hy8Fp-0005dK-5X for dev@activemq.apache.org; Tue, 12 Jun 2007 11:25:57 -0400 Received: from 172.21.6.29 ([172.21.6.29]) by corpatsmail1.corp.sensis.com ([172.21.1.88]) with Microsoft Exchange Server HTTP-DAV ; Tue, 12 Jun 2007 15:25:55 +0000 Received: from tbish-laptop.ats.sensis.com by corpatsmail1.corp.sensis.com; 12 Jun 2007 11:25:55 -0400 Subject: Re: Getting exception in creating the session for the receivers... From: Timothy Bish Reply-To: tim.bish@sensis.com To: dev@activemq.apache.org In-Reply-To: <296964.9858.qm@web8809.mail.in.yahoo.com> References: <296964.9858.qm@web8809.mail.in.yahoo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Sensis Date: Tue, 12 Jun 2007 11:25:55 -0400 Message-Id: <1181661955.3577.10.camel@tbish-laptop.ats.sensis.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 (2.10.1-4.fc7) X-Sensis-MailScanner-Information: Scanned at Sensis Corporation by MailScanner X-Sensis-MailScanner: Found to be clean X-Sensis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.83, required 5, autolearn=not spam, AWL -0.31, BAYES_00 -2.60, TW_SV 0.08, UNPARSEABLE_RELAY 0.00) X-Sensis-MailScanner-From: tim.bish@sensis.com X-Virus-Checked: Checked by ClamAV on apache.org Well I don't see anything to terrible in that code. One thing of note is that if you are using a DLL you need to be sure that the App and the DLL are linker against the same Runtime otherwise they are each using a separate Runtime each with its own heap which cause you all sorts of problems. On Tue, 2007-06-12 at 20:43 +0530, Rakesh Kumar wrote: > Hi, > I have attached the code snippet of run method of Receiver that i am > using. > > Little more description of the problem:- > 1) Now i see sometime session got created but while creating the > consumer it throws exception. > 2) when i change the name of the queue for producer and consumer then > they start fine, but i can see messages coming to the consumer when > send the message to the broker through different producer (created > seperately), seems to me session has been created properly. > > Many thanks in advance... > > ~Rakesh > > > ----- Original Message ---- > From: Timothy Bish > To: dev@activemq.apache.org > Sent: Tuesday, 12 June, 2007 5:06:13 PM > Subject: Re: Getting exception in creating the session for the > receivers... > > Can you attach a small sample that demonstrates the problem. Have you > tried the same code using a static library using the official 2.0.1 > release? SVN Trunk is not a release and is not guaranteed to work, > its > a work in progress. > > On Tue, 2007-06-12 at 16:59 +0530, Rakesh Kumar wrote: > > Hi, > > > > I am using tcp port 61616 and the brokerURL that i am passing is > > > > > "tcp://127.0.0.1:61616?wireFormat=openwire&transport.useAsyncSend=true"; > > > > > > > > Strange behavior that i see is when i start only sender or receiver > > this problem does not occur. this occur only when they start on the > > same queue. > > > > > > > > I am using 4.1 broker and 2.1 client (I have downloaded the source > from svn and have built the dll of activemq-cpp) > > > > > > Please let me know if you need any other information. > > > > Note:- I have created VS2003 project for this and have created the > dll of activemq from VS2003 itself. > > Same problem is happening in VS2005 build dlls also. > > > > > > ~Rakesh > > > > ----- Original Message ---- > > From: Albert Strasheim > > To: dev@activemq.apache.org > > Sent: Tuesday, 12 June, 2007 4:44:26 PM > > Subject: Re: Getting exception in creating the session for the > receivers... > > > > Hello > > > > On Tue, 12 Jun 2007, Rakesh Kumar wrote: > > > > > To Add in here i am getting the stack trace as follows > > > > > > In the RunMethod Exception > > > response from futureResponse was invalid > > > FILE: \activemq-2.1\src_org\main\activemq\transport > \filters\ResponseCorrelator.cpp, LINE: 146 > > > > > > Thanks in advance... > > > > Just guessing here, but are possibly trying to use the Openwire > wire > > protccol to connect to the Stomp port on the broker, i.e. port > 61613 > > instead of port 61616? > > > > Cheers, > > > > Albert > > > > > > > > > > > > > > > > Download prohibited? No problem! To chat from any browser > without download, Click Here: > http://in.messenger.yahoo.com/webmessengerpromo.php > > > > > ______________________________________________________________________ > Download prohibited? No problem! CHAT from any browser, without > download.