Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

How to configure InstancePrincipalsAuthenticationDetailsProvider with an empty proxy

I am trying configure InstancePrincipalsAuthenticationDetailsProvider with a cleared proxy. The equivalent would be to clear the JVM proxy settings before instantiating it. For example System....
powerdive's user avatar
0 votes
2 answers
45 views

Error Encountered an issue when uploading and creating pre-authenticated URLs. process is holding on

We are using OCI Java SDK to integrate Object Storage with our services and facing issues of thread holding. Each call is holding one thread. For example, if we make a call to a pre-authenticated URL ...
Girish R's user avatar
0 votes
1 answer
129 views

Error Uploading to OCI Object Storage - org.glassfish.hk2.api.UnsatisfiedDependencyException:

We are attempting to move from AWS to OCI. We are using Spring boot. I was able to upload files to AWS S3 without any issues. However, moving to OCI Object Storage I am encountering the following ...
Suneet Pathak's user avatar
0 votes
1 answer
684 views

Accessing object storage bucket with a pre-authenticated request using oci java sdk

I have only preauthenticated URL,namespace and bucket name. Is there any way to upload and download data using key with help of oci java sdk. Is there a proper documentation for this, and If there is ...
Sitaram Yadav's user avatar
0 votes
1 answer
94 views

In OCI Java sdk, how to retrieve the information abou the URL of ML user, APEX user

I create an Autonomous database instance and database user, APEX user, Machine learning users via the OCI java SDK API. However, i can not find API which allow me to retrieve the URL for these users. ...
Jian's user avatar
  • 31
2 votes
2 answers
2k views

What are the required maven dependencies to upload files to oracle object storage from Spring Boot 3.0 and Java 17?

I am trying to upload files to oracle Object Storage using Spring Boot 3.0 and Java 17. I am getting the following exception java.util.NoSuchElementException: No http provider available; add ...
Rashid's user avatar
  • 121
0 votes
2 answers
529 views

Automate the login process of Oracle Cloud Interface

I have an web application a running on my local machine. There is a link in the view page to go to Oracle Cloud Interface dashboard. Upon clicking the link, idcs login page appears. Provided the ...
Erfan Ahmed's user avatar
  • 1,613
0 votes
1 answer
194 views

in OCI Java sdk, how to retrieve the autonomous database username and apex workspace restful url?

I am using the Oracle autonomous cloud database and creating a couple of database username with ethe restful web enabled, along with the database schema, i also create some Apex workspace based on ...
Jian's user avatar
  • 31
1 vote
0 answers
604 views

Facing a Client instance has been closed issue when using InstancePrincipalsLoginModule

I am attempting to use OCI Instance Principal authorization with Kafka Producer API to produce message to a OCI streams endpoint. I am referring to the documentation provided here - https://docs....
Abhiram's user avatar
  • 11
1 vote
1 answer
1k views

Upload a MultipartFile to a Oracle ObjectStorage

