These

HTTP Status 500 - null java.lang.NullPointerException at 
java.io.StringReader.<init>(StringReader.java:50) at 

are returned in HTML. I use Nginx to detect the HTTP error code and return a 
JSON encoded body with the appropriate content type. Maybe it could be done in 
the servlet container but i never tried.

> What html format? Solr responds in XML, not HTML. Any HTML
> has to be created somewhere in the chain. Your browser
> may not be set up to render XML, so you could be seeing problems
> because of that.
> 
> If hit is off-base, could you explain your issue in a bit more detail?
> 
> Best
> Erick
> 
> On Thu, Dec 23, 2010 at 6:30 AM, satya swaroop 
<satya.yada...@gmail.com>wrote:
> > Hi All,
> > 
> >         I am able to get the response in the success case in json format
> >         by
> > 
> > stating wt=json in the query. But as in case if any errors i am geting in
> > html format.
> > 
> >  1) Is there any specified reason to get in html format??
> >  2)cant we get the error result in json format??
> > 
> > Regards,
> > satya

Reply via email to