senayuki opened a new issue, #3212:
URL: https://github.com/apache/camel-k/issues/3212

   I trying to use fastjson instance of jackson, so I wrote this yaml
   ```yaml
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
     name: jackson-test
     namespace: camel
   spec:
     dependencies:
     - mvn:mysql:mysql-connector-java:8.0.28
     - mvn:org.apache.commons:commons-dbcp2:2.8.0
     - mvn:com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.2
     flows:
     - from:
         steps:
         - to:
             uri: freemarker:sql.ftl?contentCache=false
         - to:
             uri: (hidden bean)
         - marshal:
           json: 
              library: fastjson
         uri: rest:get:/
   ```
   
   And I got this error in container
   `java.lang.IllegalArgumentException: Unexpected type: class 
org.apache.camel.model.dataformat.JsonDataFormat`
   
   camel-k 1.8.1, camel
   
   I'm very confused. Why doesn't the "library" usage I found in the unit test 
of the source code work.
   In addition, I think the yaml file of camel-k also puzzles me when I refer 
to the java example of camel. I don't know how to convert them accurately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to