'@QueryParam of a List throwing NumberFormatException
I have an endpoint defined as:
@GET
@Produces("application/vnd.campus.api.v1+json")
public Response getFiles(@QueryParam("category-type") List<Long> categoryType,
@QueryParam("extension-type") List<Long> extensionType,
@DefaultValue("") @QueryParam("query") String query,
@DefaultValue("date") @QueryParam("order-property") String orderProperty,
@DefaultValue("desc") @QueryParam("order-direction") String orderDirection,
@DefaultValue("1") @QueryParam("page") Integer page,
@DefaultValue("10") @QueryParam("page-size") Integer pageSize) {
....
}
but when i make an call to: http://localhost:8080/files?page=1&pageSize=10&category-type=1,2&order-property=date&order-direction=desc&extension-type=2
I get a NumberFormatException (i don't even enter the controller, i just catched the exception with an exceptionmapper): 
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
