lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-9495) AIOBE with confusing message for incomplete sort spec in Streaming Expression
Date Sat, 31 Dec 2016 01:36:58 GMT

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

ASF subversion and git services commented on SOLR-9495:
-------------------------------------------------------

Commit 61676188d7f592f697933b6051806c0bc55b406a in lucene-solr's branch refs/heads/master
from [~joel.bernstein]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6167618 ]

SOLR-9495: AIOBE with confusing message for incomplete sort spec in Streaming Expression


> 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


Mime
View raw message