Thank You Oleg and Johannes!  Yes, there was an older version of HttpCore
on the classpath, I removed it and the error is gone.


On Tue, Dec 17, 2013 at 3:53 AM, Oleg Kalnichevski <[email protected]> wrote:

> On Tue, 2013-12-17 at 02:22 -0500, S.L wrote:
> > Hello All,
> >
> > I am using the HttpClient 4.3.1 in my project via solrj , it seems that a
> > call to solr is resulting in a no filed found error as can be seen in the
> > exception stack trace below.
> >
> > Please advise.
> >
> > failed with: java.lang.NoSuchFieldError: INSTANCE
> >       at
> org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:246)
> >       at
> org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:225)
> >       at
> org.apache.http.client.utils.URIBuilder.parseQuery(URIBuilder.java:95)
> >       at
> org.apache.http.client.utils.URIBuilder.digestURI(URIBuilder.java:165)
> >       at
> org.apache.http.client.utils.URIBuilder.<init>(URIBuilder.java:90)
> >       at
> org.apache.http.client.utils.URIUtils.rewriteURI(URIUtils.java:138)
> >       at
> org.apache.http.impl.client.DefaultRequestDirector.rewriteRequestURI(DefaultRequestDirector.java:353)
> >       at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:476)
> >       at
> org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
> >       at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> >       at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
> >       at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
> >       at
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:352)
> >       at
> org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
> >       at
> org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
> >       at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64)
>
> Most likely there is an older version of HttpCore on the classpath.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to