Skip to content
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

run nativeTest with custom-runtime and function-api-proxy in the classpath #1708

Merged
merged 7 commits into from
May 4, 2023

Conversation

sdelamo
Copy link
Contributor

@sdelamo sdelamo commented May 4, 2023

No description provided.

@sdelamo sdelamo requested a review from graemerocher May 4, 2023 12:26
@sdelamo sdelamo changed the title Graal run nativeTest with custom-runtime and function-api-proxy in the classpath May 4, 2023
@@ -1 +0,0 @@
Args = --initialize-at-run-time=io.micronaut.function.aws.proxy --initialize-at-build-time=io.micronaut.function.aws.proxy.model.factory.MicronautAwsProxyResponseFactory
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I don't remove this, just by adding the dependency micronaut-function-aws-api-proxy, I was getting:

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
To see how the classes got initialized, use --trace-class-initialization=org.slf4j.LoggerFactory
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception

@graemerocher graemerocher marked this pull request as draft May 4, 2023 13:22
@graemerocher graemerocher self-assigned this May 4, 2023
@graemerocher graemerocher marked this pull request as ready for review May 4, 2023 13:35
@sonarcloud
Copy link

sonarcloud bot commented May 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sdelamo
Copy link
Contributor Author

sdelamo commented May 4, 2023

Thanks for the help @graemerocher

@sdelamo sdelamo merged commit 26bfc92 into master May 4, 2023
@sdelamo sdelamo deleted the graal branch May 4, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants