users@jersey.java.net

[Jersey] Serializing a Link with Jackson

From: Eric Stein <steine_at_locustec.com>
Date: Fri, 17 Jan 2014 19:40:24 +0000

I'm using Jersey 2.3.1 with Jackson to write my web API. I've got a bean that I'm trying to return to the client. The bean was working fine. I then changed a couple of URIs in the bean to Links, and I started getting this error:

org.codehaus.jackson.map.JsonMappingException: No serializer found for class org.glassfish.jersey.uri.internal.JerseyUriBuilder and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.locustec.eportal.rest.BeanCollection["self"]->org.glassfish.jersey.message.internal.JerseyLink["uriBuilder"])

Does anybody know what's going on or how I can fix this?

Thanks,
Eric