When trying to use DJL with Quarkus (https://quarkus.io) and using the native image build, it seems to fail with following error:
Error: Error parsing reflection configuration in jar:file:/project/lib/ai.djl.model-zoo-0.12.0.jar!/META-INF/native-image/ai/djl/basicmodelzoo/reflect-config.json:
Could not resolve ai.djl.basicmodelzoo.ZooProvider for reflection configuration. Reason: java.lang.ClassNotFoundException: ai.djl.basicmodelzoo.ZooProvider. To allow unresolvable reflection configuration, use option -H:+AllowIncompleteClasspath
Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option ReflectionConfigurationResources.
com.oracle.svm.core.util.UserError$UserException: Error parsing reflection configuration in jar:file:/project/lib/ai.djl.model-zoo-0.12.0.jar!/META-INF/native-image/ai/djl/basicmodelzoo/reflect-config.json:
Could not resolve ai.djl.basicmodelzoo.ZooProvider for reflection configuration. Reason: java.lang.ClassNotFoundException: ai.djl.basicmodelzoo.ZooProvider. To allow unresolvable reflection configuration, use option -H:+AllowIncompleteClasspath
The native image build is really a black magic for me ... but my guess is that this is caused by a typo in the reflect-config.json file which refers to class ai.djl.basicmodelzoo.ZooProvider which does not exist. There is either class ai.djl.basicmodelzoo.BasicZooProvider or the class ai.djl.repository.zoo.ZooProvider which is in different JAR. I guess one of those was supposed to be used here?
When trying to use DJL with Quarkus (https://quarkus.io) and using the native image build, it seems to fail with following error:
The native image build is really a black magic for me ... but my guess is that this is caused by a typo in the
reflect-config.json
file which refers to classai.djl.basicmodelzoo.ZooProvider
which does not exist. There is either classai.djl.basicmodelzoo.BasicZooProvider
or the classai.djl.repository.zoo.ZooProvider
which is in different JAR. I guess one of those was supposed to be used here?