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(java): add missing build-time configurations for native-image support by mpeddada1 · Pull Request #685 · googleapis/java-core

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

Conversation

@mpeddada1

@mpeddada1 mpeddada1 commented Jan 24, 2022

Copy link
Copy Markdown
Contributor

This PR adds some missing configurations for native-image build.

Running mvn test -Pnative locally for googleapis/java-bigquerystorage is resulting in the following error message:

Error: Classes that should be initialized at run time got initialized during image building:
 org.slf4j.LoggerFactory was unintentionally initialized at build time. To see why org.slf4j.LoggerFactory got initialized use --trace-class-initialization=org.slf4j.LoggerFactory

Explicitly initializing org.slf4j.LoggerFactory at image build time addresses this issue.

Reference: https://www.graalvm.org/22.0/reference-manual/native-image/ClassInitialization/

Sorry, something went wrong.

Uh oh!

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

All reactions
@mpeddada1
fix(java): initialize LoggerFactory at build time
b913339
@mpeddada1
mpeddada1 requested review from a team, Neenu1995, meltsufin and suztomo January 24, 2022 16:56
@mpeddada1 mpeddada1 changed the title fix(java): add missing build-time configurations for native-image build fix(java): add missing build-time configurations for native-image support Jan 24, 2022
suztomo
suztomo approved these changes Jan 24, 2022
View reviewed changes
@mpeddada1
mpeddada1 merged commit eb3aba2 into main Jan 25, 2022
@mpeddada1
mpeddada1 deleted the add-native-config branch January 25, 2022 15:45
@release-please release-please Bot mentioned this pull request Jan 25, 2022
chore(main): release 2.4.0 #678
Merged
@mpeddada1 mpeddada1 mentioned this pull request Apr 8, 2024
fix: remove unnecessary slf4j and AbstractGoogleClientRequest native image configs googleapis/sdk-platform-java#2628
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@Neenu1995 Neenu1995 Awaiting requested review from Neenu1995
@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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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.