I have a route where I want to unzip zipfile (containing 1 or more files). This is the route:
ZipFileDataFormat zipFile = new ZipFileDataFormat(); zipFile.setUsingIterator(true); from("file:src/test/resources/org/apache/camel/dataformat/zipfile/?delay=1000&noop=true") .unmarshal(zipFile) .split(bodyAs(Iterator.class)).streaming() .process(new UnZippedMessageProcessor()) .end(); When I tested this locally on my Windows machine everything goes well, but when I pack in into a container (Alpine) and run it on a server (Ubuntu) I get the following error: org.apache.camel.StreamCacheException: Error during type conversion from type: org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper to the required type: org.apache.camel.StreamCache with value org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper@10538c67 due to org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper to the required type: org.apache.camel.StreamCache with value org.apache.camel.dataformat.zipfile.ZipInputStreamWrapper@10538c67 due to java.io.IOException: Stream closed Based on the error message I'm unsure, is this really a conversion error or more a permission problem to the spooldirectory or is this something else? Raymond