[
https://issues.apache.org/jira/browse/NIFI-5962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16754211#comment-16754211
]
ASF subversion and git services commented on NIFI-5962:
-------------------------------------------------------
Commit 2eac0e96c73e03809b02b4a3be029842754e649f in nifi's branch
refs/heads/master from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2eac0e9 ]
NIFI-5962 protecting against null Configuration in AbstractHadoopProcessor
onStopped
This closes #3270.
> AbstractHadoopProcessor can NPE when a configuration issue happens
> ------------------------------------------------------------------
>
> Key: NIFI-5962
> URL: https://issues.apache.org/jira/browse/NIFI-5962
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.8.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I was trying to configure a PutHDFS processor to connect to a kerberized HDFS
> cluster, and because of an issue with the kerberos config, the login during
> onScheduled failed and resulted on the configuration instance not being fully
> constructed, and then going into onStopped and encountering a
> NullPointerException:
> {code:java}
> 2019-01-17 14:12:23,359 ERROR [Timer-Driven Process Thread-8]
> org.apache.nifi.util.ReflectionUtils Failed while invoking annotated method
> 'public final void
> org.apache.nifi.processors.hadoop.AbstractHadoopProcessor.abstractOnStopped()'
> with arguments '[]'.
> 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:142)
> at
> org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
> at
> org.apache.nifi.util.ReflectionUtils.quietlyInvokeMethodsWithAnnotations(ReflectionUtils.java:268)
> at
> org.apache.nifi.util.ReflectionUtils.quietlyInvokeMethodsWithAnnotation(ReflectionUtils.java:90)
> at
> org.apache.nifi.controller.StandardProcessorNode.lambda$initiateStart$4(StandardProcessorNode.java:1547)
> 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.lang.NullPointerException: null
> at
> org.apache.nifi.processors.hadoop.AbstractHadoopProcessor.abstractOnStopped(AbstractHadoopProcessor.java:286)
> ... 15 common frames omitted{code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)