Getting "WARNING: Solr returned an error #500 Internal Server Error" while indexing .xml files

676 views
Skip to first unread message

Madhusudan Dad

unread,
Mar 25, 2014, 2:17:48 AM3/25/14
to sol...@googlegroups.com
Hi..
I have installes solr on my PC and I am trying to index files using (either of) following commands:
 1. java -Durl=http://10.1.11.143:8080/solr/#/ -jar post.jar solr.xml monitor.xml
 2. java -Durl=http://10.1.11.143:8080/solr/update?commit=true -jar post.jar solr.xml monitor.xml

But both times I am getting following errors:

SimplePostTool version 1.5
Posting files to base url http://10.1.11.143:8080/solr/#/ using content-type application/xml..
POSTing file solr.xml
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 500 for URL: http://10.1.11.143:8080/solr/#/
POSTing file monitor.xml
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 500 for URL: http://10.1.11.143:8080/solr/#/
2 files indexed.
COMMITting Solr index changes to http://10.1.11.143:8080/solr/#/..
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error for url http://10.1.11.143:8080/solr/#/?commit=true
Time spent: 0:00:00.018

Can somebody tell me what should I do to overcome this error?

Kishan Parmar

unread,
Mar 25, 2014, 5:12:54 AM3/25/14
to sol...@googlegroups.com
write
java -Durl=http://10.1.11.143:8080/solr/collection1/ -jar post.jar *.XML
> --
> You received this message because you are subscribed to the Google Groups
> "SolrNet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to solrnet+u...@googlegroups.com.
> To post to this group, send email to sol...@googlegroups.com.
> Visit this group at http://groups.google.com/group/solrnet.
> For more options, visit https://groups.google.com/d/optout.
>


--
Regards,

Kishan Parmar
Software Developer
+91 95 100 77394
Jay Shree Krishnaa !!

Kishan Parmar

unread,
Mar 25, 2014, 12:02:57 PM3/25/14
to sol...@googlegroups.com

java -Durl=http://localhost:8080/solr/collection1/update -jar post.jar *.xml

write your core name at collection1

Regards,

Kishan Parmar
Software Developer
+91 95 100 77394
Jay Shree Krishnaa !!



Reply all
Reply to author
Forward
0 new messages