You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sivaprasad <si...@echidnainc.com> on 2010/11/18 07:21:32 UTC

Dismax is failing with json response writer

Hi,

I am using dismax query parser.When i want the response in JSON, iam giving
wt=json.Here it is throwing the below exception.

HTTP Status 500 - null java.lang.NullPointerException at
org.apache.solr.search.DocSlice$1.score(DocSlice.java:121) at
org.apache.solr.request.JSONWriter.writeDocList(JSONResponseWriter.java:502)
at
org.apache.solr.request.TextResponseWriter.writeVal(TextResponseWriter.java:141)
at
org.apache.solr.request.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:182)
at
org.apache.solr.request.JSONWriter.writeNamedList(JSONResponseWriter.java:297)
at
org.apache.solr.request.JSONWriter.writeResponse(JSONResponseWriter.java:92)
at
org.apache.solr.request.JSONResponseWriter.write(JSONResponseWriter.java:51)
at
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619) 


But the same is wroking with Standared request handler.

Any has idea how to fix this.

Regards,
Siva
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Dismax-is-failing-with-json-response-writer-tp1922170p1922170.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Dismax is failing with json response writer

Posted by sivaprasad <si...@echidnainc.com>.
The issue is solved.I replaced the solr core jar.

Thanks Erick
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Dismax-is-failing-with-json-response-writer-tp1922170p1930382.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Dismax is failing with json response writer

Posted by Erick Erickson <er...@gmail.com>.
What version of Solr are you using? Could we see the actual query
you're sending?

And the dismax definition, and perhaps the relevant parts of schema.xml.

There's not much information to go on here to help debug this.

Best
Erick

On Thu, Nov 18, 2010 at 1:21 AM, sivaprasad <si...@echidnainc.com>wrote:

>
> Hi,
>
> I am using dismax query parser.When i want the response in JSON, iam giving
> wt=json.Here it is throwing the below exception.
>
> HTTP Status 500 - null java.lang.NullPointerException at
> org.apache.solr.search.DocSlice$1.score(DocSlice.java:121) at
>
> org.apache.solr.request.JSONWriter.writeDocList(JSONResponseWriter.java:502)
> at
>
> org.apache.solr.request.TextResponseWriter.writeVal(TextResponseWriter.java:141)
> at
>
> org.apache.solr.request.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:182)
> at
>
> org.apache.solr.request.JSONWriter.writeNamedList(JSONResponseWriter.java:297)
> at
>
> org.apache.solr.request.JSONWriter.writeResponse(JSONResponseWriter.java:92)
> at
>
> org.apache.solr.request.JSONResponseWriter.write(JSONResponseWriter.java:51)
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:325)
> at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:254)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
>
>
> But the same is wroking with Standared request handler.
>
> Any has idea how to fix this.
>
> Regards,
> Siva
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Dismax-is-failing-with-json-response-writer-tp1922170p1922170.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>