Hot deployment of osgi application leads to exception - Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type.

Solution Verified - Updated -

Issue

  • When we do the hot deployment for a OSGI bundle, the jboss console says the corresponding bundle started successfully saying Karaf archive 'D:\FUSE\SERVERS\KARAF\deploy*****-process-1.0.0-SNAPSHOT.kar' has been updated; redeploying.

  • Logs

Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: xyz.foo.api.canonical.choicecontract.ContractsChoiceRequest to the required type: xyz.foo.api.canonical.generic.GenericRequest with value xyz.foo.api.canonical.choicecontract.ContractsChoiceRequest@52d300fc]
    at org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:107)
    at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:91)
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)

But when we run the Rest webservice the Fuse throws error on already working/existing bundle.

Environment

  • Red Hat JBoss Fuse
    • 6.3.0

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