I googled this error, and found a number of complaints about this coming from people who started seeing this error after upgrading to Railo 4 from 3. Others might have some solutions, but in the meantime you might check these threads to see if they shed any light on the issue:
I’ve removed parent property but got same error. However I would add that if the table is empty, I get an empty query object, but if I insert a record I got the error.
Actually, I don’t think you want to extend coldbox.system.orm.hibernate.BaseORMService on an orm entity.
Were you thinking of coldbox.system.hibernate.ActiveEntity instead?
Nice to see so many find that post useful, as it stands I haven’t done much work on this and will revisit it again soon. I was actually converting phpBB at the time over to a ColdBox application for fun, didn’t get very far, but this was one of the things that phpBB uses for its forums.
When I began this, I looked at converting a java snippet over and as that uses ORM Events that ColdFusion doesn’t have like pre/postFlush which a lot of this code should have been using. Anyway I raised this with adobe 3-4 years ago and still waiting for these ORM Events to be available to ColdFusion.
In the meantime, make sure you do a Flush() any time you update the lft and rgt columns, which is pretty much every request. The downside at the moment is that level of caching goes out the window. Otherwise these values will get out of sync with each other.