Hm, what does it mean "the statement doesn't return"? Does it mean the thread is stuck? Could you attach a thread dump (e.g. by means of jvisualvm)?