Hi,

 we got the following error after storing an API call response in a
camelProperty and then trying to remove this same property. It seems
something has consumed the tmp file for the current input stream but we
didn't make any action that differs from our previous process so we're
confused why we suddenly got this error when it was all good before.

As a tmp fix we converted the response to String but we're afraid that we
might get the same error again.

Here's the full stack trace of the error:

> Failed delivery for (MessageId: 
> ID-ip-172-31-47-76-eu-west-3-compute-internal-1756011685611-337-2 on 
> ExchangeId: 
> ID-ip-172-31-47-76-eu-west-3-compute-internal-1756011685611-338-1). Exhausted 
> after delivery attempt: 1 caught: org.apache.camel.RuntimeCamelException: 
> Cannot reset stream from file 
> /home/ec2-user/fuse-karaf-7.4.0.fuse-740028-redhat-00001/data/tmp/camel/camel-tmp-63440d23-2e89-4b4d-a795-094a91fb7c7f/cos3437200545289512276.tmpMessage
>  
> History---------------------------------------------------------------------------------------------------------------------------------------RouteId
>               ProcessorId          Processor                                  
>                                       Elapsed (ms)[route18           ] 
> [route18           ] [timer://foo?delay=10000&repeatCount=1                   
>                       ] [       738][route18           ] [to1955            ] 
> [direct:test-debug                                                            
>  ] [       736][route19           ] [log1975           ] [log                 
>                                                           ] [         
> 1][route19           ] [to1957            ] 
> [direct-vm:GET-router-integration-data                                        
>  ] [       733][GET-router-integra] [_setHeader1       ] 
> [setHeader[CamelHttpMethod]                                                   
>  ] [         0][GET-router-integra] [_setHeader2       ] 
> [setHeader[CamelHttpUri]                                                      
>  ] [         0][GET-router-integra] [_setHeader3       ] [setHeader[token]    
>                                                           ] [         
> 0][GET-router-integra] [_to1              ] [direct:get                       
>                                              ] [       733][get               
> ] [setProperty864    ] [setProperty[operation]                                
>                         ] [         1][get               ] [to1947            
> ] [direct:rest                                                                
>    ] [       732][rest              ] [setProperty863    ] 
> [setProperty[originalMessage-restOperation]                                   
>  ] [         0][rest              ] [toD272            ] [                    
>                                                           ] [       730][rest 
>              ] [filter322         ] [filter[{not 
> (header{header(CamelHttpResponseCode)} startsWith 2)}]            ] [         
> 0][rest              ] [removeProperty26  ] 
> [removeProperty[originalMessage-restOperation]                                
>  ] [         
> 0]Exchange---------------------------------------------------------------------------------------------------------------------------------------Exchange[
>         Id                  
> ID-ip-172-31-47-76-eu-west-3-compute-internal-1756011685611-338-1        
> ExchangePattern     InOnly        Headers             
> {breadcrumbId=ID-ip-172-31-47-76-eu-west-3-compute-internal-1756011685611-338-1,
>  Cache-Control=no-cache, private, CamelHttpMethod=GET, 
> CamelHttpResponseCode=200, CamelHttpResponseText=OK, 
> CamelHttpUri=https://api.cloudzeta.monstock.net/api/v1/integration-bot?limit=0,
>  CamelRedelivered=false, CamelRedeliveryCounter=0, Connection=keep-alive, 
> Content-Type=application/json, Date=Sun, 24 Aug 2025 05:24:33 GMT, 
> firedTime=Sun Aug 24 05:24:32 UTC 2025, 
> Strict-Transport-Security=max-age=15724800; includeSubDomains, 
> token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbmRfdG9rZW5fZGF0ZSI6MTUzNDY4MTU3OSwidXNlcl9pZCI6MTgwLCJjb21wYW55X2lkIjoxNjksImVudl9pZCI6NSwic3ViX3ByZW1pdW0iOiJzdGFuZGFyZCIsImxhbmd1YWdlIjoiZnIiLCJ3ZWJzaXRlIjoiaHR0cDpcL1wvYXBpLmNsb3VkYmV0YS5tb25zdG9jay5uZXQiLCJhY2Nlc3NfaWQiOiIxLDE3LDE4LDIyLDIzLDI1LDI3LDI4LDMzLDM0LDM1LDM2LDQ1LDQ2LDQ3LDQ5LDUxLCJ9.be0eRgLHW_IjoiHpZ_baSf8OWJ2nJkgaqjnRs2WDH3Y,
>  Transfer-Encoding=chunked, X-Content-Type-Options=: nosniff, 
> X-Frame-Options=SAMEORIGIN, 
> X-Gravitee-Request-Id=c269dcd8-9149-472a-a9dc-d89149e72a36, 
> X-Gravitee-Transaction-Id=c269dcd8-9149-472a-a9dc-d89149e72a36, 
> X-XSS-Protection=1; mode=block}        BodyType            
> org.apache.camel.converter.stream.FileInputStreamCache        Body            
>     [Body is instance of 
> org.apache.camel.StreamCache]]Stacktrace---------------------------------------------------------------------------------------------------------------------------------------org.apache.camel.RuntimeCamelException:
>  Cannot reset stream from file 
> /home/ec2-user/fuse-karaf-7.4.0.fuse-740028-redhat-00001/data/tmp/camel/camel-tmp-63440d23-2e89-4b4d-a795-094a91fb7c7f/cos3437200545289512276.tmp
>         at 
> org.apache.camel.converter.stream.FileInputStreamCache.reset(FileInputStreamCache.java:88)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.after(CamelInternalProcessor.java:827)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.after(CamelInternalProcessor.java:789)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.impl.MDCUnitOfWork$MDCCallback.done(MDCUnitOfWork.java:242) 
> ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:579)
>  [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.Pipeline.process(Pipeline.java:138) 
> ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.Pipeline.process(Pipeline.java:101) 
> ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.component.direct.DirectBlockingProducer.process(DirectBlockingProducer.java:53)
>  ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:148) 
> ~[90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
>  [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
>  [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:197)
>  [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:79) 
> [90:org.apache.camel.camel-core:2.21.0.fuse-740039-redhat-00001]        at 
> java.util.TimerThread.mainLoop(Timer.java:555) [?:?]        at 
> java.util.TimerThread.run(Timer.java:505) [?:?]
>
>
--

Reply via email to