You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Justin M Cavinee (JIRA)" <ji...@apache.org> on 2016/12/04 02:44:58 UTC

[jira] [Comment Edited] (NIFI-3144) Execute Script Invalid FlowFile in Queue

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

Justin M Cavinee edited comment on NIFI-3144 at 12/4/16 2:44 AM:
-----------------------------------------------------------------

I'm also getting some "Transfer Relationship Not Specified" Errors, which might be related.  Basically the whole script is wrapped in Exception Handling, so each flow file is guaranteed to be routed to either REL_SUCCESS or REL_FAILURE, which means this error is either caused by something inside the java_import, or it's from the return call if FlowFile is null (which I took from the sample code).

 
*Skeleton of Ruby Script Follows*
java_import Java::org.apache.nifi.processors.script.ExecuteScript

begin
  flowFile = session.get()
  if flowFile.nil?
    return
  end
<Body of Code>
  session.transfer(flowFile, ExecuteScript::REL_SUCCESS)
rescue
  session.transfer(flowFile, ExecuteScript::REL_FAILLURE)
end


was (Author: jcavinee):
I'm also getting some "Transfer Relationship Not Specified" Errors, which might be related.  Basically the whole script is wrapped in Exception Handling, so each flow file is guaranteed to be routed to either REL_SUCCESS or REL_FAILURE, which means this error is either caused by something inside the java_import, or it's from the return call if FlowFile is null (which I took from the sample code).

 
*Start of Ruby Script Follows*
java_import Java::org.apache.nifi.processors.script.ExecuteScript

begin
  flowFile = session.get()
  if flowFile.nil?
    return
  end


> Execute Script Invalid FlowFile in Queue
> ----------------------------------------
>
>                 Key: NIFI-3144
>                 URL: https://issues.apache.org/jira/browse/NIFI-3144
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Justin M Cavinee
>         Attachments: EmptyQueue.png, ErrorMessage.png
>
>
> There seems to be some kind of error in clearing flow files from the source queue of the ExecuteScript Processor.  I keep running into lingering flow-files in the queue that cannot be cleared, and don't show up in the list source queue (says no FlowFiles Present), but it continues to sit in the queue, and seems to cause the processor throw "Failed to Process Session" Exceptions as it start loading other that come through the processor.
>   Will attach Screenshots of a queue with a flow file count but that says no files in queue and one of the error message. 



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