org.apache.solr.common.SolrException: Internal Server Error

2012-03-22 Thread qingwei201314
My solr server is running, and following is my client code:
   File file = new File(1.pdf);
String urlString = constant.getUrl();
StreamingUpdateSolrServer solr = new 
StreamingUpdateSolrServer(
urlString, 1, 1);

ContentStreamUpdateRequest up = new 
ContentStreamUpdateRequest(
/update/extract);
up.addFile(file);
up.setParam(uprefix, attr_);
up.setParam(fmap.content, attr_content);
up.setParam(literal.id, file.getPath());
up.setAction(AbstractUpdateRequest.ACTION.COMMIT, 
false, false);
solr.request(up);
solr.blockUntilFinished();

When I execute the code, it always meet the error:
Index starting..
org.apache.solr.common.SolrException: Internal Server Error

Internal Server Error

request:
http://localhost:8080/solr/update/extract?uprefix=attr_fmap.content=attr_contentliteral.id=1.pdfcommit=truewaitFlush=falsewaitSearcher=falsewt=javabinversion=2
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:460)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:254)
at
org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer.request(StreamingUpdateSolrServer.java:202)
at com.kevin.solr.task.MainIndexTask.createIndex(MainIndexTask.java:31)
at com.kevin.solr.task.MainIndexTask.main(MainIndexTask.java:42)

Why? Could anyone help me?

Thanks very much.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-Internal-Server-Error-tp3848597p3848597.html
Sent from the Solr - User mailing list archive at Nabble.com.


org.apache.solr.common.SolrException: parsing error

2012-03-22 Thread qingwei201314
I post a *.doc file to the solr server, but I always get the error:
org.apache.solr.common.SolrException: parsing error
at
org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:43)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:512)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:254)
at
org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer.request(StreamingUpdateSolrServer.java:202)


Why? Could anyone tell me how to solved it?

Thanks very much.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-parsing-error-tp384p384.html
Sent from the Solr - User mailing list archive at Nabble.com.


org.apache.solr.common.SolrException: Internal Server Error

2012-03-20 Thread qingwei201314
I use the solrJ to index a pdf file.
File file = new File(1.pdf);
String urlString = constant.getUrl();
StreamingUpdateSolrServer solr = new 
StreamingUpdateSolrServer(
urlString, 1, 1);

ContentStreamUpdateRequest up = new 
ContentStreamUpdateRequest(
/update/extract);
up.addFile(file);
up.setParam(uprefix, attr_);
up.setParam(fmap.content, attr_content);
up.setParam(literal.id, file.getPath());
up.setAction(AbstractUpdateRequest.ACTION.COMMIT, 
false, false);
solr.request(up);
solr.blockUntilFinished();

When I execute the code, I always get the
error:org.apache.solr.common.SolrException: Internal Server Error.

What's wrong? Could anyone help me?


Thanks very much.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/org-apache-solr-common-SolrException-Internal-Server-Error-tp3842862p3842862.html
Sent from the Solr - User mailing list archive at Nabble.com.