thank you chris hostetter,

in fact, if i use post.sh script to post xml data to solr, the error will happen; however, i switch to post.jar, everything is ok.

i'm confused why post.sh doesn't work


Chris Hostetter 写道:
: thanks for your reply
: : the content of xml file is chinese

My mail reader wasn't able to display the chinese characters in your XML example, but the stack trace you posted doesn't seem to indicate any problem with characters in the field value (did you try posting a simple file with only basic ascii characters?) ...

: > > com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
: > > at [row,col {unknown-source}]: [1,0]

The exception seems to indicate that the "file" solr is getting is completley empty (an EOF character in column 0 of row 1)

how exactly are you posting your file to Solr? have you tried using the simple post tool in example/exampledocs? (java -jar post.jar yourfile.xml)



-Hoss




Reply via email to