Hi Som

On Wed, Feb 20, 2013 at 8:15 PM, Som Satpathy <[email protected]> wrote:
> Hi All,
>
> I have recently set up my Stanbol dev environment on Eclipse and have been
> trying to run enhancement chains via code. However, when I try to run the
> integration tests like DefaultChainTest via junit on eclipse, I get the
> following error:
>
> java.lang.NoSuchFieldError: DEF_CONTENT_CHARSET

After searching the Web for this error I think this is related to the
version of the httpcore jar in your workspace. This field should be
defined in "org.apache.http.protocol.HTTP". Based on the history of
this class the field was added with version 4.2. Because of that my
assumption would be that the classpath of your IDE somehow imports a
version < 4.2 of httpcore.

best
Rupert

>         at
> org.apache.http.impl.client.DefaultHttpClient.setDefaultHttpParams(DefaultHt
> tpClient.java:175)
>         at
> org.apache.http.impl.client.DefaultHttpClient.createHttpParams(DefaultHttpCl
> ient.java:158)
>         at
> org.apache.http.impl.client.AbstractHttpClient.getParams(AbstractHttpClient.
> java:448)
>
>
> For some reason the RequestExecutor.execute() method fails with the above
> error.
>
> I would appreciate if any of you could share some pointers as to why this
> might be happening. Any of you faced a similar problem while trying to run
> the integration tests via eclipse IDE?
>
> Thanks,
> Som



--
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to