[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Camel Get Confused REST - URL param

Hi folks,

I'm using Camel Rest (with *restlet* component) and I have the following

.bean(OrderService.class, "findOrderById")

.bean(OrderService.class, "findOrderByCustomerId")

The problem is that the */order/customer* doesn't works (see Exception
below). *The parameters for /customer comes from JWT*...

java.lang.String to the required type: java.lang.Long with value customer
due Illegal characters: customer

I think that camel is confusing the ../{orderId} parameter with
If I change the /customer for /customer/orders it's works.

The same idea in Spring Boot could have done with:

public Order getOrder(@PathVariable Long orderId) {
return orderRepo.findOne(orderId);
public List<Order> getOrder() {
return orderRepo.listOrderByCustomer(1l);

Any idea about what's happening?

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03162.html on line 108
Call Stack
10.0006363544{main}( ).../msg03162.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03162.html on line 108
Call Stack
10.0006363544{main}( ).../msg03162.html:0