Oct 222010
 

While playing with Groovy and Db4o I ran across a few errors that nearly put me right off Db4o. But after half a day tinkering I have found that it’s not really a problem with Db4o. If you are getting any of the following errors when trying to use Db4o and Groovy then perhaps this post can help.

Errors:

java.lang.ClassCastException
cannot be cast to com.db4o.reflect.generic.GenericObject // or person.getClass() is this.
// When trying to access a method or property of a retrieved object.
groovy.lang.MissingMethodException
groovy.lang.MissingPropertyException
(G) Person // GenericObject, e.g: println person

Continue reading »