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

Native Image build fails #3341

Closed
danielkec opened this issue Aug 31, 2021 · 0 comments · Fixed by #3342
Closed

Native Image build fails #3341

danielkec opened this issue Aug 31, 2021 · 0 comments · Fixed by #3342
Assignees
Labels
bug Something isn't working metrics native-image

Comments

@danielkec
Copy link
Contributor

[WARNING] Error: Detected a started Thread in the image heap. Threads running in the image generator are no longer running at image runtime.  To see how this object got instantiated use --trace-object-instantiation=java.lang.Thread. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
[INFO] [myartifactid:39684]      [total]:  53,651.75 ms,  7.19 GB
[WARNING] Trace: Object was reached by 
[WARNING] 	reading field java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.leader of
[WARNING] 		constant java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue@5d7e337e reached by 
[WARNING] 	reading field java.util.concurrent.ThreadPoolExecutor.workQueue of
[WARNING] 		constant java.util.concurrent.ScheduledThreadPoolExecutor@3722883d reached by 
[WARNING] 	reading field java.util.concurrent.Executors$DelegatedExecutorService.e of
[WARNING] 		constant java.util.concurrent.Executors$DelegatedScheduledExecutorService@5a77334 reached by 
[INFO] # Printing build artifacts to: /home/kec/idp/myproject/target/myartifactid.build_artifacts.txt
[WARNING] 	scanning method io.helidon.metrics.ExponentiallyDecayingReservoir.onServerShutdown(ExponentiallyDecayingReservoir.java:79)
[WARNING] Call path from entry point to io.helidon.metrics.ExponentiallyDecayingReservoir.onServerShutdown(): 
[WARNING] 	at io.helidon.metrics.ExponentiallyDecayingReservoir.onServerShutdown(ExponentiallyDecayingReservoir.java:79)
[WARNING] 	at io.helidon.metrics.MetricsSupport.onShutdown(MetricsSupport.java:435)
[WARNING] 	at io.helidon.servicecommon.rest.HelidonRestServiceSupport.webServerStopped(HelidonRestServiceSupport.java:114)
[WARNING] 	at io.helidon.servicecommon.rest.HelidonRestServiceSupport$$Lambda$3171/0x00000007c1b39440.run(Unknown Source)

Regression caused by #3251

@danielkec danielkec self-assigned this Aug 31, 2021
@danielkec danielkec added the bug Something isn't working label Aug 31, 2021
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working metrics native-image
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant