You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claudio Miranda (Jira)" <ji...@apache.org> on 2024/01/17 18:37:00 UTC

[jira] [Created] (CAMEL-20340) camel dependency list throws Exception when running yaml dsl

Claudio Miranda created CAMEL-20340:
---------------------------------------

             Summary: camel dependency list throws Exception when running yaml dsl
                 Key: CAMEL-20340
                 URL: https://issues.apache.org/jira/browse/CAMEL-20340
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
    Affects Versions: 4.3.0
            Reporter: Claudio Miranda


The "camel dependency list" worked nice with java dsl, but the yaml dsl throws an error
{code:java}
Caused by: java.lang.ClassCastException: class org.apache.camel.main.stub.StubDataFormat cannot be cast to class org.apache.camel.component.jacksonxml.JacksonXMLDataFormat (org.apache.camel.main.stub.StubDataFormat is in unnamed module of loader 'app'; org.apache.camel.component.jacksonxml.JacksonXMLDataFormat is in unnamed module of loader org.apache.camel.main.download.DependencyDownloaderClassLoader @4a8a60bc)
{code}
The yaml route
{code:java}
- route:
    from:
      uri: rest:post:/
      steps:
        - unmarshal:
            jackson-xml:
              unmarshalType: java.util.Map
        - to:
            uri: log:info
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)