[ https://issues.apache.org/jira/browse/DERBY-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612556#comment-17612556 ]
Liam Sharp commented on DERBY-7059: ----------------------------------- I work with [~dangonz] and can offer a bit more info on this, but not much. We've since updated our product to run with Java 17.0.2, so the stack trace looks a bit different now (This is Derby version 10.15.2.0): {code:java} java.lang.NullPointerException: Cannot invoke "org.apache.derby.iapi.sql.execute.ExecutionContext.getExecutionFactory()" because "<local1>" is null at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getExecutionFactory(IndexRowGenerator.java:401) at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getIndexRowTemplate(IndexRowGenerator.java:125) at org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getNullIndexRow(IndexRowGenerator.java:143) at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.updateIndexStatsMinion(IndexStatisticsDaemonImpl.java:479) at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.generateStatistics(IndexStatisticsDaemonImpl.java:354) at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.processingLoop(IndexStatisticsDaemonImpl.java:934) at org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.run(IndexStatisticsDaemonImpl.java:850) at java.base/java.lang.Thread.run(Thread.java:833){code} this is in the thread named: {code:java} derby.index-stat-thread,5,derby.daemons{code} This isn't something we can reproduce I'm afraid. We've seen this from customers on the following platforms (as reported by Java): 'Windows 10' Version '10.0' Arch 'amd64' 'Windows Server 2016' Version '10.0' Arch 'amd64' 'Mac OS X' Version '12.2.1' Arch 'x86_64' > NullPointerException IndexRowGenerator.getExecutionFactory > ---------------------------------------------------------- > > Key: DERBY-7059 > URL: https://issues.apache.org/jira/browse/DERBY-7059 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.14.2.0 > Reporter: Daniel Gonzalez > Priority: Major > > We have had a couple of customers which have experienced the crash show below > in the derby.index-stat-thread. > We can't recreate the issue locally, but what may be the cause of this? Is > there anything in particular that may be provoking this? > > {{java.lang.NullPointerException}}{{at > org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getExecutionFactory(Unknown > Source)}}{{at > org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getIndexRowTemplate(Unknown > Source)}}{{at > org.apache.derby.iapi.sql.dictionary.IndexRowGenerator.getNullIndexRow(Unknown > Source)}}{{at > org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.updateIndexStatsMinion(Unknown > Source)}}{{at > org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.generateStatistics(Unknown > Source)}}{{at > org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.processingLoop(Unknown > Source)}}{{at > org.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.run(Unknown > Source)}}{{at java.lang.Thread.run(Thread.java:748)}} -- This message was sent by Atlassian Jira (v8.20.10#820010)