Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 73120 invoked from network); 23 Jun 2008 12:49:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2008 12:49:06 -0000 Received: (qmail 93558 invoked by uid 500); 23 Jun 2008 12:49:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 93535 invoked by uid 500); 23 Jun 2008 12:49:06 -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 93524 invoked by uid 99); 23 Jun 2008 12:49:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2008 05:49:06 -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 (athena.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, 23 Jun 2008 12:48:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KAlTG-0003Y7-1C for users@activemq.apache.org; Mon, 23 Jun 2008 05:48:34 -0700 Message-ID: <18067095.post@talk.nabble.com> Date: Mon, 23 Jun 2008 05:48:34 -0700 (PDT) From: soloist To: users@activemq.apache.org Subject: NullPointerException, journaledJDBC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: v.soloist@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, i could not decide if this is a bug or not so i needed to discuss it here to make sure. the following is my persistenceAdapter configuration what i do is, i stop the context containing this broker configuration and after the broker shuts down, there is a repeating exception: ActiveMQ Cleanup Timer ERROR org.apache.activemq.store.jdbc.DefaultDatabaseLocker - Failed to update database lock: java.lang.NullPointerException java.lang.NullPointerException at org.apache.activemq.store.jdbc.DefaultDatabaseLocker.keepAlive(DefaultDatabaseLocker.java:102) at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.databaseLockKeepAlive(JDBCPersistenceAdapter.java:458) at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter$3.run(JDBCPersistenceAdapter.java:260) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) ActiveMQ Cleanup Timer INFO org.apache.activemq.store.jdbc.JDBCPersistenceAdapter - No longer able to keep the exclusive lock so giving up being a master ActiveMQ Cleanup Timer WARN org.apache.activemq.store.jdbc.JDBCPersistenceAdapter - Failed to stop broker I was just killing the entire application before so i did not see this problem. And this does not happen when i set useDatabaseLock to true because it finds the datasource to remove the lock but i am trying to get the lock out of the database to the journal. Do you have any ideas? Thanks in advance -- View this message in context: http://www.nabble.com/NullPointerException%2C-journaledJDBC-tp18067095p18067095.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.