oracle / oracle/oci-java-sdk

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

Open
#551 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
Dominant language
Java
Stars
243
Forks
171
Avg merge
30m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Maven compiler failure in CommonETLUtils.java at the SecretsClient constructor with OCI SDK 3.25.1. Compare the resolved dependencies and SecretsClient/BaseSyncClient availability with version 2.51.2. Done means the reported build compiles successfully with the supported dependency set.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, build-system, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.