Trying to connect to google cloud storage and getting errors
I am trying to connect to google cloud storage and i am facing issues shown below
ERROR [Job]
Caught throwable org/threeten/bp/Duration java.lang.NoClassDefFoundError: org/threeten/bp/Duration at com.google.api.gax.retrying.RetrySettings.newBuilder(RetrySettings.java:138)
at com.google.cloud.ServiceOptions.getDefaultRetrySettingsBuilder(ServiceOptions.java:685)
at com.google.cloud.ServiceOptions.<clinit>(ServiceOptions.java:85)
at com.maf.core.order.impl.DefaultOrderService.uploadFileToGoogleCloud(DefaultOrderService.java:197)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:90)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:1)
at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:38)
at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390)
at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814)
at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767)
at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686)
at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208)
at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
Caused by: java.lang.ClassNotFoundException: org.threeten.bp.Duration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:85)
at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:72)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
I am trying authenticate through
Credentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialFile)).createScoped(Lists.newArrayList(GOOGLE_CLOUD_PATH));
Storage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();
java google-cloud-storage
add a comment |
I am trying to connect to google cloud storage and i am facing issues shown below
ERROR [Job]
Caught throwable org/threeten/bp/Duration java.lang.NoClassDefFoundError: org/threeten/bp/Duration at com.google.api.gax.retrying.RetrySettings.newBuilder(RetrySettings.java:138)
at com.google.cloud.ServiceOptions.getDefaultRetrySettingsBuilder(ServiceOptions.java:685)
at com.google.cloud.ServiceOptions.<clinit>(ServiceOptions.java:85)
at com.maf.core.order.impl.DefaultOrderService.uploadFileToGoogleCloud(DefaultOrderService.java:197)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:90)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:1)
at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:38)
at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390)
at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814)
at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767)
at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686)
at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208)
at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
Caused by: java.lang.ClassNotFoundException: org.threeten.bp.Duration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:85)
at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:72)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
I am trying authenticate through
Credentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialFile)).createScoped(Lists.newArrayList(GOOGLE_CLOUD_PATH));
Storage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();
java google-cloud-storage
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00
add a comment |
I am trying to connect to google cloud storage and i am facing issues shown below
ERROR [Job]
Caught throwable org/threeten/bp/Duration java.lang.NoClassDefFoundError: org/threeten/bp/Duration at com.google.api.gax.retrying.RetrySettings.newBuilder(RetrySettings.java:138)
at com.google.cloud.ServiceOptions.getDefaultRetrySettingsBuilder(ServiceOptions.java:685)
at com.google.cloud.ServiceOptions.<clinit>(ServiceOptions.java:85)
at com.maf.core.order.impl.DefaultOrderService.uploadFileToGoogleCloud(DefaultOrderService.java:197)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:90)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:1)
at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:38)
at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390)
at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814)
at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767)
at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686)
at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208)
at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
Caused by: java.lang.ClassNotFoundException: org.threeten.bp.Duration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:85)
at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:72)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
I am trying authenticate through
Credentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialFile)).createScoped(Lists.newArrayList(GOOGLE_CLOUD_PATH));
Storage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();
java google-cloud-storage
I am trying to connect to google cloud storage and i am facing issues shown below
ERROR [Job]
Caught throwable org/threeten/bp/Duration java.lang.NoClassDefFoundError: org/threeten/bp/Duration at com.google.api.gax.retrying.RetrySettings.newBuilder(RetrySettings.java:138)
at com.google.cloud.ServiceOptions.getDefaultRetrySettingsBuilder(ServiceOptions.java:685)
at com.google.cloud.ServiceOptions.<clinit>(ServiceOptions.java:85)
at com.maf.core.order.impl.DefaultOrderService.uploadFileToGoogleCloud(DefaultOrderService.java:197)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:90)
at com.maf.core.cronjob.consginmentJob.perform(consginmentJob.java:1)
at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:38)
at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1390)
at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:814)
at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:767)
at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:686)
at de.hybris.platform.util.threadpool.PoolableThread.internalRun(PoolableThread.java:208)
at de.hybris.platform.core.threadregistry.RegistrableThread.run(RegistrableThread.java:135)
Caused by: java.lang.ClassNotFoundException: org.threeten.bp.Duration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at de.hybris.bootstrap.loader.YURLClassLoader.loadRegisterAndResolveClass(YURLClassLoader.java:85)
at de.hybris.bootstrap.loader.YURLClassLoader.loadClass(YURLClassLoader.java:72)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 13 more
I am trying authenticate through
Credentials credentials = GoogleCredentials.fromStream(new FileInputStream(credentialFile)).createScoped(Lists.newArrayList(GOOGLE_CLOUD_PATH));
Storage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();
java google-cloud-storage
java google-cloud-storage
edited Nov 23 '18 at 8:47
Rohit Majage
asked Nov 23 '18 at 8:45
Rohit MajageRohit Majage
11
11
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00
add a comment |
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443255%2ftrying-to-connect-to-google-cloud-storage-and-getting-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443255%2ftrying-to-connect-to-google-cloud-storage-and-getting-errors%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
From the stacktrace it seems like you did not include some library.
– PeS
Nov 23 '18 at 8:46
I can give you all the list of libraries which i have added if you want but it doesn't seems to work
– Rohit Majage
Nov 23 '18 at 8:51
Could you provide the minimal code needed to reproduce the issue?
– Maxim
Nov 23 '18 at 11:11
As PeS mentioned, your stack trace indicates that you are missing a library. We would require more information regarding how you are connecting to Cloud Storage. Would it be possible for you to clarify what steps you have taken to connect to the Cloud Storage? Specifically, if you are connecting locally, via App engine or through a VM? This would allow us to narrow down the troubleshooting route of how you are importing your libraries.
– Katayoon
Nov 26 '18 at 23:00
Your stacktrace also indicates that you are using Java, please consider the following link here which highlights how to get started with Cloud Storage Client Libraries. It be my recommendation to use Maven to import your libraries as it is relatively straight forward. Also, would it be possible for you to post the results of your “mvn dependency:tree” and your config for the pom.xml file?
– Katayoon
Nov 26 '18 at 23:00