Issue #2633: Application not starting after enhancement

Type: Bug ReoprtVersion: 2.8.4Priority: NormalStatus: ClosedReplies: 2
#1

I added the class enhancer to my build script and I get the expected output of a list with the enhanced classes.

Now if I try to deploy my created application I get the following error:

    Caused by: java.lang.AbstractMethodError: Receiver class org.test.app.base.models.Data does not define or inherit an implementation of the resolved method 'abstract void __odbSetTracker(com.objectdb.spi.Tracker)' of interfacecom.objectdb.spi.Trackable.
        at com.objectdb.o.OBC.aa(OBC.java:465)
        at com.objectdb.o.OBC.ai(OBC.java:979)
        at com.objectdb.o.OBC.Zc(OBC.java:800)
        at com.objectdb.o.SRB.a(SRB.java:162)
        at com.objectdb.o.QRR.h(QRR.java:565)
        at com.objectdb.o.QRR.i(QRR.java:225)
        at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:726)

The Data class is a simple @Entity which extends a @MappedSuperclass.

Without the enhancement everything works fine.

Regards

Kevin

#2

Enhancement cannot be partial. If used, all the classes in the hierarchy require enhancement.

If you enhance an entity class but not its super entity class (or mapped superclass) you may get error messages like this one. Please check if the super @MappedSuperclass was enhanced.

ObjectDB Support
#3

Ah, sorry my error, I thought that the .* also included sub directories but it does not.

If i use -s instead of -cp everything works.

Thanks!

Reply