-
Notifications
You must be signed in to change notification settings - Fork 161
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
[Not Found]: Class file not found for com.oracle.bmc.http.internal.ExplicitlySetBmcModel #670
Comments
Hi @quantdevv, are you referring to com.oracle.bmc.http.internal.ExplicitlySetBmcModel directly in your own code? If so, could you try changing it to com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel? The class has been moved during the upgrade between 2.x -> 3.x |
Thanks @JoshuaWR for quick response.. No. i'm not using or having any direct reference in my code. & that's the more problematic.... because if i would have used directly then it would be easy to change just class.. but now i'm using OCI SDK FsuDiscovery class or FsuCollection, etc... & it's giving above error any help please..? |
com.oracle.bmc.http.internal.ExplicitlySetBmcModel comes from Java SDK 2.x, and com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel comes from Java SDK 3.x. If you are not yourself referring to this class in your code, then it must be one of your dependencies that's referring to it, and likely pulling in SDK 2.x as well. Could you try calling "mvn dependency:tree -Dincludes=com.oracle.oci.sdk" at the root of your application? This will help find all OCI Java SDK dependencies used, and hopefully you'll be able to find the source of the error this way. One more thing - I see you mentioned you are upgrading to version 3.6.1 - is that correct? That version is very outdated, as we are now up to version 3.62.0 |
@JoshuaWR oh sorry that is typo... i updated to 3.61 .. & i'll check this dependency tree & will let you know if it helps.. Thanks |
After upgrading from OCI Java SDK 2.51.2 to 3.6.1, I'm encountering a build error related to the missing com.oracle.bmc.http.internal.ExplicitlySetBmcModel class.
If i see on documentation page this class is still there but it's detailed page removed.
[https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm/apidocs/com/oracle/bmc/http/client.internal.ExplicitlySetBmcModel.html?is-external=true]
The error occurs during compilation:
[ERROR]:[85,170] cannot access com.oracle.bmc.http.internal.ExplicitlySetBmcModel
[ERROR] class file for com.oracle.bmc.http.internal.ExplicitlySetBmcModel not found
Note: the same code has been working with older version e.g version 2.51.2
as i also looked over issue #551 & my pom.xml contains the similar version for all the oci-sdk-*.
The text was updated successfully, but these errors were encountered: