[java] com.sun.jdi.InvocationException occurred invoking method

so I had same problem here. Found out that my domain instance was getting detached from the hibernate session. I used isAttached() to check and attached the domain using d.attach()