You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Howard Nguyen (JIRA)" <ji...@apache.org> on 2015/11/05 02:20:27 UTC
[jira] [Updated] (CAMEL-9292) ZipIterator sometimes return null
when using with split
[ 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)