[prev in list] [next in list] [prev in thread] [next in thread] 

List:       solr-dev
Subject:    Re: [jira] Updated: (SOLR-58) Change Admin components to return XML
From:       Chris Hostetter <hossman_lucene () fucit ! org>
Date:       2006-11-29 0:07:29
Message-ID: Pine.LNX.4.58.0611281605260.25064 () hal ! rescomp ! berkeley ! edu
[Download RAW message or body]


> out.println("<error>");
> XML.escapeCharData(SolrException.toStr(resp.getException()), out);
> out.println("</error>");
> response.sendError(500);
> 
> Unfortunately, this results ina generic 500 Error from Jetty, without
> this XML in the output.  Does anyone know how to get around this?

as i recall: you should be able to just use response.setStatus(500) ...
but it should accutally be done prior to writting the response body to
prevent the possibility of the servlet container flushing the response if
the stack trace is really really big (in which case it will be too late to
set the status and the container will use the fault of 200)




> 
> 
> > Change Admin components to return XML like the rest of the system
> > -----------------------------------------------------------------
> > 
> > Key: SOLR-58
> > URL: http://issues.apache.org/jira/browse/SOLR-58
> > Project: Solr
> > Issue Type: New Feature
> > Components: web gui
> > Reporter: Otis Gospodnetic
> > Assigned To: Otis Gospodnetic
> > Priority: Minor
> > Attachments: analysis-xml-out.txt, analysis-xml.jsp, logging-xml.jsp, \
> > ping-xml-out.txt, ping-xml.jsp, ping.xsl, schemaxsl.zip, threaddump-xml-out.txt, \
> > threaddump-xml.jsp
> > 
> > 
> > I need to expose the admin functionality to an external application.  I think \
> > returning admin data as XML may be a good and simple first step towards that.
> > To do that I think I'll mostly need to modify JSPs (but I haven't had a good look \
> > at Admin GUI yet).  From what I saw a few weeks ago when I briefly looked at \
> > this, no Java code will need to be modified.  If you have concrete ideas about \
> > how this should be done, please comment before I start next week (week of October \
> > 23rd 2006).
> 
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: \
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 
> 
> 



-Hoss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic