[
https://issues.apache.org/jira/browse/NIFI-11782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772386#comment-17772386
]
ASF subversion and git services commented on NIFI-11782:
--------------------------------------------------------
Commit 5afda79f282c99df370edb411234c2182bebe4b9 in nifi's branch
refs/heads/main from Nissim Shiman
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=5afda79f28 ]
NIFI-11782 Resolved NPE when moving snippet with label to process group
This closes #7838
Signed-off-by: David Handermann <[email protected]>
> NPE when adding Snippet with label into Process Group
> -----------------------------------------------------
>
> Key: NIFI-11782
> URL: https://issues.apache.org/jira/browse/NIFI-11782
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.21.0, 1.22.0
> Reporter: Pierre Villard
> Assignee: Nissim Shiman
> Priority: Major
> Fix For: 1.latest, 2.latest
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When adding to a Process Group a snippet that contains a label
> {code:java}
> 2023-07-06 15:35:47,575 ERROR [NiFi Web Server-222]
> o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
> java.lang.NullPointerException: Cannot invoke
> "org.apache.nifi.web.dao.LabelDAO.getLabel(String)" because "this.labelDAO"
> is null. Returning Internal Server Error response.
> java.lang.NullPointerException: Cannot invoke
> "org.apache.nifi.web.dao.LabelDAO.getLabel(String)" because "this.labelDAO"
> is null
> at
> org.apache.nifi.audit.SnippetAuditor.updateSnippetAdvice(SnippetAuditor.java:336)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
> at
> org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
> at
> org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
> at
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
> at
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
> {code}
> This seems to be caused by NIFI-11134.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)