Hello

I think I've read somewhere that the problem is related with Jetty 
manipulation of dom responses.


I've solved the problem changing the result representations:


@Get
public Representation represent(Variant variant) throws ResourceException {
Representation resultRepresentation = null;
try {
List<Curso> listaCursos = dataService.findCursoEntities();
Aula aula = new Aula();
aula.setCursoCollection(listaCursos);
//resultRepresentation =
// new JaxbRepresentation(cursosOutputMediaType, aula);
resultRepresentation = new StringRepresentation(
new JaxbRepresentation(cursosOutputMediaType, aula).getText());
} catch (Exception ex) {
logger.log(Level.SEVERE, ex.toString(), ex);
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);
}
return resultRepresentation;
}


Sending 'JaxbRepresentation' gives me your error, sending 
StringRepresentation solves the problem.


jp escribio':

> hi,
>
> I can see that I got the following message when using Client:
>
> INFO: The length of the message body is unknown. The entity must be handled 
> carefully and consumed entirely in order to surely release the connection.
>
>
> how do I assure that the connection is released?
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2110454
>
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2186499

Reply via email to