I have never seen that. How are you testing?
It turns out this issue was caused by JProfiler. Running the same test without it allows it to work fine. However it's possible that the modifications that JProfiler makes to the classes was causing this loop to fail.