HTTP Status 500 - Internal Server Error when return object
<p>I noticed this glassfish error that is due to the REST methods where I return an object with which I produce json:</p>

<pre><code>@GET
@Path("/myUrl")
@Produces("application/json")
MyObject getObject(@Context UriInfo info){
...
return new MyObject(...);
}
</code></pre>

<p>how to resolve this problem ?</p>