Caching and DBVA

I’m trying to test EH caching with a DBVA project. I turned on EH Caching and generated DB and code. When I try to run it, I get the following error:

java.io.NotSerializableException: com.dummy.test
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)

but com.dummy.test was generated by DBVA. Its hbm file contains the line: (as it is read only)
I’m assuming that com.dummy.test must be serializable but since it’s generated by DBVA not sure why it’s not.

Any ideas?

I noticed that some classes generated with DBVA ‘implements Serializable’ and other don’t. Why is that?

Hi Jvence,

Thank you for your post. Would you mind to attach your project and vp.log file (in VPSuite/bin folder) for investigation? If you don’t want the files to be accessed by public, please send to lilian.wong@visual-paradigm.com
Thanks in advance!

Best regards,
Lilian Wong