Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE3C79262 for ; Wed, 4 Apr 2012 23:32:06 +0000 (UTC) Received: (qmail 64256 invoked by uid 500); 4 Apr 2012 23:32:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 64231 invoked by uid 500); 4 Apr 2012 23:32:06 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 64223 invoked by uid 99); 4 Apr 2012 23:32:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 23:32:06 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [98.139.91.76] (HELO nm6.bullet.mail.sp2.yahoo.com) (98.139.91.76) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Apr 2012 23:31:56 +0000 Received: from [98.139.91.63] by nm6.bullet.mail.sp2.yahoo.com with NNFMP; 04 Apr 2012 23:31:32 -0000 Received: from [98.139.44.88] by tm3.bullet.mail.sp2.yahoo.com with NNFMP; 04 Apr 2012 23:31:32 -0000 Received: from [127.0.0.1] by omp1025.access.mail.sp2.yahoo.com with NNFMP; 04 Apr 2012 23:31:32 -0000 X-Yahoo-Newman-Id: 878818.92770.bm@omp1025.access.mail.sp2.yahoo.com Received: (qmail 59337 invoked from network); 4 Apr 2012 23:31:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EfZoHPnCSz4HLHT8CuiJJgJ/mUt/6WWvALdyHacbwCdVuo2cRiABg53zfvidEM9I5sIakyrQRQrjWNiYE7CPFGc1TY3nyN7QjecUAnXhUhleRtsjQkXCzVwSN1wgQpIAmznc9n3C/NkriARzSyU5aImaJjTPvSQrzJKUCsSLZYE= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1333582292; bh=z4/fE9YTWnOzrkktU+N35i56tpHmelGxMmCFi0eqQ6E=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=4wpWEoiLUKW99sDe1tLwDaW2Q8ItCiVhAJ865pTsRm4aAFISUDgb3c8hWRI7MK/tbHQ9Xvj5s+wKseSG8scNcfpWi55sp+sSc6ghAhr+tz4XI/tbgOKEBAffbx32/8DXVxNMXMh/YpBEQ2Tbpr0bM89jNnwhtNV1K63rmq9nniU= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: RQU4YDQVM1nP7Hw1L4m2xRLGixr6kDMW6pW_JA.kevuPlgT HSYVPcaSCY_OOUbi1bQu1LPvy3_7nP__O0rl3luBtesxxuJ49XNcVHlWpGMD CMl2NCMv5M6gj13KJAB3jgfncjtlpR2Ugqn30fiWWwIqtsivr9lC.52eDU0p tUKmXD8qZgm2osIJbmHlRkf2B3V6_a.MT5nEWb5F3YWvjF_wKLkoIQpAhJ3w 0v1n1f4Uf6hrsZhk_WVD6vBoY0pxWOpc0Zp9IvATmOJUGU89yLB6zQzYQ9F1 8SwYSirRifZewcpwAzjLq6BMAuTI74yNj816OrdEhp0QasKizWMz8f3_74UB Zng3l6nF6KqheBrnQJvhaTPTVQJKJcwiOlRjiobYZjv8lHaUBpPehAVeRP3w gaby7uVU0qqRDpGU1CO1PAUb4q8JfjBeL8Gu.bRr2FO_bS_XAuzRpVaDi1DA PqjRc.EX.Hsp5s8zK2D_RbUWzy4_BUWmqUL2cNqNxNVd1z9SwQ4kSrLawbh1 KIPlS08ntrjotQ_ClaKP0Haz1u9ewLCyftANO X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- Received: from [192.168.1.71] (kmarsdenderby@108.231.78.45 with plain) by smtp105.sbc.mail.gq1.yahoo.com with SMTP; 04 Apr 2012 16:31:31 -0700 PDT Message-ID: <4F7CD9CC.2070509@sbcglobal.net> Date: Wed, 04 Apr 2012 16:31:24 -0700 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Derby Discussion Subject: NPE in Store on boot (was Re: Random DRDA Error on IBM J9 JVM) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/4/2012 12:43 PM, Brandon L. Duncan wrote: > Peter, definitely using the 10.8.2.2 jars. The scenario, which I'm in > the process of parsing down to share on JIRA is a single shell script > called from qsh to start the network server, run ij, and finally > shutdown the network server. The same classpath is shared through all > three java calls. > Looking at the stack trace. I think we are losing the initial boot exception that leads to the shutdown because of the NullPointerException. As a quick hack to see what the exception is you can put a t.printStackTrace() about line 1829 of BaseMonitor. } catch (Throwable t) { ..... if (ts != null) { ts.shutdown(); < It is in here that the NPE occurs. synchronized (this) { services.remove(ts); } I'd check the database and make sure it is consistent [1] and also if you have a reproduction that you cannot share, perform JIT diagnostics. First disable JIT with -Xint and see if it still reproduces. Hopefully your reproduction starts with a new database each time. I think you should go ahead and file the Jira and include the derby.log, the jvm information and as much information as you can and add the reproduction once you get it to a state where you can attach. Thanks Kathey [1] http://wiki.apache.org/db-derby/DatabaseConsistencyCheck > action starting > java.lang.NullPointerException > at > org.apache.derby.impl.store.raw.data.BaseDataFileFactory.stop(BaseDataFileFactory.java:541) > at > org.apache.derby.impl.services.monitor.TopService.stop(TopService.java:443) > at > org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java:394) > at > org.apache.derby.impl.services.monitor.BaseMonitor.bootService(BaseMonitor.java:1845) > at > org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(BaseMonitor.java:1682) > at > org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(BaseMonitor.java:1560) > at > org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(BaseMonitor.java:979) > at > org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Monitor.java:550) > at > org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(EmbedConnection.java:2697) > at > org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.java:385) > at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Driver40.java:70) > at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:248) > at org.apache.derby.jdbc.EmbeddedDriver.connect(EmbeddedDriver.java:126) > at org.apache.derby.impl.drda.Database.makeConnection(Database.java:257) > at > org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(DRDAConnThread.java:1447) > at > org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(DRDAConnThread.java:1397) > at > org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(DRDAConnThread.java:3248) > at > org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(DRDAConnThread.java:1177) > at > org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:982) > at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:295)