[
https://issues.apache.org/jira/browse/NIFI-9431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461935#comment-17461935
]
David Handermann commented on NIFI-9431:
----------------------------------------
Thanks for the additional details [~sarahikh]!
I tried loading the template on NiFi 1.14.0 and encountered a similar
NullPointerException when attempting to create an instance of the template. I
also tried the template on the latest version of NiFi and it worked as
expected. Are you able to upgrade to NiFi 1.15.1 and try that version?
Here is the exception I observed:
{noformat}
2021-12-18 10:43:03,258 ERROR [NiFi Web Server-73]
o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
java.lang.NullPointerException. Returning Internal Server Error response.
java.lang.NullPointerException: null
at
org.apache.nifi.controller.AbstractComponentNode.getAdditionalClasspathResources(AbstractComponentNode.java:178)
at
org.apache.nifi.controller.AbstractComponentNode.getAdditionalClasspathResources(AbstractComponentNode.java:163)
at
org.apache.nifi.controller.AbstractComponentNode.setProperties(AbstractComponentNode.java:251)
at
org.apache.nifi.controller.ComponentNode.setProperties(ComponentNode.java:61)
at
org.apache.nifi.controller.StandardFlowSnippet.instantiate(StandardFlowSnippet.java:253)
at
org.apache.nifi.controller.StandardFlowSnippet.instantiate(StandardFlowSnippet.java:529)
at
org.apache.nifi.controller.StandardFlowSnippet.instantiate(StandardFlowSnippet.java:529)
at
org.apache.nifi.controller.StandardFlowSnippet.instantiate(StandardFlowSnippet.java:155)
at
org.apache.nifi.controller.flow.StandardFlowManager.instantiateSnippet(StandardFlowManager.java:274)
at
org.apache.nifi.web.dao.impl.StandardTemplateDAO.instantiateTemplate(StandardTemplateDAO.java:221)
{noformat}
There seems to be an issue related to loading the JDBC driver, so you could
also verify that portion of the configuration.
> Issue While Migrating to 1.14.0
> --------------------------------
>
> Key: NIFI-9431
> URL: https://issues.apache.org/jira/browse/NIFI-9431
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Sarah Alkhudair
> Priority: Critical
> Attachments: Temp1.xml
>
>
> Dears,
> We are facing an issue in migrating from 1.13.2 to 1.14.0. When we upload
> templates (.xml files) to 1.14.0 and then restart NiFi ,we keep having this
> error back (WARN [main] org.eclipse.jetty.webapp.WebAppContext Failed startup
> of context o.e.j.w.WebAppContext).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)