JsonMappingException: How to transfert a Objectify Entity (with Key) through Restlet
问题 I am developping an Android Application, comunicating with a GAE server + Objectify DB. I choose Restlet for rest framework. I have a problem when I try to retrieve an Entity with a Key attribute. The server throws an error: org.codehaus.jackson.map.JsonMappingException: Direct self-reference leading to cycle (through reference chain: java.util.ArrayList[0]->com.my.model.MyMessage["senderKey"]->com.googlecode.objectify.Key["root"]) Here is my model (very simple): public class MyMessage