exceptionfactory commented on PR #9131: URL: https://github.com/apache/nifi/pull/9131#issuecomment-2261037796
> Testing this fix... With a single processor on the canvas the search worked correctly. I then added a child PG with a processor inside it, went back to root group and searched and got a 500 response, checked the logs and found: > > ``` > 2024-07-31 13:14:35,345 ERROR [NiFi Web Server-64] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException: Cannot invoke "org.apache.nifi.controller.FlowController.getControllerServiceProvider()" because "this.flowController" is null. Returning Internal Server Error response. > java.lang.NullPointerException: Cannot invoke "org.apache.nifi.controller.FlowController.getControllerServiceProvider()" because "this.flowController" is null > at org.apache.nifi.web.search.attributematchers.SearchableMatcher.match(SearchableMatcher.java:44) > at org.apache.nifi.web.search.attributematchers.SearchableMatcher.match(SearchableMatcher.java:32) > at org.apache.nifi.web.search.AttributeBasedComponentMatcher.lambda$match$0(AttributeBasedComponentMatcher.java:46) > at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) > at org.apache.nifi.web.search.AttributeBasedComponentMatcher.match(AttributeBasedComponentMatcher.java:46) > at org.apache.nifi.web.controller.ControllerSearchService.lambda$searchComponentType$2(ControllerSearc > ``` > > Refreshing the page and deleting the child PG put it back to working. Thanks for the feedback @bbende. The `SearchableMatcher` was also missing a reference to `FlowController`, now corrected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
