camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john robens <>
Subject XML file input - NoTypeConversionAvailableException
Date Mon, 22 Feb 2010 12:46:16 GMT

I have this error - which seems relatively common except that my twist seems
to happen when am running camel from a jar file not from the mvn:camel

> Works fine when run under "mvn camel:run"
> Fails when run java -jar

Is this a known thing, or do I need debugging hints to delve into a
classpath? Look at the camel converters?

Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
converter available to convert from type:
org.apache.camel.component.file.GenericFile to the required type: with value GenericFile[pclient99981]]

a) XML file is defined in directory
b) Bean defined with @XmlRootElement(name = "notice")
c) POM file has camel-jaxb (camel 2.2.0)
d) route is as per ETL
example: from("file:../../../data/notice?noop=true").convertBodyTo(Notice.class).to("");
e) camel-maven-plugin has no particular arguments
f) maven-assembly-plugin used to build a jar file:




g) I can see jaxb in the resulting jar file:    0  02-10-10 23:25


0434 996 607

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message