Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

commandlinerunner-log4j2 fails with GraalVM 22.1 #1547

Closed
mhalbritter opened this issue Mar 28, 2022 · 3 comments
Closed

commandlinerunner-log4j2 fails with GraalVM 22.1 #1547

mhalbritter opened this issue Mar 28, 2022 · 3 comments
Labels
type: compatibility Native image compatibility issue
Milestone

Comments

@mhalbritter
Copy link
Contributor

openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment GraalVM CE 22.1.0-dev (build 17.0.3+4-jvmci-22.1-b03)
OpenJDK 64-Bit Server VM GraalVM CE 22.1.0-dev (build 17.0.3+4-jvmci-22.1-b03, mixed mode, sharing)
========================================================================================================================
GraalVM Native Image: Generating 'commandlinerunner-log4j2' (executable)...
========================================================================================================================

[1/7] Initializing...                                                                                    (0,0s @ 0,07GB)
Error: ImageSingletons do not contain key com.oracle.svm.hosted.LinkAtBuildTimeSupport
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
------------------------------------------------------------------------------------------------------------------------
                         0,1s (6,4% of total time) in 8 GCs | Peak RSS: 0,59GB | CPU load: 5,14
========================================================================================================================
Failed generating 'commandlinerunner-log4j2' after 1,4s.

Looks like #1546

@mhalbritter mhalbritter added the type: compatibility Native image compatibility issue label Mar 28, 2022
@mhalbritter mhalbritter added this to the 0.11.4 milestone Mar 28, 2022
@dr-eme
Copy link

dr-eme commented Mar 28, 2022

I had a similar issue with a slightly modified commandlinerunner-gradle sample, and opened the following ticket with graal:
oracle/graal#4424
In principle, the issue was solved, but maybe not yet merged in the latest dev build.
Maybe, this applies also to #1546

@olpaw
Copy link

olpaw commented Mar 29, 2022

This is already fixed on master and the 22.1 release branch. See
oracle/graal#4427
https://github.com/oracle/graal/commits/release/graal-vm/22.1 (see commit 4f2702d80b79a965eaf44a64ac7c6df744dbb01a)

Note that the latest https://github.com/graalvm/graalvm-ce-dev-builds/releases pre-release does not contain these changes.

Either build a release from https://github.com/oracle/graal/commits/release/graal-vm/22.1 yourself of wait for a new dev-build to verify the fix.

@mhalbritter
Copy link
Contributor Author

Works with graal built from oracle/graal@3eb1d11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: compatibility Native image compatibility issue
Development

No branches or pull requests

3 participants