Java EE JPA (GLassfish) tutorial throws ClassCastException

#1

When launching the Guestbook tutorial for the second time (after a server restart)
I get a ClassCastException:

java.lang.ClassCastException: guest.Guest cannot be cast to guest.Guest

The first time (when the db is created) persisting and retrieving works fine.
Using the explorer on the db file shows the objects I persisted.

I followed the exact steps as described in the tutorial. Did I miss something?

- Java 1.7.0_03
- ObjectDB 2.4.5_06
- GlassFish Server Open Source Edition 3.1.2.2

#2

It was a regression in version 2.4.5.

Please try version 2.4.6 that should work well.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Just upgraded to 2.4.6, work perfectly, Thanks!


Post Reply

To post a reply and/or subscribe to update notifications - please login