Skip to Main Content

Cloud Platform

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to run ObjectStorageSyncExample.java

2945597Feb 17 2017 — edited Mar 9 2017

Hi, I was trying to run the example java code at https://github.com/oracle/bmcs-java-sdk/blob/master/bmc-examples/src/main/java/ObjectStorageSyncExample.java

But I found the following exception:

Using namespace: oracledatacloud

Exception in thread "main" com.oracle.bmc.model.BmcException: (404, NamespaceNotFound, false) You do not have authorization to perform this request, or the requested resource could not be found. (opc-request-id: 5f9fbdc4-d82e-0722-31ea-f9af6288b9e1)

  at com.oracle.bmc.http.internal.ResponseHelper.throwIfNotSuccessful(ResponseHelper.java:91)

  at com.oracle.bmc.http.internal.ResponseConversionFunctionFactory$ValidatingParseResponseFunction.apply(ResponseConversionFunctionFactory.java:87)

  at com.oracle.bmc.http.internal.ResponseConversionFunctionFactory$ValidatingParseResponseFunction.apply(ResponseConversionFunctionFactory.java:83)

  at com.oracle.bmc.objectstorage.internal.http.ListBucketsConverter$1.apply(ListBucketsConverter.java:86)

  at com.oracle.bmc.objectstorage.internal.http.ListBucketsConverter$1.apply(ListBucketsConverter.java:78)

  at com.oracle.bmc.objectstorage.ObjectStorageClient.listBuckets(ObjectStorageClient.java:207)

  at oracle.bluekai.cdss.ObjectStorageSyncExample.main(ObjectStorageSyncExample.java:44)

It looks like I can get the namespace but it reports NamespaceNotNotFound when listing buckets in the namespace. Any help for this problem is welcome. Thanks!

This post has been answered by Joe Levy-Oracle on Feb 18 2017
Jump to Answer
Comments
Post Details
Added on Feb 17 2017
1 comment
913 views