[ 
https://issues.apache.org/jira/browse/NIFI-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437142#comment-15437142
 ] 

ASF GitHub Bot commented on NIFI-2665:
--------------------------------------

GitHub user mattyb149 opened a pull request:

    https://github.com/apache/nifi/pull/942

    NIFI-2665: Fixed intermittent validation errors in InvokeScriptedProcessor

    Also, due to #930 the parent classloaders have been fixed so there is no 
need for the createScriptEngineModuleClassLoader() method, I removed it as part 
of the cleanup with script engine creation.
    
    Note the engineQ logic looks extraneous here, but it's in place to keep it 
common between the scripting processors (ExecuteScript needs one per task, 
InvokeScriptedProcessor only needs one)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mattyb149/nifi NIFI-2665

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/942.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #942
    
----
commit 308ca045d1eb599a531f1380d8fb19d41c7b61c0
Author: Matt Burgess <[email protected]>
Date:   2016-08-25T16:00:00Z

    NIFI-2665: Fixed intermittent validation errors in InvokeScriptedProcessor

----


> InvokeScriptedProcessor intermittently fails validation
> -------------------------------------------------------
>
>                 Key: NIFI-2665
>                 URL: https://issues.apache.org/jira/browse/NIFI-2665
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>
> Intermittently (perhaps in the Web Server threads only but perhaps not), 
> InvokeScriptedProcessor will be reported as Invalid with something like the 
> following error logged:
> 2016-08-25 09:59:46,750 WARN [NiFi Web Server-22] 
> o.a.n.controller.StandardProcessorNode Failed during validation
> org.apache.nifi.processor.exception.ProcessException: No script engine 
> available!
>          at 
> org.apache.nifi.processors.script.InvokeScriptedProcessor.setup(InvokeScriptedProcessor.java:201)
>  ~[na:na]
>          at 
> org.apache.nifi.processors.script.InvokeScriptedProcessor.customValidate(InvokeScriptedProcessor.java:446)
>  ~[na:na]
>          at 
> org.apache.nifi.components.AbstractConfigurableComponent.validate(AbstractConfigurableComponent.java:123)
>  ~[nifi-api-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>          at 
> org.apache.nifi.controller.StandardProcessorNode.isValid(StandardProcessorNode.java:917)
>  ~[nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
>          at 
> org.apache.nifi.controller.FlowController.getProcessorStatus(FlowController.java:2710)
>  [nifi-framework-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]



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

Reply via email to