lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: Json facet query error "null:java.lang.IllegalArgumentException"
Date Tue, 22 Dec 2015 15:15:36 GMT
This was a generic query-forwarding bug in Solr, that was recently fixed.
Not sure the JIRA now... what version are you using?
-Yonik


On Tue, Dec 22, 2015 at 10:11 AM, Yago Riveiro <yago.riveiro@gmail.com> wrote:
> Hi,
>
> I'm hitting an error when a try to run a json facet query in a node that
> doesn't have any shard that belongs to collection. The same query using
> using the legacy facet method works.
>
> http://devel-16:8983/solr/collection-perf/query?rows=0&q=*:*&json.facet={label:{type:terms,field:url,limit:-1,sort:{index:asc},numBuckets:true}}
>
> Error:
> HTTP ERROR 500
>
> Problem accessing /solr/collection-perf/select. Reason:
>
>     {msg=Illegal character in query at index 102:
> http://devel-15:8983/solr/collection-perf/select?rows=0&q=date:20150101&json.facet={label:{type:terms,field:url_encoded,limit:-1,sort:{index:asc}}}&wt=json,trace=java.lang.IllegalArgumentException:
> Illegal character in query at index 102:
> http://devel-15:8983/solr/collection-perf/select?rows=0&q=date:20150101&json.facet={label:{type:terms,field:url_encoded,limit:-1,sort:{index:asc}}}&wt=json
>         at java.net.URI.create(URI.java:859)
>         at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)
>         at org.apache.solr.servlet.HttpSolrCall.remoteQuery(HttpSolrCall.java:535)
>         at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:446)
>         at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:214)
>         at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:179)
>         at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
>         at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>         at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>         at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>         at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>         at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>         at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>         at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>         at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>         at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>         at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>         at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
>         at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>         at org.eclipse.jetty.server.Server.handle(Server.java:499)
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
>         at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>         at
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>         at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>         at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.URISyntaxException: Illegal character in query at index
> 102:
> http://devel-15:8983/solr/collection-perf/select?rows=0&q=date:20150101&json.facet={label:{type:terms,field:url_encoded,limit:-1,sort:{index:asc}}}&wt=json
>         at java.net.URI$Parser.fail(URI.java:2829)
>         at java.net.URI$Parser.checkChars(URI.java:3002)
>         at java.net.URI$Parser.parseHierarchical(URI.java:3092)
>         at java.net.URI$Parser.parse(URI.java:3034)
>         at java.net.URI.<init>(URI.java:595)
>         at java.net.URI.create(URI.java:857)
>         ... 25 more
> ,code=500}
> Powered by Jetty://
>
>
>
> -----
> Best regards
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Json-facet-query-error-null-java-lang-IllegalArgumentException-tp4246523.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message