Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 9091 invoked from network); 16 Apr 2008 07:07:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2008 07:07:25 -0000 Received: (qmail 69291 invoked by uid 500); 16 Apr 2008 07:07:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 69268 invoked by uid 500); 16 Apr 2008 07:07:25 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 69259 invoked by uid 99); 16 Apr 2008 07:07:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 00:07:25 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 209.85.134.191 as permitted sender) Received: from [209.85.134.191] (HELO mu-out-0910.google.com) (209.85.134.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 07:06:39 +0000 Received: by mu-out-0910.google.com with SMTP id w8so857907mue.6 for ; Wed, 16 Apr 2008 00:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=eOeB1vpSGYl3mIDa4WWKEwoMVogecXXeZKscTkrR26M=; b=cz9jY3AkB+xFX/YSs8CIkILj+rxlKuQKS6jQiqhfPRsk+PEbrLuA0l8xPff2sqlwQrN7zXrYYZ8O1BET3xQ4656WGXxusNMA3CsHupXsnJlDl36oy0zXEQ8fhEJAxqz41kehXXAqvgzWcvkt1kl4xDvlLtBEhE/sU8L9IUMgqUc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=f63TYwBJgsNRj45ndVXNfbooMWyEtXQ/jo9PMFnnWnAak1HDSOwUbxYOqMSiCFbbkaGpt0hcYA6/aTRcddOeBiqEqauK5TXRw/fxgtdhmgyFZD7106SXxzgb40iLEMnuEdz24gr6eyLc8iRaKIPYUx02pDCQgYr7cuaChTN4WPw= Received: by 10.78.150.7 with SMTP id x7mr5062694hud.107.1208329610950; Wed, 16 Apr 2008 00:06:50 -0700 (PDT) Received: from ?192.168.1.82? ( [81.132.69.253]) by mx.google.com with ESMTPS id c4sm8030316nfi.29.2008.04.16.00.06.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Apr 2008 00:06:49 -0700 (PDT) Message-Id: <495B028A-07B5-494C-B96F-2384CCA6361F@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: <16717433.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Null Pointer Exception on broker Date: Wed, 16 Apr 2008 08:06:46 +0100 References: <16048936.post@talk.nabble.com> <16703624.post@talk.nabble.com> <16717003.post@talk.nabble.com> <902E1DD5-8A00-40FA-8033-DECC733AC446@gmail.com> <16717433.post@talk.nabble.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org We are currently going through votes on 5.1 - should be a few days cheers, Rob On 16 Apr 2008, at 07:44, Ramit Arora wrote: > > Hey Rob, > Thanks for the reply. BTW, when do you expect to roll out 5.1? We > really > need it due to this bug & NFS based master/slave which is broken in > 5.0. > > Thanks, > Ramit > > rajdavies wrote: >> >> Hi Ramit, >> >> only just saw you stack trace - this is a known problem - caused by a >> bug in the InactivityMonitor - its fixed in the upcoming 5.1 release >> (you could test the release candidate - here: >> http://people.apache.org/~chirino/staging-repos/activemq-5.1.0-RC3/org/apache/activemq/apache-activemq/5.1.0/) >> >> cheers, >> >> Rob >> >> >> On 16 Apr 2008, at 07:03, Ramit Arora wrote: >>> >>> Hey Fred, >>> The problem seems to be a bit strange. It occurs only if I use >>> Solaris to >>> host my broker. The problem is much more frequent if the server >>> machine is >>> Solaris/x86 rather than Solaris/Sparc. Windows machines are not >>> suffering >>> from this problem. And the problem disappears if i use JNDI to set >>> my >>> connection factories & destinations. Pretty weird! >>> >>> Thanks, >>> Ramit >>> >>> Fred D wrote: >>>> >>>> Maybe try to see where the thresold is ... increase 1 or 2 >>>> subsribers >>>> until it happens. >>>> >>>> A workaround might be to try a network of 2 brokers perhaps to see >>>> if its >>>> a scaling issue. >>>> >>>> Fred >>>> >>>> >>>> Ramit Arora wrote: >>>>> >>>>> Hi, >>>>> I am testing ActiveMQ 5.0 using a Perl Publisher (using >>>>> Net::Stomp) & >>>>> Java Subscribers (Openwire). It works well when the number of >>>>> subscribers >>>>> is low (1 or 2) but when I increase the number of subscribers to >>>>> around >>>>> 10, I face the following problem: >>>>> >>>>> A subscriber shows the following stack trace >>>>> Exception in thread "ActiveMQ Transport: >>>>> tcp://xx.yy.zz.com/nnn.nn.nnn.nn:61616" >>>>> java.lang.ClassCastException: >>>>> org.apache.activemq.command.BrokerId can not be cast to >>>>> org.apache.activemq.command.ConsumerId >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3.MessageMarshaller.tightUnmarshal(MessageMarshaller.java:71) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .ActiveMQMessageMarshaller >>>>> .tightUnmarshal(ActiveMQMessageMarshaller.java:67) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .ActiveMQTextMessageMarshaller >>>>> .tightUnmarshal(ActiveMQTextMessageMarshaller.java:67) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .OpenWireFormat.tightUnmarshalNestedObject(OpenWireFormat.java: >>>>> 452) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .BaseDataStreamMarshaller >>>>> .tightUnmarsalNestedObject(BaseDataStreamMarshaller.java:127) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .MessageDispatchMarshaller >>>>> .tightUnmarshal(MessageDispatchMarshaller.java:72) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.openwire.OpenWireFormat.doUnmarshal(OpenWireFormat.java: >>>>> 361) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java: >>>>> 275) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .transport.tcp.TcpTransport.readCommand(TcpTransport.java: >>>>> 192) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:184) >>>>> at >>>>> org >>>>> .apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java: >>>>> 172) >>>>> at java.lang.Thread.run(Thread.java:619) >>>>> >>>>> The broker shows the following stack trace: >>>>> Exception in thread "ActiveMQ Connection Dispatcher: / >>>>> nnn.nn.nn.nn: >>>>> 39997" >>>>> java.lang.NullPointerException >>>>> at java.lang.System.arraycopy(Native Method) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .transport >>>>> .tcp.TcpBufferedOutputStream.write(TcpBufferedOutputStream.java: >>>>> 89) >>>>> at java.io.DataOutputStream.write(DataOutputStream.java:90) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .BaseDataStreamMarshaller >>>>> .tightMarshalByteSequence2(BaseDataStreamMarshaller.java:433) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3.MessageMarshaller.tightMarshal2(MessageMarshaller.java:173) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .ActiveMQMessageMarshaller >>>>> .tightMarshal2(ActiveMQMessageMarshaller.java:90) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .ActiveMQTextMessageMarshaller >>>>> .tightMarshal2(ActiveMQTextMessageMarshaller.java:90) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .OpenWireFormat.tightMarshalNestedObject2(OpenWireFormat.java:423) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .BaseDataStreamMarshaller >>>>> .tightMarshalNestedObject2(BaseDataStreamMarshaller.java:137) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .openwire >>>>> .v3 >>>>> .MessageDispatchMarshaller >>>>> .tightMarshal2(MessageDispatchMarshaller.java:106) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.openwire.OpenWireFormat.marshal(OpenWireFormat.java:238) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:153) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .transport.InactivityMonitor.oneway(InactivityMonitor.java:157) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.transport.TransportFilter.oneway(TransportFilter.java: >>>>> 82) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java: >>>>> 91) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq.transport.MutexTransport.oneway(MutexTransport.java:40) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .broker.TransportConnection.dispatch(TransportConnection.java: >>>>> 1151) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .broker >>>>> .TransportConnection.processDispatch(TransportConnection.java:766) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .broker.TransportConnection.iterate(TransportConnection.java:801) >>>>> at >>>>> org >>>>> .apache >>>>> .activemq >>>>> .thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) >>>>> at >>>>> org.apache.activemq.thread.DedicatedTaskRunner >>>>> $1.run(DedicatedTaskRunner.java:36) >>>>> >>>>> The broker & the subscriber keep running after this, but the >>>>> broker does >>>>> not deliver messages to that subscriber. Other subscribers work >>>>> fine. >>>>> This problem is repeatedly occuring. I am using SunOS 5.10 on a >>>>> machine >>>>> with 8 processors & 32 GB of RAM. >>>>> Please help! >>>>> >>>>> TIA, >>>>> Ramit >>>>> >>>>> >>>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Null-Pointer-Exception-on-broker-tp16048936s2354p16717003.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >> >> >> > > -- > View this message in context: http://www.nabble.com/Null-Pointer-Exception-on-broker-tp16048936s2354p16717433.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >