From users-return-7163-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Fri Feb 02 12:19:01 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 92242 invoked from network); 2 Feb 2007 12:18:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 12:18:58 -0000 Received: (qmail 65725 invoked by uid 500); 2 Feb 2007 12:19:04 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 65696 invoked by uid 500); 2 Feb 2007 12:19:04 -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 65687 invoked by uid 99); 2 Feb 2007 12:19:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 04:19:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 04:18:55 -0800 Received: by ug-out-1314.google.com with SMTP id m3so735394ugc for ; Fri, 02 Feb 2007 04:18:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N9T1nA8qENLRQ3vgzjL/2FY0xGTbN1c1m/UbUzOWBLNZtkb/bepRBgOP53U1X4GimUaraeIpL+CDncdrpqCHuIlJT0IB/GhpXoAJH3IYkJstgGB+Bv8RVjVmtulH+AB1BRLX1PaggfAPOoq8p+m4llN4qY2PeZhD5Jo6/7WmrL4= Received: by 10.78.185.7 with SMTP id i7mr807390huf.1170418713869; Fri, 02 Feb 2007 04:18:33 -0800 (PST) Received: by 10.78.155.11 with HTTP; Fri, 2 Feb 2007 04:18:33 -0800 (PST) Message-ID: Date: Fri, 2 Feb 2007 12:18:33 +0000 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Network broker fails to start due to JournalLockedException In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Are you absolutely positive that you are not creating a broker automatically via a JMS connection being created with a vm:// transport - before you initialize your broker? i.e. you are actually creating 2 brokers by mistake On 2/1/07, William Blackburn wrote: > I am using two embedded brokers on two nodes and using a network > connector to link them. I thought I had configured AMQ to NOT use the > journal, but now I can start one broker just fine, but when I start > the second, I get a JournalLockedException, which does not impact the > functioning of the local broker, but does fail the network connector > between the two. Please help me understand how to fix this, as there > doesn't to be any journal or lock files created anywhere that I can > find them. Thanks. > > My config file looks like: > > > > > > usageManager="#usageManager" /> > > > discoveryUri="multicast://228.1.2.5:45571" /> > > > > > > class="org.apache.activemq.memory.UsageManager"> > > > > > > And the stack trace is: > > Multicast Discovery Agent Notifier 2007-02-01 13:27:37,511 ERROR > [BrokerService:start] Failed to start ActiveMQ JMS Message Broker. > Reason: org.apache.activeio.journal.active.JournalLockedException: > Journal is already opened by this application. > org.apache.activeio.journal.active.JournalLockedException: Journal is > already opened by this application. > at org.apache.activeio.journal.active.ControlFile.lock > (ControlFile.java:76) > at > org.apache.activeio.journal.active.LogFileManager.initialize > (LogFileManager.java:120) > at org.apache.activeio.journal.active.LogFileManager. > (LogFileManager.java:101) > at org.apache.activeio.journal.active.JournalImpl. > (JournalImpl.java:100) > at > org.apache.activemq.store.DefaultPersistenceAdapterFactory.createJournal > (DefaultPersistenceAdapterFactory.java:198) > at > org.apache.activemq.store.DefaultPersistenceAdapterFactory.getJournal > (DefaultPersistenceAdapterFactory.java:134) > at > org.apache.activemq.store.DefaultPersistenceAdapterFactory.createPersist > enceAdapter(DefaultPersistenceAdapterFactory.java:63) > at > org.apache.activemq.broker.BrokerService.createPersistenceAdapter > (BrokerService.java:968) > at > org.apache.activemq.broker.BrokerService.getPersistenceAdapter > (BrokerService.java:559) > at > org.apache.activemq.broker.BrokerService.createRegionBroker > (BrokerService.java:929) > at org.apache.activemq.broker.BrokerService.createBroker > (BrokerService.java:888) > at org.apache.activemq.broker.BrokerService.getBroker > (BrokerService.java:458) > at org.apache.activemq.broker.BrokerService.start > (BrokerService.java:361) > at > org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect > (VMTransportFactory.java:102) > at > org.apache.activemq.transport.vm.VMTransportFactory.doConnect > (VMTransportFactory.java:48) > at org.apache.activemq.transport.TransportFactory.connect > (TransportFactory.java:63) > at > org.apache.activemq.network.NetworkConnector.createLocalTransport > (NetworkConnector.java:282) > at > org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd > (DiscoveryNetworkConnector.java:109) > at > org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgen > t$2.run(MulticastDiscoveryAgent.java:341) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor > $Worker.runTask(ThreadPoolExecutor.java:665) > at > edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor > $Worker.run(ThreadPoolExecutor.java:690) > at java.lang.Thread.run(Unknown Source) > Multicast Discovery Agent Notifier 2007-02-01 13:27:37,516 WARN > [NetworkConnector:onServiceAdd] Could not connect to local URI: vm:? > network=true: Journal is already opened by this application. > -- James ------- http://radio.weblogs.com/0112098/