From derby-user-return-14878-apmail-db-derby-user-archive=db.apache.org@db.apache.org Mon Jan 28 21:29:35 2013 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 AB515ED8C for ; Mon, 28 Jan 2013 21:29:35 +0000 (UTC) Received: (qmail 23353 invoked by uid 500); 28 Jan 2013 21:29:35 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 23281 invoked by uid 500); 28 Jan 2013 21:29:35 -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 23273 invoked by uid 99); 28 Jan 2013 21:29:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 21:29:35 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.94.237.158] (HELO nm6-vm0.access.bullet.mail.mud.yahoo.com) (66.94.237.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2013 21:29:26 +0000 Received: from [66.94.237.195] by nm6.access.bullet.mail.mud.yahoo.com with NNFMP; 28 Jan 2013 21:29:05 -0000 Received: from [98.139.221.56] by tm6.access.bullet.mail.mud.yahoo.com with NNFMP; 28 Jan 2013 21:29:05 -0000 Received: from [127.0.0.1] by smtp109.sbc.mail.bf1.yahoo.com with NNFMP; 28 Jan 2013 21:29:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1359408544; bh=kfy+vY4DKqxO9adm16abh1MGwtKmZslwncOxdyr6HJ4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type; b=RWIjVknXKIOeoxdvlsHYjSNHfliafOk40OVM6g7lVpgXFvDZIuW3o/oLaLqoGoqQcFxvzeViJy1oPkaMSqXoO4wTo2tlGLFUI0WyDKuP2DqFPEoAP30pIu6/XRmqJh4gtB+dSQpDE/khhBAcS3R+lJEJ6+APOSJNJhmEl3kD5aA= X-Yahoo-Newman-Id: 967810.74992.bm@smtp109.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: fl2EdeoVM1lUv8OTugylNXiCH0mtKT_zmS5itNtQ.e5c5ME BngjGKhItpOlsvZXoGUMAn9hhqQ_gf725eKNhcocXA_M7GTXZkORHY56e.yW mqkgZ1AyG5DWtKeNb7P8paLSxGFLo5QoqLK90rztsRPeF50hTNRmDaiPSfFv 5KM4LM0.o7rxBAqrmZg9bDYvtoIjLEY7qSS9S8cwqSJtWF3oBZgtg.5gPt_U TL2LfATeiqufveMlTq02.2lTPVa4iX7.OmlUIklfmGAAjU8zby8lPVUAP3o1 Tfau0m9MklZa3SjF7s2xsVdHsmtWYt59WSWZKtt0tD5yOerCYUklwjlfJ3xn cIiwzcxcQHc69bIkjdcIWtUbgIL4WHyrIKDLNCjjlD1Pbl2trY_N9NAMZVeF lzMJtJ5afNzRWP.H2CB640_Ik9FKRukptDD_MH6y3aq4PtYX.Zc1fxt_HPNR _M57snhchGNrG2I.0zrGZxpjLNFMxXDVgrCWrCWd9h3HITs48Pz4u2tQy0s8 P82oYy4vvLzdc60lviOgW24NwAJhmcjt9vT9pb3uSgbdPNAX59zizp8M_Ep0 P6GGLf2xSybg- X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- Received: from [192.168.1.71] (kmarsdenderby@108.231.78.45 with plain) by smtp109.sbc.mail.bf1.yahoo.com with SMTP; 28 Jan 2013 13:29:04 -0800 PST Message-ID: <5106ED8E.3050304@sbcglobal.net> Date: Mon, 28 Jan 2013 13:28:46 -0800 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Derby Discussion CC: Oskar Zinger Subject: Re: NullPointerException when Shuting Down Derby References: <1359406360.84496.YahooMailNeo@web162803.mail.bf1.yahoo.com> In-Reply-To: <1359406360.84496.YahooMailNeo@web162803.mail.bf1.yahoo.com> Content-Type: multipart/alternative; boundary="------------010002000700060802000902" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------010002000700060802000902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 1/28/2013 12:52 PM, Oskar Zinger wrote: > When I do the following it sometimes returns a NullPointerException: > > DriverManager.getConnection("jdbc:derby:;shutdown=true;deregister=false"); > > Here is the exception stack trace: > > Caused by: java.lang.NullPointerException > at org.apache.derby.impl.store.raw.xact.XactFactory.add(Unknown Source) > at > org.apache.derby.impl.store.raw.xact.XactFactory.pushTransactionContext(Unknown > Source) > at > org.apache.derby.impl.store.raw.xact.XactFactory.startInternalTransaction(Unknown > Source) > at > org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown > Source) > at > org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source) > at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source) > at org.apache.derby.impl.services.monitor.TopService.stop(Unknown > Source) > at > org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source) > at > org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown > Source) > at > org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown > Source) > at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) > at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:399) > at java.sql.DriverManager.getConnection(DriverManager.java:350) > > Does anyone know why this is happening? > > I am using Derby 10.8.2.3 > > Thanks, > Oskar Zinger https://issues.apache.org/jira/browse/DERBY-5916 was backported to 10.8 with revision 1395186 and looks similar I suggest you pick up 10.8.3 that has that fix. --------------010002000700060802000902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 1/28/2013 12:52 PM, Oskar Zinger wrote:
When I do the following it sometimes returns a NullPointerException:

      DriverManager.getConnection("jdbc:derby:;shutdown=true;deregister=false");

Here is the exception stack trace:

Caused by: java.lang.NullPointerException
        at org.apache.derby.impl.store.raw.xact.XactFactory.add(Unknown Source)
        at org.apache.derby.impl.store.raw.xact.XactFactory.pushTransactionContext(Unknown Source)
        at org.apache.derby.impl.store.raw.xact.XactFactory.startInternalTransaction(Unknown Source)
        at org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(Unknown Source)
        at org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(Unknown Source)
        at org.apache.derby.impl.store.raw.RawStore.stop(Unknown Source)
        at org.apache.derby.impl.services.monitor.TopService.stop(Unknown Source)
        at org.apache.derby.impl.services.monitor.TopService.shutdown(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
        at org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(Unknown Source)
        at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
        at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(DriverManager.java:399)
        at java.sql.DriverManager.getConnection(DriverManager.java:350)

Does anyone know why this is happening?

I am using Derby 10.8.2.3

Thanks,
Oskar Zinger

https://issues.apache.org/jira/browse/DERBY-5916 was backported to 10.8 with revision 1395186 and looks similar
I suggest you pick up 10.8.3 that has that fix.

--------------010002000700060802000902--