Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 93253 invoked from network); 19 May 2008 13:49:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 13:49:45 -0000 Received: (qmail 11037 invoked by uid 500); 19 May 2008 13:49:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 10989 invoked by uid 500); 19 May 2008 13:49:43 -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 10763 invoked by uid 99); 19 May 2008 13:49:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 06:49:41 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 13:48:46 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Jy5jf-0006oA-CO for users@activemq.apache.org; Mon, 19 May 2008 06:49:07 -0700 Message-ID: <17316709.post@talk.nabble.com> Date: Mon, 19 May 2008 06:49:07 -0700 (PDT) From: odonnell To: users@activemq.apache.org Subject: Re: Using ActiveMQ in java applets In-Reply-To: <15140178.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: odonnell_darren@yahoo.co.uk References: <15140178.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have exactly the same problem and stack trace when using ActiveMQ 5.0.0 The applet runs perfectly first time and I am cleaning up my resources correctly when the applet is destroyed. Subsequently loading the applet within the same browser session causes the problem described below. If the browser is closed and reopened then the applet will run correctly again. The problem exists in both Internet Explorer 7 and FireFox 2.0.0.14 If you found a solution to this problem then please let me know. Thanks. InquisitiveAlex wrote: > > Hello. I am trying to use Active MQ 4.1 to create applet, which listen JMS > messages. I have several pages with this applet. When applet starts it > creates connection, topic, session and subscriber. When applet stops, it > closes them. However, when I open and close web pages, where applet > presents, IllegalStateException occurs. > > Exception in thread "ActiveMQ Transport: tcp:///127.0.0.2:61616" > java.lang.IllegalStateException: Timer already cancelled. > at java.util.Timer.sched(Timer.java:354) > at java.util.Timer.scheduleAtFixedRate(Timer.java:296) > at > org.apache.activemq.thread.Scheduler.executePeriodically(Scheduler.java:48) > at > org.apache.activemq.transport.InactivityMonitor.startMonitorThreads(InactivityMonitor.java:186) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:128) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) > at > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:185) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172) > at java.lang.Thread.run(Thread.java:595) > > And then: > > javax.jms.JMSException: Wire format negotiation timeout: peer did not send > his wire format. > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1183) > at > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262) > at > org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:292) > ... > Caused by: java.io.IOException: Wire format negotiation timeout: peer did > not send his wire format. > at > org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:85) > at > org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) > at > org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:70) > at > org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:75) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1172) > ... 4 more > After that applet can not receive any message, even if connection > reopened. > Please help. > -- View this message in context: http://www.nabble.com/Using-ActiveMQ-in-java-applets-tp15140178s2354p17316709.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.