Application error: resteasy-servlet did not complete its transaction

2013-08-01 11:30:18,176 ERROR [org.jboss.web.tomcat.service.jca.CachedConnectionValve] (http- Application error: resteasy-servlet did not complete its transaction

The above is an error which I am getting in the server console. I am making a request with a certain client and if the client is null I am returning the response. I think this is because I am retuning the response without executing the full code.

The following block is making this error

   Users client = PersistanceService.findModel(Users.class, request.getClientId());
    //checking if its a valid client
    if (client == null) {
        LOGGER.warn("User not found : invalid client");
        return response;

What should I do to avoid this?


Have you build you response?

If not this should work:

return Response.status(theHTTPCOde).entity(yourBody/Message).build()

You could try something like this:

return Response.status(Response.Status.NOT_FOUND).entity("User not found : invalid client").build()

Need Your Help

Remove White Flicker after splashscreen phonegap 3.3

cordova phonegap-plugins phonegap-build cordova-3

How is it possible to create an app, add the splashscreen plugin, the splashscreen should disappear when the device is ready and no WHITE FLICKER to appear?? This happends on Adobe build and also o...

Rendering HTML Link in SSRS is omitting the target attribute

html sql-server-2008 reporting-services ssrs-2008

I am using SQL reporting services 2008 R2, and in one of my reports I am using the Placeholder text to render an html link (anchor) to open a page in another window,