ObjectDB ObjectDB

Application not starting after enhancement

#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

edit
delete
#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
ObjectDB - Fast Object Database for Java (JPA/JDO)
edit
delete
#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!

edit
delete

Reply

To post on this website please sign in.