camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard Nguyen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-9292) ZipIterator sometimes return null when using with split
Date Thu, 05 Nov 2015 01:20:27 GMT

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

Howard Nguyen updated CAMEL-9292:
---------------------------------
    Description: 
ZipIterator sometimes return null when using with split

// My route
{code}
from("file:///tmp")
   .unmarshall(zipFileDataFormat)
   .split(body())
   .to("mock:result")
{code}

Sometimes, I receive null body in the unit test i.e. I have zip file with 2 entries. I would
sometimes receive 3 exchanges. The third exchange has null body. I also tested with zipfile
with single entries. The result is similar.

Workaround, I use filter on body.


  was:
ZipIterator sometimes return null when using with split

// My route
{code}
from("file:///tmp")
   .unmarshall(zipFileDataFormat)
   .split(body())
   .to("mock:result")
{code}

Sometimes, I receive null body in the unit test i.e. I have zip file with 2 entries. I would
sometimes receive 3 exchanges. The third exchange has null body.

Workaround, I use filter on body.



> ZipIterator sometimes return null when using with split
> -------------------------------------------------------
>
>                 Key: CAMEL-9292
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9292
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.16.0
>            Reporter: Howard Nguyen
>              Labels: split, zipfile
>
> ZipIterator sometimes return null when using with split
> // My route
> {code}
> from("file:///tmp")
>    .unmarshall(zipFileDataFormat)
>    .split(body())
>    .to("mock:result")
> {code}
> Sometimes, I receive null body in the unit test i.e. I have zip file with 2 entries.
I would sometimes receive 3 exchanges. The third exchange has null body. I also tested with
zipfile with single entries. The result is similar.
> Workaround, I use filter on body.



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

Mime
View raw message