nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <>
Subject [jira] [Commented] (NIFI-7294) Flows with SolrProcessor configured to use SSLContextService is failing
Date Mon, 30 Mar 2020 20:52:00 GMT


ASF subversion and git services commented on NIFI-7294:

Commit fee1b8b8e04e5901db612e52c9d53f9096f6d558 in nifi's branch refs/heads/master from Mubashir
[;h=fee1b8b ]

NIFI-7294 Address deprecation issues in solrj and httpclient

Some calls to deprecated methods in httpclient were resulting in
UnsupportedOperationException. Use the new API calls in both httpclient
and solrj. Add an integration test to include test coverage for

This closes #4171.

> Flows with SolrProcessor configured to use SSLContextService is failing
> -----------------------------------------------------------------------
>                 Key: NIFI-7294
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.12.0
>            Reporter: Mubashir Kazia
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
> After applying the fix in NIFI-7269, flows using SolrProcessors that are configured to
use SSLContextService are failing with exception: 
> {code}
> java.lang.UnsupportedOperationException: null
>         at org.apache.http.impl.client.InternalHttpClient$1.getSchemeRegistry(
>         at org.apache.nifi.processors.solr.SolrUtils.createSolrClient(
>         at org.apache.nifi.processors.solr.SolrProcessor.createSolrClient(
>         at org.apache.nifi.processors.solr.SolrProcessor.onScheduled(
>         at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(
>         at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(
>         at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(
>         at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(
>         at org.apache.nifi.controller.StandardProcessorNode.lambda$initiateStart$4(
>         at org.apache.nifi.engine.FlowEngine$
>         at
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
>         at java.util.concurrent.ScheduledThreadPoolExecutor$
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at{code}
> This is because of the new httpclient version that was pulled as a dependency as part
of the solrj upgrade in NIFI-7269. The getConnectionManager method in HttpClient is deprecated
and the way to set the schema registry has changed in the new version of HttpClient. The problematic
code is 
> {code}
> httpClient.getConnectionManager().getSchemeRegistry().register(httpsScheme);
> {code}
> in function createSolrClient. There is no test coverage for this function which is why
it was not detected in the code changes for NIFI-7269.

This message was sent by Atlassian Jira

View raw message