GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: make java.base fields accessible to fix java 17 runtime errors. by mpeddada1 · Pull Request #688 · googleapis/java-os-login

This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Conversation

@mpeddada1

@mpeddada1 mpeddada1 commented May 31, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Fixes #687

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mpeddada1
fix: java 17 reflection issue
ce3b115
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: oslogin Issues related to the googleapis/java-os-login API. labels May 31, 2022
@mpeddada1

mpeddada1 commented May 31, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Now resulting in the following error locally:

[INFO] Running com.google.cloud.oslogin.v1.it.ITSystemTest
May 31, 2022 2:06:21 PM com.google.auth.oauth2.DefaultCredentialsProvider warnAboutProblematicCredentials
WARNING: Your application has authenticated using end user credentials from Google Cloud SDK. We recommend that most server applications use service accounts instead. If your application continues to use end user credentials from Cloud SDK, you might receive a "quota exceeded" or "API not enabled" error. For more information about service accounts, see https://cloud.google.com/docs/authentication/.
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.216 s <<< FAILURE! - in com.google.cloud.oslogin.v1.it.ITSystemTest
[ERROR] com.google.cloud.oslogin.v1.it.ITSystemTest  Time elapsed: 0.216 s  <<< ERROR!
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.toString()" because the return value of "com.google.gson.JsonObject.get(String)" is null
	at com.google.cloud.oslogin.v1.it.ITSystemTest.getFromCredential(ITSystemTest.java:75)
	at com.google.cloud.oslogin.v1.it.ITSystemTest.setup(ITSystemTest.java:56)

This could be a result of some missing integration test setup on local machine. Testing on the CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mpeddada1 added 3 commits May 31, 2022 14:17
@mpeddada1
java.math
f29863d
@mpeddada1
fix pom formatting
55f25fa
@mpeddada1
add opens for sun.security
5b5bc52
@mpeddada1

mpeddada1 commented May 31, 2022

Copy link
Copy Markdown
Contributor Author

On the CI, we are running into:

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private java.math.BigInteger sun.security.rsa.RSAPrivateCrtKeyImpl.n accessible: module java.base does not "opens sun.security.rsa" to unnamed module @7d907bac
	at com.google.cloud.oslogin.v1.it.ITSystemTest.getFromCredential(ITSystemTest.java:74)
	at com.google.cloud.oslogin.v1.it.ITSystemTest.setup(ITSystemTest.java:56)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mpeddada1 added 6 commits May 31, 2022 15:22
@mpeddada1
fix add-opens
c236f6a
@mpeddada1
add sun.security.pkcs
1df8917
@mpeddada1
try using sun.security
c970048
@mpeddada1
try using sun.security.x509
e93ae43
@mpeddada1
google-cloud-os-login/pom.xml
7042879
@mpeddada1
add java.security
3821d9a
@mpeddada1
mpeddada1 marked this pull request as ready for review May 31, 2022 21:13
@mpeddada1
mpeddada1 requested review from a team, meltsufin and suztomo May 31, 2022 21:13
@mpeddada1 mpeddada1 changed the title fix: java 17 reflection issue fix: make java.base fields accessible to fix java 17 runtime errors. May 31, 2022
@mpeddada1

mpeddada1 commented May 31, 2022

Copy link
Copy Markdown
Contributor Author

All checks are now passing.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

suztomo
suztomo approved these changes Jun 3, 2022
View reviewed changes

@suztomo suztomo left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@suztomo
suztomo merged commit b262f13 into main Jun 3, 2022
@suztomo
suztomo deleted the fix-native-17 branch June 3, 2022 16:57
@release-please release-please Bot mentioned this pull request Jun 3, 2022
chore(main): release 2.2.0 #690
Merged
gcf-merge-on-green Bot pushed a commit that referenced this pull request Jul 1, 2022
@release-please
chore(main): release 2.2.0 (#690)
9ec9f4c
🤖 I have created a release *beep* *boop*
---


## [2.2.0](v2.1.0...v2.2.0) (2022-07-01)


### Features

* Enable REST transport for most of Java and Go clients ([#694](#694)) ([a72656a](a72656a))


### Bug Fixes

* make java.base fields accessible to fix java 17 runtime errors.  ([#688](#688)) ([b262f13](b262f13))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#693](#693)) ([22bd8a0](22bd8a0))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions Bot pushed a commit to suztomo/google-cloud-java that referenced this pull request Jul 1, 2022
@release-please
chore(main): release 2.2.0 (googleapis#690)
a9d186e
🤖 I have created a release *beep* *boop*
---


## [2.2.0](googleapis/java-os-login@v2.1.0...v2.2.0) (2022-07-01)


### Features

* Enable REST transport for most of Java and Go clients ([googleapis#694](googleapis/java-os-login#694)) ([a82410e](googleapis/java-os-login@a82410e))


### Bug Fixes

* make java.base fields accessible to fix java 17 runtime errors.  ([googleapis#688](googleapis/java-os-login#688)) ([51a9a6f](googleapis/java-os-login@51a9a6f))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([googleapis#693](googleapis/java-os-login#693)) ([ecb4469](googleapis/java-os-login@ecb4469))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@lqiu96 lqiu96 mentioned this pull request Oct 24, 2022
chore: Add java17 profile in jar-parent for graalvm googleapis/google-cloud-java#8676
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@meltsufin meltsufin Awaiting requested review from meltsufin
1 more reviewer
@suztomo suztomo suztomo approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: oslogin Issues related to the googleapis/java-os-login API. size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ITSystemTest failing when using standard JDK 17

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mpeddada1 @suztomo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.