Barry Oglesby created GEODE-2951:
------------------------------------

             Summary: A gfsh lucene query specifying --pageSize fails with a 
NullPointerException
                 Key: GEODE-2951
                 URL: https://issues.apache.org/jira/browse/GEODE-2951
             Project: Geode
          Issue Type: Bug
          Components: lucene
            Reporter: Barry Oglesby


A gfsh lucene query specifying {{--pageSize}} fails with a NullPointerException:

{noformat}
gfsh>search lucene --name=index --region=data --queryStrings=NYPD 
--defaultField=Agency --pageSize=10
Could not process command due to GemFire error. An error occurred while 
searching lucene index across the Geode cluster: null
{noformat}
This exception is logged in the locator.log:
{noformat}
[info 2017/05/18 12:42:22.317 PDT locator <RMI TCP Connection(2)-192.168.2.4> 
tid=0x7f] null
java.lang.NullPointerException
        at 
org.apache.geode.cache.lucene.internal.cli.LuceneIndexCommands.displayResults(LuceneIndexCommands.java:476)
        at 
org.apache.geode.cache.lucene.internal.cli.LuceneIndexCommands.searchIndex(LuceneIndexCommands.java:299)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
{noformat}
The same query without the {{--pageSize=10}} setting works fine.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to