camel-flatpack dataformat example in fuse

Solution Verified - Updated -

Issue

  • We have the following in out pom.xml file,
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-flatpack</artifactId>
    <version>2.18.3</version> 
</dependency> 
  • We then set up a route in RouteBuilder for testing,
@Override
    public void configure() throws Exception {
FlatpackDataFormat df = new FlatpackDataFormat();
        df.setDefinition("resources/INVENTORY-Delimited.pzmap.xml");
        df.setFixed(false);
        df.setDelimiter(',');
        df.setIgnoreFirstRecord(true);
        from("file:data/inbound?noop=true").unmarshal(df).log("unmarshal fine");
    }
  • We are getting compile error saying: The type org.apache.camel.spi.DataFormatName cannot be resolved. It is indirectly referenced from required .class files.
    Based on the online doc here, http://camel.apache.org/flatpack-dataformat.html, we do not find anything missing in the pom.xml. Could you tell what the error means and how to resolve it? We are using camel 2.15.1.redhat-620133.

Environment

  • Red Hat JBoss Fuse
    • 6.3
  • Apache Camel
    • camel-flatpack

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content