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

ASF subversion and git services commented on NIFI-12630:
--------------------------------------------------------

Commit bda9b6360d932bb07af387e38a243cb7f3bceb2b in nifi's branch 
refs/heads/main from Jim Steinebrey
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=bda9b6360d ]

NIFI-12630 Fix NPE getLogger in ConsumeSlack and PublishSlack

Signed-off-by: Matt Burgess <[email protected]>

This closes #8474


> NPE getLogger in ConsumeSlack
> -----------------------------
>
>                 Key: NIFI-12630
>                 URL: https://issues.apache.org/jira/browse/NIFI-12630
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Pierre Villard
>            Assignee: Jim Steinebrey
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Getting this NPE when hitting the Slack rate limit:
> {code:java}
> 2024-01-18 16:07:53,560 WARN [Timer-Driven Process Thread-12] 
> o.a.n.controller.tasks.ConnectableTask Processing halted: uncaught exception 
> in Component [ConsumeSlack[id=592d68c7-3fe6-3039-53e4-eae3bfbfbd57]]
> java.lang.NullPointerException: Cannot invoke 
> "org.apache.nifi.logging.ComponentLog.debug(String, Object[])" because 
> "this.logger" is null
>       at 
> org.apache.nifi.processors.slack.util.RateLimit.isLimitReached(RateLimit.java:42)
>       at 
> org.apache.nifi.processors.slack.ConsumeSlack.onTrigger(ConsumeSlack.java:332)
>       at 
> org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
>       at 
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1274)
>       at 
> org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:244)
>       at 
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:102)
>       at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
>       at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
>       at 
> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
>       at 
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
>       at java.base/java.lang.Thread.run(Thread.java:1583) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to