Lewis John McGibbney created NUTCH-2024:
-------------------------------------------
Summary: httpcore classpath jar conflict when invoking
protocol-selenium
Key: NUTCH-2024
URL: https://issues.apache.org/jira/browse/NUTCH-2024
Project: Nutch
Issue Type: Bug
Components: plugin
Affects Versions: 1.10
Reporter: Lewis John McGibbney
Fix For: 1.11
I fear that there is a classpath issue right now with httpcore when
protocol-selenium is invoked and used.
The error I get is something similar to the following
{code}
Caused by: java.lang.NoSuchFieldError: INSTANCE
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:52)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:56)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<clinit>(DefaultHttpRequestWriterFactory.java:46)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<init>(ManagedHttpClientConnectionFactory.java:72)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<init>(ManagedHttpClientConnectionFactory.java:84)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<clinit>(ManagedHttpClientConnectionFactory.java:59)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.<init>(PoolingHttpClientConnectionManager.java:487)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:147)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:136)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:112)
at
org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:726)
{code}
I managed to workaround this by removing all httpcore dependencies which are
older than httpcore-4.3.2.jar which is required by protocol-selenium.
I need to look into a more appropriate fix... possibly an upgrade of the
httpcore libraries which are peppered around everywhere.
We will see.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)