You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joseph Witt (JIRA)" <ji...@apache.org> on 2016/10/13 19:06:20 UTC

[jira] [Updated] (NIFI-2693) Documentation fails to load if .nar unpacking fails at startup

     [ https://issues.apache.org/jira/browse/NIFI-2693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Witt updated NIFI-2693:
------------------------------
    Fix Version/s:     (was: 1.1.0)

> Documentation fails to load if .nar unpacking fails at startup
> --------------------------------------------------------------
>
>                 Key: NIFI-2693
>                 URL: https://issues.apache.org/jira/browse/NIFI-2693
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joey Frazee
>
> The NiFi documentation can fail to load and throws an NPE if some but not all of the .nars don't unpack at startup.
> {code}
> HTTP ERROR 500
> Problem accessing /nifi-docs/documentation. Reason:
>     Server Error
> Caused by:
> java.lang.NullPointerException
>         at org.apache.nifi.web.docs.DocumentationController.doGet(DocumentationController.java:68)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
>         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
>         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
>         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>         at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>         at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
>         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>         at org.eclipse.jetty.server.Server.handle(Server.java:499)
>         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
>         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
>         at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
>         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
>         at java.lang.Thread.run(Thread.java:745)
> {code}
> A warning does get logged, but it doesn't give you any indication of which .nar file is broken [1], so while it's easy to spot that the problem is with the .nar unpacking, you have no idea which .nar is causing it.
> The NPE appears to be because when a .nar doesn't unpack, it doesn't return the extensionMapping thus far [2], so NiFi is operational with a subset of the .nars, but doesn't get access to docs for those since instead of a partial extensionMapping it's just null.
> 1. https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-nar-utils/src/main/java/org/apache/nifi/nar/NarUnpacker.java#L162
> 2. https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-nar-utils/src/main/java/org/apache/nifi/nar/NarUnpacker.java#L169



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)