You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (Jira)" <ji...@apache.org> on 2024/09/04 21:05:00 UTC

[jira] [Created] (NIFI-13713) Uploaded NAR with Custom UI causes start up failure

Bryan Bende created NIFI-13713:
----------------------------------

             Summary: Uploaded NAR with Custom UI causes start up failure
                 Key: NIFI-13713
                 URL: https://issues.apache.org/jira/browse/NIFI-13713
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.0.0-M4
            Reporter: Bryan Bende
            Assignee: Bryan Bende


If you upload a NAR with any kind of custom UI, the custom UI will work and everything is fine, until the next time NiFi restarts, it will fail with:
{code:java}
Caused by: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
    at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:85)
    at org.apache.nifi.web.server.JettyServer.loadExtensionUis(JettyServer.java:358)
    at org.apache.nifi.nar.StandardNarLoader.load(StandardNarLoader.java:137)
    at org.apache.nifi.nar.StandardNarLoader.load(StandardNarLoader.java:78)
    at org.apache.nifi.nar.StandardNarManager.loadExistingNars(StandardNarManager.java:354)
    at org.apache.nifi.nar.StandardNarManager.afterPropertiesSet(StandardNarManager.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)
    ... 69 common frames omitted {code}
This is a timing issue where NAR Manager is loading its NARs during start up before Jetty has started.



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