lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3362) FacetComponent throws NPE when doing distributed query
Date Wed, 18 Apr 2012 14:01:59 GMT

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

Yonik Seeley commented on SOLR-3362:
------------------------------------

Oh yuck... I just used netcat to listen on port 8985 and changed the shards parameter to that
to see just what was being sent.
What a waste of space!  And that is where the charset is getting hacked...

{code}
/opt/code/lusolr/solr/example/exampledocs$ nc -l 8985
POST /solr/select HTTP/1.1
User-Agent: Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
Content-Charset: UTF-8
Accept-Charset: UTF-8
Content-Length: 1217
Content-Type: multipart/form-data; boundary=eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Host: localhost:8985
Connection: Keep-Alive

--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="rows"

10
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="facet"

true
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="facet.query"

{!term f=id}wx?yz
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="q"

*:*
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="start"

0
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="fsv"

true
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="fl"

id,score
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="distrib"

false
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="isShard"

true
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="shard.url"

localhost:8985/solr
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="NOW"

1334757315277
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="wt"

javabin
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3
Content-Disposition: form-data; name="version"

2
--eADQ-PDh-HqmlsJi5PyvlmPclUWpz3--
{code}
                
> FacetComponent throws NPE when doing distributed query
> ------------------------------------------------------
>
>                 Key: SOLR-3362
>                 URL: https://issues.apache.org/jira/browse/SOLR-3362
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.0
>         Environment: RHEL 
> lucene svn revision 1308309
>            Reporter: Jamie Johnson
>
> When executing a query against a field in my index I am getting the following exception
> The query I am executing is as follows:
> http://host:port/solr/collection1/select?q=bob&facet=true&facet.field=organization
> debugging the FacetComponent line 489 sfc is null
> SEVERE: java.lang.NullPointerException
>        at org.apache.solr.handler.component.FacetComponent.refineFacets(FacetComponent.java:489)
>        at org.apache.solr.handler.component.FacetComponent.handleResponses(FacetComponent.java:278)
>        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:307)
>        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1550)
>        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:442)
>        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:263)
>        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
>        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)
>        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
>        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
>        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
>        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
>        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
>        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
>        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
>        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
>        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
>        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
>        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
>        at org.eclipse.jetty.server.Server.handle(Server.java:351)
>        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
>        at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:47)
>        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:890)
>        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:944)
>        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:634)
>        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
>        at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:66)
>        at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:254)
>        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
>        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)
>        at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message