lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Invalid XML in response
Date Thu, 12 Oct 2006 01:13:23 GMT

: I don't understand why SOLR returns and invalid XML file as a response
: in case when we insert a document with a field that is not defined
: in the Solr configuration. Is there any purpose for that?
:
: It would be nice if it returns a valid xml....

i think if you were adding only one doc, and it had a field problem, then
the response would be valid XML ... but it looks like you are adding
multiple docs, in which case even a success isn't valid XML at the
moment...

	http://issues.apache.org/jira/browse/SOLR-2

...can you verify that this is really the same bug (two seperate <result>
blocks because of adding two seperate docs in a single request) ... or is
there something i'm missing in your example error besides that?

: <result status="400">ERROR:unknown field 'aaa'</result><result
: status="1">org.xmlpull.v1.XmlPullParserException: expected START_TAG or
: END_TAG not END_DOCUMENT (position: END_DOCUMENT seen
: ...&lt;/doc&gt;\n&lt;/add&gt;\n... @9:1)
:     at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1083)
:    at org.apache.solr.core.SolrCore.update(SolrCore.java:681)
:     at
: org.apache.solr.servlet.SolrUpdateServlet.doPost(SolrUpdateServlet.java:52)
:     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
:     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
:    at
: org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
:     at
: org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
:    at
: org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
:     at
: org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
:     at
: org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
:     at
: org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
:     at
: org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
:     at
: org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
:    at
: org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
:     at
: org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
:     at
: org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
:     at
: org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
:     at
: org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
:  at java.lang.Thread.run(Thread.java:595)
: </result>
:
:
: ----------------------------------------------------------------------
: Jestes kierowca? To poczytaj! >>> http://link.interia.pl/f199e
:



-Hoss


Mime
View raw message