db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Katherine Marsden <kmarsdende...@sbcglobal.net>
Subject Re: NullPointerException when Shuting Down Derby
Date Mon, 28 Jan 2013 21:28:46 GMT
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.


Mime
View raw message