-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Dependeny Error- NoClass DefFoundError -va.lang.NoClassDefFoundError: com/google/auth/Servi ceAccountSigner #731
Comments
Hi Guys , Did you get a chance to look into above issue ? |
@dineshchandra18 I'm not sure how you're encountering this issue, did you try following the instructions in the README.md file? I just was able to run the sample with the basic settings, e.g.: Build the sample
Run the sample against basic text
See the output
|
@dineshchandra18 : Please see if the workaround mentioned here helps. googleapis/google-cloud-java#2192 |
Notice: this issue has been closed because it has been inactive for 685 days. You may reopen this issue if it has been closed in error. |
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.8](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.7...v0.122.8) (2021-12-03) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-errorreporting/issues/1266)) ([#712](https://www.github.com/googleapis/java-errorreporting/issues/712)) ([a3a45ca](https://www.github.com/googleapis/java-errorreporting/commit/a3a45ca65f218a4171ae4976691a8b355fe586a0)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.3.0 ([#722](https://www.github.com/googleapis/java-errorreporting/issues/722)) ([3f684d0](https://www.github.com/googleapis/java-errorreporting/commit/3f684d0479d84267c3be89eef5b2d4de5911683a)) * update dependency com.google.cloud:google-cloud-core to v2.3.1 ([#724](https://www.github.com/googleapis/java-errorreporting/issues/724)) ([15c8b2d](https://www.github.com/googleapis/java-errorreporting/commit/15c8b2d4f94d2de474ddf046dbd763dcbb11359e)) * update dependency com.google.cloud:google-cloud-core to v2.3.2 ([#730](https://www.github.com/googleapis/java-errorreporting/issues/730)) ([b30e107](https://www.github.com/googleapis/java-errorreporting/commit/b30e1072428edd792efdadb230f761bdafd9724a)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#723](https://www.github.com/googleapis/java-errorreporting/issues/723)) ([aa9f814](https://www.github.com/googleapis/java-errorreporting/commit/aa9f8146d30132c73cccb6aa5c781a4b2cc66e18)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#731](https://www.github.com/googleapis/java-errorreporting/issues/731)) ([86bf4a6](https://www.github.com/googleapis/java-errorreporting/commit/86bf4a62601d3008b9eb441890ad87486a312bc7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.8](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.7...v0.122.8) (2021-12-03) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-errorreporting/issues/1266)) ([#712](https://www.github.com/googleapis/java-errorreporting/issues/712)) ([a3a45ca](https://www.github.com/googleapis/java-errorreporting/commit/a3a45ca65f218a4171ae4976691a8b355fe586a0)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.3.0 ([#722](https://www.github.com/googleapis/java-errorreporting/issues/722)) ([3f684d0](https://www.github.com/googleapis/java-errorreporting/commit/3f684d0479d84267c3be89eef5b2d4de5911683a)) * update dependency com.google.cloud:google-cloud-core to v2.3.1 ([#724](https://www.github.com/googleapis/java-errorreporting/issues/724)) ([15c8b2d](https://www.github.com/googleapis/java-errorreporting/commit/15c8b2d4f94d2de474ddf046dbd763dcbb11359e)) * update dependency com.google.cloud:google-cloud-core to v2.3.2 ([#730](https://www.github.com/googleapis/java-errorreporting/issues/730)) ([b30e107](https://www.github.com/googleapis/java-errorreporting/commit/b30e1072428edd792efdadb230f761bdafd9724a)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#723](https://www.github.com/googleapis/java-errorreporting/issues/723)) ([aa9f814](https://www.github.com/googleapis/java-errorreporting/commit/aa9f8146d30132c73cccb6aa5c781a4b2cc66e18)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#731](https://www.github.com/googleapis/java-errorreporting/issues/731)) ([86bf4a6](https://www.github.com/googleapis/java-errorreporting/commit/86bf4a62601d3008b9eb441890ad87486a312bc7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release \*beep\* \*boop\* --- ### [0.122.8](https://www.github.com/googleapis/java-errorreporting/compare/v0.122.7...v0.122.8) (2021-12-03) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-errorreporting/issues/1266)) ([#712](https://www.github.com/googleapis/java-errorreporting/issues/712)) ([a3a45ca](https://www.github.com/googleapis/java-errorreporting/commit/a3a45ca65f218a4171ae4976691a8b355fe586a0)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.3.0 ([#722](https://www.github.com/googleapis/java-errorreporting/issues/722)) ([3f684d0](https://www.github.com/googleapis/java-errorreporting/commit/3f684d0479d84267c3be89eef5b2d4de5911683a)) * update dependency com.google.cloud:google-cloud-core to v2.3.1 ([#724](https://www.github.com/googleapis/java-errorreporting/issues/724)) ([15c8b2d](https://www.github.com/googleapis/java-errorreporting/commit/15c8b2d4f94d2de474ddf046dbd763dcbb11359e)) * update dependency com.google.cloud:google-cloud-core to v2.3.2 ([#730](https://www.github.com/googleapis/java-errorreporting/issues/730)) ([b30e107](https://www.github.com/googleapis/java-errorreporting/commit/b30e1072428edd792efdadb230f761bdafd9724a)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#723](https://www.github.com/googleapis/java-errorreporting/issues/723)) ([aa9f814](https://www.github.com/googleapis/java-errorreporting/commit/aa9f8146d30132c73cccb6aa5c781a4b2cc66e18)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#731](https://www.github.com/googleapis/java-errorreporting/issues/731)) ([86bf4a6](https://www.github.com/googleapis/java-errorreporting/commit/86bf4a62601d3008b9eb441890ad87486a312bc7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…tion to v0.123.18-beta (#731) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-notification](https://togithub.com/googleapis/java-notification) | `0.123.17-beta` -> `0.123.18-beta` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notification/0.123.18-beta/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notification/0.123.18-beta/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notification/0.123.18-beta/compatibility-slim/0.123.17-beta)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-notification/0.123.18-beta/confidence-slim/0.123.17-beta)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-notification). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMTkuMSIsInVwZGF0ZWRJblZlciI6IjMyLjIxOS4xIn0=-->
…1.0 (#731) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-texttospeech). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNTguMCIsInVwZGF0ZWRJblZlciI6IjMyLjE1OC4wIn0=-->
…6.0 (#731) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
…6.0 (#731) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
…6.0 (#731) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
I am trying to run the language-entities project and finding below runtime errors while executing the app .
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/auth/Servi
ceAccountSigner
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.google.api.gax.core.GoogleCredentialsProvider.getCredentials(Goog
leCredentialsProvider.java:54)
at com.google.cloud.language.v1.LanguageServiceClient.(LanguageSer
viceClient.java:124)
at com.google.cloud.language.v1.LanguageServiceClient.create(LanguageSer
viceClient.java:112)
at com.google.cloud.language.v1.LanguageServiceClient.create(LanguageSer
viceClient.java:103)
at com.google.cloud.language.samples.Analyze.main(Analyze.java:60)
Caused by: java.lang.ClassNotFoundException: com.google.auth.ServiceAccountSigne
r
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 17 more
Also mainClass in POM is not pointed to right file
https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/language/analysis/pom.xml#L56
Pls check and update POM dependencies with necessary exclusions if required.
The text was updated successfully, but these errors were encountered: