Enhancement Error: ClassNotFoundException

#1

I download the 2.8.5_03, another exception appeared.

Thanks

---

bmpccdeMac-mini:CloudAI eko$ bash enhancer.sh build/libs/asli-cloudai.jar 


[ObjectDB 2.8.5_03] Failed to process class file of type 'io.grpc.netty.shaded.io.netty.handler.codec.compression.JZlibEncoder' (error 422)

com.objectdb.o.UserException: Failed to process class file of type 'io.grpc.netty.shaded.io.netty.handler.codec.compression.JZlibEncoder'

at com.objectdb.o.MSG.a(MSG.java:77)

at com.objectdb.o.JEL.e(JEL.java:447)

at com.objectdb.o.JEN.g(JEN.java:103)

at com.objectdb.Enhancer.main(Enhancer.java:33)

Caused by: java.lang.NoClassDefFoundError: Lcom/jcraft/jzlib/Deflater;

at java.base/java.lang.Class.getDeclaredFields0(Native Method)

at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3139)

at java.base/java.lang.Class.getDeclaredField(Class.java:2487)

at com.objectdb.o.JEW.aw(JEW.java:302)

at com.objectdb.o.JEW.at(JEW.java:264)

at com.objectdb.o.JEW.at(JEW.java:225)

at com.objectdb.o.JEW.an(JEW.java:189)

at com.objectdb.o.JEL.e(JEL.java:437)

... 2 more

Caused by: java.lang.ClassNotFoundException: com.jcraft.jzlib.Deflater

at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:719)

at com.objectdb.o.ACL.loadClass(ACL.java:132)

at com.objectdb.o.BCL.loadClass(BCL.java:65)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)

... 10 more
#2

Enhancement requires that all referred classes (e.g. by inheritance, interface implementation, field types) will be available in the classpath, but according to this exception the class com.jcraft.jzlib.Deflater is missing.

Please check which enhanced class refers to this class and how, and consider whether this reference is necessary. If it is necessary, extend the classpath that is used on enhancement to include that class.

ObjectDB Support

Reply