Thursday, 18 February 2010

Javassist Enhancement failed

Just spent the last few hours debugging this.

def adoptChild = {
Parent p = Parent.get(
p.child = Child.findByName(
redirect(action: 'showParentWithChild', id:

def showParentWithChild() {
Parent p = Parent.get( // Javassist Enhancement failed stack trace here

Turned out that the child class had a private constructor (no idea why). I ditched the constructor and everything was back to normal.

No comments: