java - javax.ws.rs.core.Response.readEntity() stuck in infinite loop -


i'm using foo f = response.readentity(foo.class) entity javax.ws.rs.core.response object.

the problem statement seemingly stuck in loop (using 100% of cpu according htop) until jvm terminates lack of memory.

i've tried looking debugger, function time-sensitive , service throws timeoutexception when try execute step-by-step trace.

the problem not directly related readentity() function: query parameters weren't being sent correctly api, search arguments ended being null in sql query. this, coupled default behavior of database being return complete dataset if no arguments passed, resulted in readentity() method being passed many entries process (neither infinite nor loop).

if else ever has readentity() freeze up, consider possibility inadvertently passing inordinate amount of data in response object.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -