[Jersey] jersey-client 2.14

From: Tomaz Majerhold <>
Date: Wed, 17 Dec 2014 14:53:17 +0100

How the client read Collection<Idm>()

1) On server side:
public Collection<Idm> serachIdms

and server side generate XML I can see it in TCP/IP monitor

2) On the client side I have problem

clientResponse = webResource
                                     .queryParam("url", url)
                                     .queryParam("description", description)

result = (Collection<Idm>) clientResponse.getEntity(Collection.class);

com.sun.jersey.api.client.ClientHandlerException: A message body reader
for Java class java.util.Collection, and Java type interface
java.util.Collection, and MIME media type application/xml was not found

Any idea what is wrong?

Regards, Tomaz