You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Puspendu Banerjee (JIRA)" <ji...@apache.org> on 2016/07/14 00:17:20 UTC

[jira] [Commented] (NIFI-2034) NiFi is always loading a specific version of httpcore to classpath

    [ https://issues.apache.org/jira/browse/NIFI-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376048#comment-15376048 ] 

Puspendu Banerjee commented on NIFI-2034:
-----------------------------------------

It looks pretty interesting. 
[~asanka] Can you please share your code-base if possible. Looks like, somehow it's not the correct classloader that is being used.

> NiFi is always loading a specific version of httpcore to classpath
> ------------------------------------------------------------------
>
>                 Key: NIFI-2034
>                 URL: https://issues.apache.org/jira/browse/NIFI-2034
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.5.1, 0.6.1
>            Reporter: asanka sanjaya
>
> We have written a custom nifi processor to connect to microsoft exchange server and get emails. It runs perfectly as a standalone application. But nifi always loads httpcore-4.4.1.jar and httpclient-4.4.1.jar to classpath even though the nar file contains httpcore-4.4.4.jar and httpclient-4.5.2.jar.
> Because of that, it throws this error.
> 016-06-15 18:57:17,086 WARN [Timer-Driven Process Thread-4] o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding NiFiJournalJob[id=52616329-d64c-4e14-bcb1-4c799891682a] due to uncaught Exception: java.lang.NoSuchFieldError: INSTANCE
> 2016-06-15 18:57:17,091 WARN [Timer-Driven Process Thread-4] o.a.n.c.t.ContinuallyRunProcessorTask 
> java.lang.NoSuchFieldError: INSTANCE
> 	at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:52) ~[httpcore-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:56) ~[httpcore-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<clinit>(DefaultHttpRequestWriterFactory.java:46) ~[httpcore-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<init>(ManagedHttpClientConnectionFactory.java:82) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<init>(ManagedHttpClientConnectionFactory.java:95) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<init>(ManagedHttpClientConnectionFactory.java:104) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.<clinit>(ManagedHttpClientConnectionFactory.java:62) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.BasicHttpClientConnectionManager.<init>(BasicHttpClientConnectionManager.java:142) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.BasicHttpClientConnectionManager.<init>(BasicHttpClientConnectionManager.java:128) ~[httpclient-4.4.1.jar:4.4.1]
> 	at org.apache.http.impl.conn.BasicHttpClientConnectionManager.<init>(BasicHttpClientConnectionManager.java:157) ~[httpclient-4.4.1.jar:4.4.1]
> 	at microsoft.exchange.webservices.data.core.ExchangeServiceBase.initializeHttpClient(ExchangeServiceBase.java:199) ~[na:na]
> 	at microsoft.exchange.webservices.data.core.ExchangeServiceBase.<init>(ExchangeServiceBase.java:174) ~[na:na]
> 	at microsoft.exchange.webservices.data.core.ExchangeServiceBase.<init>(ExchangeServiceBase.java:179) ~[na:na]
> 	at microsoft.exchange.webservices.data.core.ExchangeService.<init>(ExchangeService.java:3729) ~[na:na]
> 	



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)