Hi,
I'm running with Java 8 (1.8.0_152 on windows 10 and OpenJDK 1.8.0_342 on 
Ubuntu 22).

I have a very simple route which takes files and puts them on a queue 
(activemq).

        from(dataPath)
                .log("Processing ${file:name}")
                .convertBodyTo(String.class)
                .to(queueName);

This runs fine under Windows 10/1.8.0_152 but not on Linux. On Linux I get 
TypeConverter errors:

org.apache.camel.InvalidPayloadException: No body available of type: 
java.lang.String but has value: 
GenericFile[/data/to-queues/XXX.xml-1665066664096] of type: 
org.apache.camel.component.file.GenericFile on: XXX.xml-1665066664096.
Caused by: No type converter available to convert from type: 
org.apache.camel.component.file.GenericFile to the required type: 
java.lang.String with value GenericFile[/data/to-queues/XXX.xml-1665066664096].

I've recompiled the source on Linux but still get the same errors.

Going round in circles so any help appreciated
Nick

Reply via email to