Hi,

I've got an xml update document that I'm sending to solr's update handler
with deletes and adds in it. For example:

<delete><id>1234</id><id>5678</id></delete>
<add><doc>....</doc><doc>....</doc></add>

And I'm getting the following exception in the catalina.out log:

Oct 10, 2007 12:58:22 PM org.apache.solr.common.SolrException log
SEVERE: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[1,4003]
Message: start tag not allowed in epilog but got a
        at com.bea.xml.stream.MXParser.parseEpilog(MXParser.java:2112)
        at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1945)
        at com.bea.xml.stream.MXParser.next(MXParser.java:1333)
        at
org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateRequestHandler.java:148)
        at
org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:123)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:78)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:807)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:206)


Is this not allowed? I looked at the code in XmlUpdateRequestHandler.java
and it's dying on this line (148):

      int event = parser.next();

Does anyone know how to correct this? Is it not possible to have multiple
different top-level tags in the same update xml file? It seems to me like it
should work, but perhaps there's something inherently bad about this from
the XMLStreamReader's point of view.

Thanks,

Brendan
-- 
View this message in context: 
http://www.nabble.com/start-tag-not-allowed-in-epilog-tf4602869.html#a13142631
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to