Hello,
I am trying to perform "get" request over SSL from InvokeHTTP
nifi-1.5.0-RC1;
I configured SSL by the means of a StandardSSLContextService
<https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.ssl.StandardSSLContextService/>
with
jks certificate (see attached)
When I try to execute processor, i see the following problem:

*Caused by: java.lang.IllegalStateException: TrustManagerFactoryImpl is not
initialized*

*        at
sun.security.ssl.TrustManagerFactoryImpl.engineGetTrustManagers(TrustManagerFactoryImpl.java:100)*
Do I have an error in my configuration, or is this bug? keystore
file/password combination is valid - i can do that request from cli.... Can
I do "insecure" SSL request ( like curl -k) with InvokeHTTP?
Below is full stack trace

2018-12-20 14:53:41,116 ERROR [StandardProcessScheduler Thread-3]
o.a.n.controller.StandardProcessorNode Failed to invoke @OnScheduled method
due to java.lang.RuntimeException: Failed while executing one of
processor's OnScheduled task.

java.lang.RuntimeException: Failed while executing one of processor's
OnScheduled task.

        at
org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1504)

        at
org.apache.nifi.controller.StandardProcessorNode.initiateStart(StandardProcessorNode.java:1330)

        at
org.apache.nifi.controller.StandardProcessorNode.lambda$start$0(StandardProcessorNode.java:1315)

        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.util.concurrent.ExecutionException:
java.lang.reflect.InvocationTargetException

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)

        at java.util.concurrent.FutureTask.get(FutureTask.java:206)

        at
org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1487)

        ... 9 common frames omitted

Caused by: java.lang.reflect.InvocationTargetException: null

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137)

        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125)

        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70)

        at
org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47)

        at
org.apache.nifi.controller.StandardProcessorNode$1.call(StandardProcessorNode.java:1334)

        at
org.apache.nifi.controller.StandardProcessorNode$1.call(StandardProcessorNode.java:1330)

        ... 6 common frames omitted

Caused by: java.lang.IllegalStateException: TrustManagerFactoryImpl is not
initialized

        at
sun.security.ssl.TrustManagerFactoryImpl.engineGetTrustManagers(TrustManagerFactoryImpl.java:100)

        at
javax.net.ssl.TrustManagerFactory.getTrustManagers(TrustManagerFactory.java:285)

        at
org.apache.nifi.processors.standard.InvokeHTTP.setSslSocketFactory(InvokeHTTP.java:613)

        at
org.apache.nifi.processors.standard.InvokeHTTP.setUpClient(InvokeHTTP.java:545)

        ... 16 common frames omitted

Reply via email to