I tried <convertBodyTo type=„java.lang.String“>. If I try that:
...invalidpayloadexception: no body available of type: java.lang.String but has 
value: UnpooledUnsafeDirectByteBuf(freed) of type: 
io.netty.buffer.UnpooledUnsafeDirectByteBuf on...

I am sorry, logging does and did not really work. I had many headers that 
looked like the body. The body is of type UnpooledUnsafeDirectByteBuf. It does 
not show with the log-component. And it does not show using the log eip.

Cheers, Thomas.


> Am 20.01.2016 um 11:27 schrieb Willem Jiang <[email protected]>:
> 
> Can you just turn the message into String before logging it?
> It looks like the UnpooledUnsafeDirectByteBuf is consumed.
> 
> --  
> Willem Jiang
> 
> 
> Blog: http://willemjiang.blogspot.com (English)  
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang  
> Weibo: 姜宁willem
> 
> 
> 
> On January 19, 2016 at 11:54:39 PM, Walzer, Thomas 
> ([email protected]) wrote:
>> Hi,
>> 
>> camel-2.15.2
>> 
>> I can successfully send to a HL7-Server, however I have troubles accessing 
>> the resulting  
>> ACK.
>> Unfortunately it is of type UnpooledUnsafeDirectByteBuf and type conversion 
>> to string  
>> fails:
>> 
>> ....On delivery attempt: 2 caught: org.apache.camel.TypeConversionException: 
>>  
>> Error during type conversion from type: java.lang.String to the required 
>> type: java.lang.String  
>> with value UnpooledUnsafeDirectByteBuf(freed) due 
>> io.netty.util.IllegalReferenceCountException:  
>> refCnt: 0
>> 
>> Any ideas how to work with the ACK (besides logging which works)?
>> 
>> Cheers, Thomas.
>> 
> 

Reply via email to