I have a Rest enpoint that accept a list of MultipartFile like this: @CrossOrigin(origins = "*", methods = {RequestMethod.POST}) @PostMapping(value = "/files", consumes = MediaType....
David_Garcia's user avatar
0 votes
0 answers
1k views

Error Generating the Pre-Authenticated URL from Oracle Cloud Storage (oci-java-sdk)

Getting the Error com.oracle.bmc.model.BmcException: (-1, null, false) Processing exception while communicating to: https://objectstorage.eu-frankfurt-1.oraclecloud.com (outbound opc-request-id: ...
SRATH's user avatar
  • 33
2 votes
1 answer
952 views

Error in creating secret: com.oracle.bmc.model.BmcException: (400, InvalidParameter, false) stage must be one of CURRENT

I am trying to create secret using oci java sdk using this: https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/2.8.0/vault/CreateSecretExample.java.html But getting this error: Exception in ...
Arjun's user avatar
  • 6,731
3 votes
1 answer
5k views

Getting the URL for a bucket or an object using oci-java-sdk

I have already a code to retrieve the objects in the bucket using oci-java-sdk and this is working as expected. I would like to retrieve the URL of the file which was uploaded to the bucket in object ...
JSAT's user avatar
  • 33
0 votes
1 answer
266 views

Resource ownership of GetObjectResponse.InputStream

Who owns the OCI object-storage GetObjectResponse.InputStream resource? Do I need to explicitly close the stream? There is no information about this in the API doc.
akshay's user avatar
  • 239
0 votes
1 answer
539 views

Reason for failure in MultipartObjectAssembler OCI object storage

I'm using MultipartObjectAssembler to upload data from a Database to OCI object storage. Is there a way to know the reason for failure when using multipart upload? When I try to commit assembler I'm ...
akshay's user avatar
  • 239
2 votes
1 answer
155 views

Should com.oracle.bmc.monitoring.MonitoringClient be closed every time after querying for metrics?

In the examples provided on using the Monitoring Client: https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/MonitoringMetricListExample.java https://github.com/oracle/oci-...
aleksandra's user avatar
0 votes
1 answer
194 views

Exception caught When try to terminate a always free ATP database instance

try to terminate a running ATP instance using the following API from oci java sdk. TerminateDbSystemRequest terminateDbSystemRequest = TerminateDbSystemRequest.builder().dbSystemId(dbSystemId).build();...
Jian's user avatar
  • 31
0 votes
1 answer
61 views

which class can be used to create a always free Autonomous database processing instance via the OCI Java Sdk

I plan to use the Oci java Sdk to create an always free ATP instance in the Oracle OCI environment. Check with the examples bundled with oci java sdk and API. It lack details for the Always free ATP ...
Jian's user avatar
  • 31
1 vote
1 answer
2k views

I am getting NoSuchMethodError: com.oracle.bmc.ClientConfiguration.getRetryConfiguration with weblogic server

I am using implementation (group: 'com.oracle.oci.sdk', name: 'oci-java-sdk-dataflow', version: '1.12.5') to use create an application in OCI dataflow. But it's not working and getting below error: "...
Uday Kumar's user avatar
1 vote
1 answer
2k views

Bulk upload and download using OCI Java SDK

I've gone through example here for single file upload and download. https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/UploadObjectExample.java However, I'm not finding any ...
Sourabh's user avatar
  • 33
1 vote
1 answer
2k views

Exception in thread "main" com.oracle.bmc.model.BmcException: (404, NamespaceNotFound, false)

I executed the OCI sample program ObjectStorageGetBucketExample.java and was able to create the bucket and add the file. But, when I ran the ObjectStorageAsyncExample.java and ...
Johnny's user avatar
  • 95
0 votes
1 answer
671 views

Streaming data from on-prem database to Oracle OCI Obejctstorage

I have an on-prem database that has 50GB of JSON data. I'm planning to take the backup of this data to OCI object storage using Java SDK to a single object in a bucket. on-prem database paginates JSON ...
akshay's user avatar
  • 239
0 votes
2 answers
918 views

Gradle setup for OCI Java SDK in Intellij

I'm trying to setup Gradle for OCI Java SDK using implementation 'com.oracle.oci.sdk:oci-java-sdk-bom:1.8.0' provided in https://search.maven.org/artifact/com.oracle.oci.sdk/oci-java-sdk-bom/1.8.0/pom ...
akshay's user avatar
  • 239
2 votes
1 answer
934 views

Why is the region key in Instance OCID is in different format for all regions? [Oracle Cloud Infrastructure]

For Frankfurt region, Instance OCID looks like below. ocid1.instance.oc1.eu-frankfurt-1.abtheljt2tihcyimx3skqhargaklttvljkiueoiqtzzzzzzzzzzzzzzzzzzzzzzzz For Ashburn region, Instance OCID looks like ...
karthik_varma_k's user avatar
0 votes
1 answer
166 views

Can we use the same signer object to sign all the requests?

I need to make mutiple rest api calls for fetching instance, volume and vnic details. Can i reuse the same signer object created for signing the other calls? Signer object method public ...
karthik_varma_k's user avatar
0 votes
1 answer
300 views

How to fetch all the compute metrics in one REST API call?

I need to fetch all the compute metrics (CPUUtilization, MemoryUtilization, ....) in one rest api call. Currently, in documentation we can fetch only one metric related values at a time. Is there a ...
karthik_varma_k's user avatar
1 vote
1 answer
1k views

Exception in thread "main" com.oracle.bmc.model.BmcException: (400, InvalidParameter, false) token recognition error at: ':'

SummarizeMetricsData final String compartment = "ocid1.compartment.oc1..aaaaaaaao6rwmdqqv5264k2hfnlvzlridxj2mhtz3mzycq526bybtxuiyygq"; final String namespace = "oci_computeagent"; final String query =...
karthik_varma_k's user avatar
2 votes
1 answer
2k views

What is the REST API for listing all the compartments in Oracle Cloud Infrastructure?

I need to fetch all the instances (authorized) in the tenancy. In Oracle Cloud documentation, I have seen fetching the instances by compartment ID(ListInstances API). So in order to fetch all ...
karthik_varma_k's user avatar
0 votes
0 answers
1k views

Instance ocid.instance.oc1.eu-frankfurt-1.xxxxxxxxxxxxxxxxxxxxxxxx not found

Code looks like below. String instanceId = "ocid1.instance.oc1.eu-frankfurt-1.abtheljsmrq3yox36wukah52yaeswh6jc4vwjfkc46jxe4nwgnmga7nm7bpq"; String configurationFilePath = "~/.oci/config....
karthik_varma_k's user avatar
2 votes
1 answer
307 views

Can't create instance from java sdk

I am trying to create an OCI instance with the Java SDK. I am getting an error in routeRules. When I commented the following line, I was able to create an instance. But in that machines route is not ...
Shivin's user avatar
  • 33
1 vote
0 answers
1k views

How to read .pem file with a passphrase in Oracle Cloud Infrastructure?

I need to monitor Oracle Cloud Compute VM using REST API. I found the following lines of code for Signing with headers in Oracle documentation. String privateKeyFilename = "/.oci/oci_api_key.pem"; ...
karthik_varma_k's user avatar
0 votes
1 answer
98 views

What are the various metrics for Oracle Cloud Compute VM? What is the REST API for fetching all the metrics?

Any API sample is available with request and response? I have went through oracle cloud documentation, there are no samples only rest end point is available.
karthik_varma_k's user avatar
2 votes
1 answer
3k views

Exception in thread "main" java.lang.IllegalArgumentException: java.io.IOException Invalid DER: length field too big (186)

I am using REST API's for monitoring Oracle Cloud Compute VM. String privateKeyFilename = "/.oci/oci_api_key.pem"; PrivateKey privateKey = loadPrivateKey(privateKeyFilename); RequestSigner signer = ...
karthik_varma_k's user avatar
0 votes
1 answer
142 views

REST API or Java SDK, Which is preferable for monitoring Oracle Cloud Compute VM?

Which one makes process easier, minimum lines to code and easy to use.
karthik_varma_k's user avatar
0 votes
1 answer
91 views

Do we need to enable monitoring for VM in order to monitor Oracle Cloud Compute VM using REST API or Java SDK?

We have to set policy in IAM for API users in order to be authorized. Other than this, any thing has to done? Also in different ways of monitoring (REST API, Java SDK, using Oracle Cloud Agent), In ...
karthik_varma_k's user avatar
2 votes
2 answers
3k views

How to create a configuration file for monitoring Oracle Cloud Compute VM?

I have seen the below lines in oracle cloud documentation. ConfigFile config = ConfigFileReader.parse("~/.oci/config"); ConfigFile configWithProfile = ConfigFileReader.parse("~/.oci/config", "...
karthik_varma_k's user avatar
1 vote
1 answer
198 views

For REST API monitoring in Oracle Cloud Compute VM, do we need to install the Oracle Cloud Agent?

I need to monitor the Oracle Cloud Compute VM using REST API's or Java SDK. So for REST API monitoring do we need to do any set up in VM?
karthik_varma_k's user avatar
1 vote
4 answers
5k views

How to upload a file to OCI Object storage

I am trying to use UploadObjectExample.java code to upload a file to OCI object storage. I am running into connection timeout error while connecting to the object storage URL. The same config file is ...
Raje's user avatar
  • 13
0 votes
1 answer
459 views

How can I used Oracle cloud infrastructure JAVA SDK in .Net application with C# to access storage

As per my knowledge oracle oracle cloud infrastructure API can be used in .Net application to access database.But I don't know if it is possible with JAVA SDK
DEO KUMAR DAS's user avatar
0 votes
1 answer
2k views

Exception in thread "main" java.lang.NoSuchFieldError: id_ecPublicKey

Seeing the following exception on running the "ObjectStorageSyncExample" from the SDK. I have not made any modifications. Configured the ~/.oci/config correctly as well. Exception in thread "main" ...
skiman's user avatar
  • 1
2 votes
1 answer
1k views

oci java sdk via proxy

The Proxy connection area in this page points to an example page which results in a 404. https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm page resulting in 404 https://github.com/...
emc2_ehv's user avatar
0 votes
1 answer
575 views

How to write OCI JAVA SDK logs into Weblogic Server log files

Here I am using Weblogic 12c Server to deploy my web application. In my application I'm using OCI JAVA SDK to interact with Oracle Cloud Infrastructure(OCI) Service. As per the documentation by OCI, "...
Awesome's user avatar
  • 6,549
-1 votes
1 answer
74 views

Java Project created in Eclipse on Windows.How to run this in Ubuntu-Server?

I wrote some programs for Oracle Service Instances using the SDK in Eclipse.I also included some Referenced Libraries in Eclipse Project. Now I want to run those programs from that Eclipse Java ...
Deepak Raj's user avatar
0 votes
2 answers
211 views

How to take Oracle Cloud Database Backup using Oracle Java Cloud SDK?

I want to take Oracle Cloud Database Backup using Oracle Java Cloud SDK. Help me doing this!
Tirumala's user avatar
0 votes
1 answer
889 views

Bare Metal Cloud - How to set authorized ssh keys for compute instances?

I have successfully provisioned Bare Metal Cloud compute instances using the following code: public static Instance createInstance( ComputeClient computeClient, String compartmentId, ...
Joe's user avatar
  • 2,540