Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BF84DAD1 for ; Wed, 3 Oct 2012 20:10:08 +0000 (UTC) Received: (qmail 33682 invoked by uid 500); 3 Oct 2012 20:10:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 33657 invoked by uid 500); 3 Oct 2012 20:10:08 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 33569 invoked by uid 99); 3 Oct 2012 20:10:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 20:10:08 +0000 Date: Thu, 4 Oct 2012 07:10:08 +1100 (NCT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: <449327122.160628.1349295008067.JavaMail.jiratomcat@arcas> In-Reply-To: <24739405.26276.1346473089046.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (DERBY-5916) java.lang.NullPointerException org.apache.derby.impl.store.raw.data.BaseDataFileFactory.stop() connecting to network server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-5916: ----------------------------------- Attachment: DERBY5916_patch1_diff.txt Attaching a patch with simple change to look if storageFactory is null before calling shutdown on it in BaseDataFileFactory.stop(). This should not break anything but I am running the tests just in case. > java.lang.NullPointerException org.apache.derby.impl.store.raw.data.BaseDataFileFactory.stop() connecting to network server > --------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5916 > URL: https://issues.apache.org/jira/browse/DERBY-5916 > Project: Derby > Issue Type: Bug > Components: Store > Reporter: Kathey Marsden > Assignee: Mamta A. Satoor > Labels: derby_triage10_10 > Attachments: DERBY5916_patch1_diff.txt > > > I got a report of the exception below trying to connect to database with absolute path and network server and the database name attribute. I haven't gotten information on the derby version or platform, Below is the url I received with some characters replaced. > ij> connect 'jdbc:derby://localhost:1527/;databaseName=/home/uxxxx/Installs/hxxx_ext/mxxxxxxxx_db;create=true' ; > java.lang.NullPointerException > at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.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.bootService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source) > at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source) > at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source) > at org.apache.derby.impl.jdbc.EmbedConnection.(Unknown Source) > at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source) > at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source) > at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source) > at org.apache.derby.impl.drda.Database.makeConnection(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.getConnFromDatabaseName(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.verifyUserIdPassword(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseSECCHK(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.parseDRDAConnection(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source) > at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source) > Cleanup action completed > 2012-08-31 22:41:09.216 GMT Thread[DRDAConnThread_10,5,main] (DATABASE = ), (DRDAID = {1}), Java exception: ': java.lang.NullPointerException'. > I wanted to go ahead and file it even without much information as I noticed there was a similar issue reported on the list but never filed: > http://old.nabble.com/Random-DRDA-Error-on-IBM-J9-JVM-td33532717.html#a33532717 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira