Nevermind, I was being silly. Links go on the Response, not in the entity body.
Sorry for the noise,
Eric
-----Original Message-----
From: Eric Stein
Sent: Friday, January 17, 2014 2:40 PM
To: users_at_jersey.java.net
Subject: Serializing a Link with Jackson
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