[ https://issues.apache.org/jira/browse/NIFI-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218233#comment-15218233 ]
ASF GitHub Bot commented on NIFI-1697: -------------------------------------- Github user mcgilman commented on a diff in the pull request: https://github.com/apache/nifi/pull/312#discussion_r57917189 --- Diff: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java --- @@ -2539,6 +2539,12 @@ private ProcessorStatus getProcessorStatus(final RepositoryStatusReport report, return status; } + private boolean isValid(ProcessorNode procNode) { + try (final NarCloseable narCloseable = NarCloseable.withNarLoader()) { + return procNode.isValid(); --- End diff -- I believe we want to wrap the call into validate() on the Processor in procNode.isValid() rather than the entire isValid() method [1]. [1] https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/StandardProcessorNode.java#L911 > AmbariReportingTask not working when using PutHDFS > -------------------------------------------------- > > Key: NIFI-1697 > URL: https://issues.apache.org/jira/browse/NIFI-1697 > Project: Apache NiFi > Issue Type: Bug > Reporter: Bryan Bende > Assignee: Bryan Bende > Priority: Critical > Fix For: 0.7.0 > > > Create a simple flow with a PutHDFS processor running, then add an > AmbariReportingTask and start it. Produces an error like the following: > {code} > Error running task AmbariReportingTask due to java.lang.LinkageError: > ClassCastException: attempting to > castjar:file:/opt/nifi/nifi-0.6.0/./work/nar/extensions/nifi-hadoop-libraries-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class > to > jar:file:/opt/nifi/nifi-0.6.0/./work/nar/extensions/nifi-ambari-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)