[ https://issues.apache.org/jira/browse/DERBY-6062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15679547#comment-15679547 ]
Bryan Pendleton commented on DERBY-6062: ---------------------------------------- The email link in the description no longer seems to work. Here's an alternate email archive link: http://mail-archives.apache.org/mod_mbox/db-derby-user/201301.mbox/%3C1359406360.84496.YahooMailNeo%40web162803.mail.bf1.yahoo.com%3E There were some hints in the email thread that the replication functionality might be implicated: http://mail-archives.apache.org/mod_mbox/db-derby-user/201301.mbox/%3c1359576790.64255.yahoomail...@web162805.mail.bf1.yahoo.com%3E > NullPointerException is possible during shutdown of Derby > --------------------------------------------------------- > > Key: DERBY-6062 > URL: https://issues.apache.org/jira/browse/DERBY-6062 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.8.2.2, 10.8.3.0 > Reporter: Oskar Zinger > Priority: Critical > Labels: derby_triage10_11 > > 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.x > The issues comes from the following code in > org.apache.derby.impl.store.raw.xact.XactFactory > add() method: > protected void add(Xact xact, boolean excludeMe) > { > ttab.add(xact, excludeMe); > } > seems ttab is null > Here is the thread I started with some more information: > http://comments.gmane.org/gmane.comp.apache.db.derby.user/14788 > Any help in resolution of this is greatly appreciated. > Thanks! > Oskar Zinger -- This message was sent by Atlassian JIRA (v6.3.4#6332)