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

ASF GitHub Bot commented on MINIFI-435:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/nifi-minifi/pull/113


> MiNiFi - Cannot perform secured S2S with NiFi 1.5.0
> ---------------------------------------------------
>
>                 Key: MINIFI-435
>                 URL: https://issues.apache.org/jira/browse/MINIFI-435
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: Data Transmission
>    Affects Versions: 0.4.0
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Blocker
>             Fix For: 0.5.0
>
>
> I think that, similarly to MINIFI-431, there is a dependency issue preventing 
> the possibility to perform S2S over HTTPS between MiNiFi 0.4.0 and NiFi 
> 1.5.0. When trying to perform secured S2S, I get the following exception:
> {noformat}
> 2018-01-27 22:41:57,581 WARN [Timer-Driven Process Thread-4] 
> o.a.n.c.t.ContinuallyRunConnectableTask 
> RemoteGroupPort[name=IOT_Input,targets=https://...:9091/nifi] 
> Administratively Pausing for 10 seconds due to processing failure: 
> java.lang.RuntimeException: java.lang.NoSuchMethodError: 
> org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
> java.lang.RuntimeException: java.lang.NoSuchMethodError: 
> org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
>         at 
> org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:257)
>         at 
> org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:81)
>         at 
> org.apache.nifi.controller.tasks.ContinuallyRunConnectableTask.call(ContinuallyRunConnectableTask.java:40)
>         at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoSuchMethodError: 
> org.apache.http.impl.client.HttpClientBuilder.setSSLContext(Ljavax/net/ssl/SSLContext;)Lorg/apache/http/impl/client/HttpClientBuilder;
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.setupClient(SiteToSiteRestApiClient.java:278)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.getHttpClient(SiteToSiteRestApiClient.java:219)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.execute(SiteToSiteRestApiClient.java:1189)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.execute(SiteToSiteRestApiClient.java:1237)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.fetchController(SiteToSiteRestApiClient.java:419)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.getController(SiteToSiteRestApiClient.java:394)
>         at 
> org.apache.nifi.remote.util.SiteToSiteRestApiClient.getController(SiteToSiteRestApiClient.java:361)
>         at 
> org.apache.nifi.remote.client.SiteInfoProvider.refreshRemoteInfo(SiteInfoProvider.java:69)
>         at 
> org.apache.nifi.remote.client.SiteInfoProvider.getSiteToSiteHttpPort(SiteInfoProvider.java:160)
>         at 
> org.apache.nifi.remote.client.http.HttpClient.getBootstrapPeerDescription(HttpClient.java:90)
>         at 
> org.apache.nifi.remote.client.PeerSelector.fetchRemotePeerStatuses(PeerSelector.java:379)
>         at 
> org.apache.nifi.remote.client.PeerSelector.refreshPeers(PeerSelector.java:352)
>         at 
> org.apache.nifi.remote.client.PeerSelector.createPeerStatusList(PeerSelector.java:316)
>         at 
> org.apache.nifi.remote.client.PeerSelector.getNextPeerStatus(PeerSelector.java:275)
>         at 
> org.apache.nifi.remote.client.http.HttpClient.createTransaction(HttpClient.java:129)
>         at 
> org.apache.nifi.remote.StandardRemoteGroupPort.onTrigger(StandardRemoteGroupPort.java:238)
>         at 
> org.apache.nifi.controller.AbstractPort.onTrigger(AbstractPort.java:250)
>         ... 10 common frames omitted{noformat}
> When doing the same between MiNiFi 0.3.0 and NiFi 1.5.0, it works as expected.
> I believe this could be related to NIFI-3954 / 
> [https://github.com/apache/nifi/pull/1841]
> I'll try to update the dependency to the same versions on MiNiFi side and try 
> secured S2S.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to