Skip to content
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

class file for com.oracle.bmc.http.internal.BaseSyncClient not found #551

Open
udayinfy opened this issue Sep 29, 2023 · 2 comments
Open
Labels
SDK Issue pertains to the SDK itself and not specific to any service

Comments

@udayinfy
Copy link

With OCI SDK version 3.25.1 I am getting a build failure with below error:

[main] ERROR org.apache.maven.plugin.compiler.CompilerMojo - /mnt/docker/jenkins/workspace/Build_ppln_faw-etl-services/biapps-etl-services-war/src/main/java/oracle/apps/bi/etl/services/util/CommonETLUtils.java:[4872,9] cannot access com.oracle.bmc.http.internal.BaseSyncClient
  class file for com.oracle.bmc.http.internal.BaseSyncClient not found
[main] INFO org.apache.maven.plugin.compiler.CompilerMojo - 1 error

The error is thrown from the line where new SecretsClient(provider) is called.

InstancePrincipalsAuthenticationDetailsProvider provider = InstancePrincipalsAuthenticationDetailsProvider.builder().build();
        String secret;
        try (SecretsClient client = new SecretsClient(provider)){
            GetSecretBundleRequest getSecretBundleRequest = GetSecretBundleRequest.builder().secretId(secretOcid)
                    .stage(GetSecretBundleRequest.Stage.Current).build();

note: the same code has been working with older version e.g version 2.51.2

@KartikShrikantHegde KartikShrikantHegde added the SDK Issue pertains to the SDK itself and not specific to any service label Sep 30, 2023
@kishan0201
Copy link
Member

@udayinfy This could be an issue of mixing and matching the versions, which is not supported and you have to change your project to make all these oci-java-sdk-* versions the same. You can run the attached shell script (in the same directory as your pom.xml) to check the same.
check-oci-java-sdk-versions.sh.zip

@jyotisaini
Copy link

Hi @udayinfy Lets us know if the suggested workaround fixed your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SDK Issue pertains to the SDK itself and not specific to any service
Projects
None yet
Development

No branches or pull requests

4 participants