You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Edward Howe (JIRA)" <ji...@apache.org> on 2015/09/21 14:48:04 UTC

[jira] [Comment Edited] (DERBY-6833) NPE in IndexRowGenerator.getExecutionFactory()

    [ https://issues.apache.org/jira/browse/DERBY-6833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900573#comment-14900573 ] 

Edward Howe edited comment on DERBY-6833 at 9/21/15 12:47 PM:
--------------------------------------------------------------

Question: I'm looking at ContextService.stop().  It looks like the factory member is accessible after its members are nulled but before the member itself is nulled. Could this be causing getFactory() to return null rather than throw a ShutdownException?  (I see the fix for DERBY-5088 has a comment expecting ContextService.getFactory() to possibly fail with a ShutdownException, but not by returning null.)


was (Author: ehowe):
Question: I'm looking at ContextService.stop().  It looks like the factory member is accessible after its members are nulled but before the member itself is nulled. Could this be causing getFactory() to return null rather than throw a ShutdownException?

> NPE in IndexRowGenerator.getExecutionFactory()
> ----------------------------------------------
>
>                 Key: DERBY-6833
>                 URL: https://issues.apache.org/jira/browse/DERBY-6833
>             Project: Derby
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 10.11.1.1
>         Environment: Tue Sep 08 19:39:37 EDT 2015:
> Booting Derby version The Apache Software Foundation - Apache Derby - 10.11.1.1 - (1616546): instance a816c00e-014f-af54-3c5f-0000350a3da0 
> on database directory /mnt/raid0/jenkins/grid/main/deployment/integration-tests/build/grid/var/apps/archive/database/jyrusNodeDb with class loader sun.misc.Launcher$AppClassLoader@7852e922 
> Loaded from file:/mnt/raid0/jenkins/grid/main/deployment/integration-tests/build/grid/lib/derby-10.11.1.1.jar
> java.vendor=Oracle Corporation
> java.runtime.version=1.8.0_45-b14
> user.dir=/mnt/raid0/jenkins/grid/main/deployment/integration-tests/build/grid/bin
> os.name=Linux
> os.arch=amd64
> os.version=2.6.32-431.29.2.el6.x86_64
> derby.system.home=null
> Database Class Loader started - derby.database.classpath=''
>            Reporter: Edward Howe
>            Priority: Critical
>
> Derby crashed with the following stack trace while running our application's integration tests.  This is the first time I've seen this, and cannot reproduce it.  It happened during our application's startup.  The embedded database had been opened by this point, and some initial queries had been executed.  
> java.lang.NullPointerException: null
> 	at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getExecutionFactory(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getIndexRowTemplate(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getNullIndexRow(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.updateIndexStatsMinion(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.generateStatistics(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.processingLoop(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.run(Unknown Source) ~[derby-10.11.1.1.jar:na]
> 	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_45]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)