You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2016/12/27 16:56:58 UTC

[jira] [Assigned] (SOLR-9495) AIOBE with confusing message for incomplete sort spec in Streaming Expression

     [ https://issues.apache.org/jira/browse/SOLR-9495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joel Bernstein reassigned SOLR-9495:
------------------------------------

    Assignee: Joel Bernstein

> AIOBE with confusing message for incomplete sort spec in Streaming Expression
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-9495
>                 URL: https://issues.apache.org/jira/browse/SOLR-9495
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search
>    Affects Versions: 6.2
>         Environment: 6.2.0_RC1
>            Reporter: Gus Heck
>            Assignee: Joel Bernstein
>            Priority: Minor
>         Attachments: SOLR-9495.patch
>
>
> I was thinking of using streaming expressions for something, and started to play around with it, but I made a bonehaded mistake, and got an error that's pretty confusing: 
> {code}{"result-set":{"docs":[
> {"EXCEPTION":"1","EOF":true}]}}{code}
> This turns out to be due to: 
> {code}
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> 	at org.apache.solr.client.solrj.io.stream.expr.StreamFactory.createInstance(StreamFactory.java:316)
> 	... 33 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> 	at org.apache.solr.client.solrj.io.stream.CloudSolrStream.parseComp(CloudSolrStream.java:334)
> 	at org.apache.solr.client.solrj.io.stream.CloudSolrStream.init(CloudSolrStream.java:274)
> 	at org.apache.solr.client.solrj.io.stream.CloudSolrStream.<init>(CloudSolrStream.java:181)
> 	... 38 more
> {code}
> The mistake I made was omitting a direction from the sort spec. Attaching trivial patch to provide a better error message...



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org