[GitHub] [camel-quarkus] philschaller opened a new issue #637: Unmarshalling with Jackson in multiple routes with different classes

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller opened a new issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
philschaller opened a new issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637
 
 
   **Describe the bug**
   Camel unmarshalling uses only one class for all routes instead of the programmatically configured ones as used in the following line:
   
   `unmarshal().json(JsonLibrary.Jackson, POJO_1.class)`
   
   Calling unmarhal() in a different route (same RouteBuilder or not does not matter) with POJO_2 leads to Jackson exceptions because it expects POJO_1.
   
   **Expected behavior**
   Isolated unmarshalling for all routes and invocations. Works with Camel 2.x (without Quarkus).
   
   **Workaround**
   Manually unmarshalling with Jackson ObjectMapper.
   
   `process((exchange) -> {
           POJO body = new ObjectMapper().readValue(exchange.getIn().getBody(String.class), POJO.class);
   });`
   
   **Environment**
   Camel Quarkus 1.0.0-M2
   JDK 11

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-576201641
 
 
   That’s a know issue that should be fixed in the next milestone

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-576203310
 
 
   Sorry
   
   Missed it in the open/closed issues.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-576203768
 
 
   no worries it did not appear as an issue but pop up while discussing another topic :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-576207454
 
 
   Ahhh, then I'm relieved :-)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-576767261
 
 
   @philschaller do you mind sending a pr that enhance the jackson tests to include this scenario ?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-577021021
 
 
   You mean as part of camel-quarkus/integration-tests/jackson/ ?
   No promises, but I can give it a try.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
lburgazzoli commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-577054649
 
 
   Yes that one, if you need we can help you, just reach us here on on the camel-quarkus gitter room

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller closed issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
philschaller closed issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services
Reply | Threaded
Open this post in threaded view
|

[GitHub] [camel-quarkus] philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes

GitBox
In reply to this post by GitBox
philschaller commented on issue #637: Unmarshalling with Jackson in multiple routes with different classes
URL: https://github.com/apache/camel-quarkus/issues/637#issuecomment-581036397
 
 
   Solved by 1.0.0-M3

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services