I suspect it's the Hibernate query that's not returning anything. Are you sure the database table actually has rows? Are you sure your hibernate query is valid? Is THREAD_ID a string? if so, append single quotes around the id. Having a property named THREAD_ID is very non-standard. Are you sure that's the right property name for your Hibernate POJO?