orpiske commented on a change in pull request #695:
URL: https://github.com/apache/camel-k-runtime/pull/695#discussion_r643158946



##########
File path: 
itests/camel-k-itests-loader-groovy/src/main/java/org/apache/camel/k/loader/yaml/quarkus/Application.java
##########
@@ -37,7 +37,7 @@
 
     @POST
     @Path("/load-routes/{name}")
-    @Consume(MediaType.TEXT_PLAIN)

Review comment:
       Hey @lburgazzoli, would you mind a review about this part, please? I am 
not entirely sure my understanding is correct here, but I assume we need 
`javax.ws.rs.Consumes` instead of `org.apache.camel.Consume` as this could lead 
to bogus setup of our own routes w/ Camel Quarkus 2.0. 
   
   In other words, it would cause our routes to be setup as `text/plain` 
causing the failure:
   
   ```
   Caused by: java.lang.RuntimeException: 
org.apache.camel.FailedToCreateRouteException: Failed to create route route1: 
Route(route1)[From[text/plain] -> [Bean[ref:application-1812... because of No 
endpoint could be found for: text/plain, please check your classpath contains 
the needed Camel component jar.
   ```




-- 
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:
[email protected]


Reply via email to