Explain plan fails on NPE when query with > on Space document is used

Description

Caused by: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class java.lang.NullPointerException:1
StackTrace: java.lang.NullPointerException
at com.gigaspaces.internal.query.AbstractQueryIndex.getIndexedEntriesByType(AbstractQueryIndex.java:136)
at com.j_spaces.core.cache.CacheManager.getEntriesMinIndexExtended(CacheManager.java:4340)
at com.j_spaces.core.cache.CacheManager.getScannableEntriesMinIndexExtended(CacheManager.java:4597)
at com.j_spaces.core.cache.CacheManager.getMatchingMemoryEntriesForScanning(CacheManager.java:1843)
at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4159)
at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4011)
at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2383)
at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2223)
at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2069)
at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2124)
at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:41)
at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:32)
at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:83)
at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1825)
at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:592)
at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter$AsyncOperationExecutor.execute(EmbeddedRemoteOperationRouter.java:170)
at com.gigaspaces.internal.utils.concurrent.ContextClassLoaderRunnable.run(ContextClassLoaderRunnable.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
]
at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:220)
at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:114)
at com.j_spaces.jdbc.parser.AndNode.accept(AndNode.java:79)
at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:239)
at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:345)
at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:229)
... 27 more
Caused by: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class java.lang.NullPointerException:1
StackTrace: java.lang.NullPointerException
at com.gigaspaces.internal.query.AbstractQueryIndex.getIndexedEntriesByType(AbstractQueryIndex.java:136)
at com.j_spaces.core.cache.CacheManager.getEntriesMinIndexExtended(CacheManager.java:4340)
at com.j_spaces.core.cache.CacheManager.getScannableEntriesMinIndexExtended(CacheManager.java:4597)
at com.j_spaces.core.cache.CacheManager.getMatchingMemoryEntriesForScanning(CacheManager.java:1843)
at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4159)
at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4011)
at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2383)
at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2223)
at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2069)
at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2124)
at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:41)
at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:32)
at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:83)
at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1825)
at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:592)
at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter$AsyncOperationExecutor.execute(EmbeddedRemoteOperationRouter.java:170)
at com.gigaspaces.internal.utils.concurrent.ContextClassLoaderRunnable.run(ContextClassLoaderRunnable.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Workaround

None

Acceptance Test

com.gigaspaces.test.support.ubs.case00011147.MultiIndexExplanPlanTest

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

None

Fix versions

Commitment Version/s

None

Due date

None

Product

None

Edition

None

Platform

All
Configure