On Fuse 6.2.1, camel-xmljson unmarshaling fails with an exception

Solution In Progress - Updated -

Issue

A Camel route deployed on Fuse 6.2.1 GA has the following form:

 <from uri="jetty:http://localhost:9091/something?matchOnUriPrefix=true"></from>
    <unmarshal ref="xmljson"></unmarshal>

At runtime this route fails with a 300-line exception, the core element of which is this:

java.lang.NoClassDefFoundError: nu/xom/ParentNode
        at org.apache.camel.dataformat.xmljson.XmlJsonDataFormat.doStart(XmlJsonDataFormat.java:64)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)
        at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)
        ....

However, the Xom bundle has been installed (osgi:install mvn:xom/xom/1.2.5), as has the camel-xmljson feature.

The problem seems not to be reproducible in Fuse releases prior to 6.2.1 GA.

Environment

  • Red Hat JBoss Fuse
    • 6.2.1 GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.