-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOLVED]Cant specify fastjson when marshal #3212
Comments
It should be:
your indentation seems to be wrong |
It's a different way of writing routes through YAML, so there no automatic conversion, for the moment, from plain camel or Java DSL, to YAML. |
Also Jackson is a thing, Fastjson is another thing. |
Ow ow ow ow, I did make an indentation mistake. I was stupid! Thanks for your help! |
My suggestion is to use jitpack while developing. |
I trying to use fastjson instance of jackson, with camel-k 1.8.1, so I wrote this yaml
And I got this error in container
java.lang.IllegalArgumentException: Unexpected type: class org.apache.camel.model.dataformat.JsonDataFormat
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.
The text was updated successfully, but these errors were encountered: