-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud Deployment error - Could not initialize class org.bytedeco.javacpp.opencv_highgui #1490
Comments
Check the cause of the exception, it will tell you what's going on. It
might also be caused by a previous exception, so check the log for all of
them.
|
Am I supposed to have all these dependancies... org.bytedeco.javacpp-presets » opencv org.bytedeco.javacpp-presets » ffmpeg org.bytedeco » javacv org.bytedeco » javacpp Previously I had only org.bytedeco.javacpp-presets opencv-platform 4.0.1-1.4.4I'm using this only for a facial recognition service using Fisherfaces... Can you tell me which are the ones required for Loader.load(opencv_java.class) for the project to build without taking up space... |
This is the detailed log.... 2020-08-10T03:12:15.681+0000 [APP/PROC/WEB/0] ERR 2020-08-10 03:12:15 DEBUG DispatcherServlet:1093 - Failed to complete request: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_highgui |
You can still just include opencv-platform, that works. |
But Still the deployment is throwing error... |
You'll need to find where the first exception occurs |
This is the log... DispatcherServlet:1093 - Failed to complete request: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_highgui My pom has only... org.bytedeco.javacpp-presets opencv-platform 4.0.1-1.4.4 |
It fails before that. You'll need to look at that stack trace.
|
BTW, what is usually missing for cloud deployment is an installation of GTK. |
I'm assuming that installing GTK solved this issue, but let me know if it doesn't. Thanks! |
Duplicate of bytedeco/javacpp-presets#593 |
I had added Loader.load(opencv_java.class);
to my source code and build the .war file for my web app. But the deployment is throwing the following error while loading the class..
DispatcherServlet:1093 - Failed to complete request: org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.opencv_highgui
But the web app works fine when it is run on a local server..
kindly help me resolve the issue ASAP..(Deployment pending..PS)
The text was updated successfully, but these errors were encountered: