You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by trixpan <gi...@git.apache.org> on 2017/03/02 14:03:16 UTC

[GitHub] nifi issue #1553: NIFI-1449 - Migrate PutEmail tests from Mock class to List...

Github user trixpan commented on the issue:

    https://github.com/apache/nifi/pull/1553
  
    @joewitt  - Perhaps you would you be able to give me some insight here.
    
    For some reason when I run the following lines of testOutgoingMessageAttachment
    
    ```
            extractAttachmentsRunner.enqueue(message);
            extractAttachmentsRunner.run();
    ```
    
     I hit the following error message:
    
    ```
    [pool-5-thread-1] ERROR org.apache.nifi.processors.email.ExtractEmailAttachments - ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481] Could not parse the flowfile FlowFile[0,632793727136184.mockFlowFile,917B] as an email, treating as failure: java.lang.IllegalStateException: FlowFile[0,632793806568613.mockFlowFile,0B] already in use for an active callback or InputStream created by ProcessSession.read(FlowFile) has not been closed
    [pool-5-thread-1] ERROR org.apache.nifi.processors.email.ExtractEmailAttachments - ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481] ExtractEmailAttachments[id=a209646b-88f5-4a59-bafb-7aba063ed481] failed to process due to org.apache.nifi.processor.exception.FlowFileHandlingException: FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of this flow file within this session; rolling back session: org.apache.nifi.processor.exception.FlowFileHandlingException: FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of this flow file within this session
    
    java.lang.AssertionError: org.apache.nifi.processor.exception.FlowFileHandlingException: FlowFile[0,632793727136184.mockFlowFile,917B] is not the most recent version of this flow file within this session
    
    ```
    
    Not sure if this is a bug on ExtractEmailHeaders / ExtractEmailAttachments or if it is a mistake within the test script itself?
    
    Cheers


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---