You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by qingwei201314 <87...@qq.com> on 2012/03/20 17:12:08 UTC

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

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.

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

Posted by Erick Erickson <er...@gmail.com>.
Please review:
http://wiki.apache.org/solr/UsingMailingLists

At a minimum we need the full stack trace, solr version, etc.
in order to have a clue where to start.

Best
Erick

On Tue, Mar 20, 2012 at 12:12 PM, qingwei201314 <87...@qq.com> wrote:
> 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.

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

Posted by "Welty, Richard" <rw...@ltionline.com>.
yes. when i have seen these, generally the full trace is good about including the exception that triggered the whole thing, you just need to look down the trace aways to find it.

richard


-----Original Message-----
From: vybe3142 [mailto:vybe3142@gmail.com]
Sent: Wed 3/21/2012 4:58 PM
To: solr-user@lucene.apache.org
Subject: Re: org.apache.solr.common.SolrException: Internal Server Error
 
Try to obtain the server trace, That should tell you what specifically the
error is

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






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

Posted by vybe3142 <vy...@gmail.com>.
Try to obtain the server trace, That should tell you what specifically the
error is

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