On Monday 05 April 2010 20:14:44 Chris Hostetter wrote:
> define "crashes" ? ... presumabl you are tlaking about the client crashing
> because it can't parse theerro response, correct? ... the best suggestion
> given the current state of Solr is to make hte client smart enough to not
> attempt parsing of hte response unless the response code is 200.

Yes, it tries to parse the HTML-output but exspecting JSON syntax. Because it 
is a perl-mod from CPAN, i dont really want to customize it...

> It's one of the oldest out standing "improvements" in the Solr issue
> tracker, but it hasn't gotten much love over the years...
>
>       https://issues.apache.org/jira/browse/SOLR-141
>
> One possible workarround if you are comfortable with Java andif you are
> willing to always get the erros in a single response format (ie: JSON)...
>
> you can customize the solr.war to specify an "error jsp" that your serlvet
> container will use to format all error responses.  you can make that JSP
> extract the error message from the Exception and output it in JSON format.

Good idea, i will give that a try, thx a lot :)


-- 
Alexander Rothenberg
Fotofinder GmbH         USt-IdNr. DE812854514
Software Entwicklung    Web: http://www.fotofinder.net/
Potsdamer Str. 96       Tel: +49 30 25792890
10785 Berlin            Fax: +49 30 257928999

Geschäftsführer:        Ali Paczensky
Amtsgericht:            Berlin Charlottenburg (HRB 73099)
Sitz:                   Berlin

Reply via email to