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

[GR-44056] Cannot invoke "java.util.Set.iterator()" because "triggers" is null. #5868

Closed
ddobrin opened this issue Feb 1, 2023 · 17 comments · Fixed by #7736
Closed

[GR-44056] Cannot invoke "java.util.Set.iterator()" because "triggers" is null. #5868

ddobrin opened this issue Feb 1, 2023 · 17 comments · Fixed by #7736
Assignees

Comments

@ddobrin
Copy link

ddobrin commented Feb 1, 2023

Reported today in Spring Boot first: Spring Boot 3 Native Needs RomeTools and Kotlin Serialization JARs.

Issue can be reproduced on Mac Intel and Mac M1 and Linux.

The repro is here
Env: Spring Boot 3.0.2, GraalVM 22.3.

Java version:
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08, mixed mode, sharing)

The service uses Google Native Java Client Libraries and accesses Vision and Firestore; uses the latest Google BOM.

Native image builds and works fine when adding rometools & kotlinx to the pom.xml:
...
com.rometools
rome
...
org.jetbrains.kotlinx
kotlinx-serialization-core

Without the added dependencies, it can be built with the Java agent, collect the generated *.json files, copy them to src/main/resources/META-INF and build the native image, which will fail with:
[6/7] Compiling methods... [********] (65.0s @ 6.35GB)

Fatal error: java.lang.NullPointerException: Cannot invoke "jdk.vm.ci.meta.JavaField.format(String)" because "field" is null
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.HostedUniverse.lookup(HostedUniverse.java:369)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.meta.HostedUniverse.lookup(HostedUniverse.java:282)

These dependency requirements did not exist in Boot 3 M5, however libraries have evolved since.

@fniephaus
Copy link
Member

Hi @ddobrin, I'm having troubles following your instructions to reproduce the issue. When I check out the code, I seem to be able to build the application without a problem. What dependencies do I need to remove? I'm assuming with Java agent you mean the Trace Agent from Native Image? How do I run the application with the agent?

Also, could you please provide a longer stack trace? It seems that you are hitting this line with field being null:

throw new UnsupportedFeatureException("Unresolved field found. Probably there are some compilation or classpath problems. " + field.format("%H.%n"));

@wilkinsona
Copy link

@fniephaus You should be able to reproduce the failure if you remove these dependencies from the pom.

@fniephaus
Copy link
Member

That's what I tried but the builds still succeeds on my Linux AMD64 machine.

@fniephaus
Copy link
Member

I can trigger this error but it's not the one reported by @ddobrin:

Caused by: java.lang.ClassNotFoundException: kotlinx.serialization.StringFormat

@wilkinsona
Copy link

Let me double-check the failure that I saw on my Intel Mac.

@wilkinsona
Copy link

The failure that I see is the following:

Fatal error: java.lang.TypeNotPresentException: Type kotlinx.serialization.BinaryFormat not present
	at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
	at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
	at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
	at java.base/sun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator.reifyBounds(LazyReflectiveObjectGenerator.java:65)
	at java.base/sun.reflect.generics.reflectiveObjects.TypeVariableImpl.getBounds(TypeVariableImpl.java:125)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:563)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:534)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:575)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:534)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForClass(ReflectionDataBuilder.java:402)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.processMethodMetadata(ReflectionDataBuilder.java:243)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.duringAnalysis(ReflectionDataBuilder.java:199)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionFeature.duringAnalysis(ReflectionFeature.java:254)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:748)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:85)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:748)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:162)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:745)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:578)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:580)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
Caused by: java.lang.ClassNotFoundException: kotlinx.serialization.BinaryFormat
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:467)
	at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)

This aligns with the title suggesting that there are some situations where #5318 can still occur.

To reproduce the NullPointerException I think you need to:

  • build with the Java agent
  • collect the generated *.json files and copy them to src/main/resources/META-INF
  • build the native image

I haven't tried this though.

@ddobrin
Copy link
Author

ddobrin commented Feb 6, 2023

Hi @fniephaus :
removed:

        <!-- <dependency>
            <groupId>com.rometools</groupId>
            <artifactId>rome</artifactId>
            <version>1.18.0</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-serialization-core</artifactId>
            <version>1.4.1</version>
            <type>pom</type>
            <scope>runtime</scope>
        </dependency>         -->

Built with ./mvnw native:compile -Pnative

Failure:

Fatal error: java.lang.TypeNotPresentException: Type kotlinx.serialization.StringFormat not present
        at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
        at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
        at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
        at java.base/sun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator.reifyBounds(LazyReflectiveObjectGenerator.java:65)
        at java.base/sun.reflect.generics.reflectiveObjects.TypeVariableImpl.getBounds(TypeVariableImpl.java:125)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:563)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:534)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:575)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.makeTypeReachable(ReflectionDataBuilder.java:534)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.registerTypesForClass(ReflectionDataBuilder.java:402)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.processMethodMetadata(ReflectionDataBuilder.java:243)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionDataBuilder.duringAnalysis(ReflectionDataBuilder.java:199)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.reflect.ReflectionFeature.duringAnalysis(ReflectionFeature.java:254)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:748)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:85)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:748)
        at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:162)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:745)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:578)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:580)
        at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
Caused by: java.lang.ClassNotFoundException: kotlinx.serialization.StringFormat
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:467)
        at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
        ... 22 more
------------------------------------------------------------------------------------------------------------------------

@fniephaus
Copy link
Member

I can reproduce the ClassNotFoundException but not this error:

Cannot invoke "jdk.vm.ci.meta.JavaField.format(String)" because "field" is null

Will look into why the build requires and fails due to StringFormat...

@fniephaus
Copy link
Member

I think I nailed down the problem: it seems that googleapis/gax-java sets -H:-RunReachabilityHandlersConcurrently and that hits another bug. I seem to be able to build without these dependencies when I override and re-enable -H:+RunReachabilityHandlersConcurrently in the pom.xml:

            <plugin>
                <groupId>org.graalvm.buildtools</groupId>
                <artifactId>native-maven-plugin</artifactId>
                <configuration>
                    <buildArgs>
                        <arg>-H:+RunReachabilityHandlersConcurrently</arg>
                    </buildArgs>
                </configuration>
            </plugin>    

Nonetheless, I will ask the team to look into the problem that happens when RunReachabilityHandlersConcurrently is disabled.

@fniephaus fniephaus changed the title Reopen Graal issue #5318 - not fixed in 22.3 or 23.0 dev [GR-44056] Reopen Graal issue #5318 - not fixed in 22.3 or 23.0 dev Feb 7, 2023
@fniephaus fniephaus changed the title [GR-44056] Reopen Graal issue #5318 - not fixed in 22.3 or 23.0 dev [GR-44056] Cannot invoke "java.util.Set.iterator()" because "triggers" is null. Feb 7, 2023
@ddobrin
Copy link
Author

ddobrin commented Feb 8, 2023

Tested it, thank you very much @fniephaus

Interesting to see what the analysis would bring

@oubidar-Abderrahim
Copy link
Member

Probably the same issue:

Describe the issue

When running native-image with -H:-RunReachabilityHandlersConcurrently it crashes non-deterministically.

Issue first reported in apache/camel-quarkus#5006
The flag seems to be added by the com.google.api:gax-grpc dependency.

@fniephaus this is probably a duplicate of #5868

Steps to reproduce the issue

native-image --no-fallback -H:-RunReachabilityHandlersConcurrently HelloWorld

It might require multiple runs untill a crash.

Describe GraalVM and your environment:

  • GraalVM version: GraalVM CE 17.0.7+7.1
  • JDK major version: 17
  • OS: Fedora 38
  • Architecture: AMD64

More details

I tried reproducing the issue on GraalVM 22.3 with no success.

========================================================================================================================
GraalVM Native Image: Generating 'helloworld' (executable)...
========================================================================================================================
[1/8] Initializing...                                                                                    (1.5s @ 0.16GB)
 Java version: 17.0.7+7, vendor version: GraalVM CE 17.0.7+7.1
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 13.1.1)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
[2/8] Performing analysis...  []                                                                         (1.9s @ 0.22GB)
   2,766 (75.74%) of  3,652 types reachable
   3,384 (50.73%) of  6,671 fields reachable
  12,536 (55.27%) of 22,680 methods reachable
     859 types,     0 fields, and   159 methods registered for reflection

------------------------------------------------------------------------------------------------------------------------
                        0.2s (5.8% of total time) in 19 GCs | Peak RSS: 0.98GB | CPU load: 12.42
------------------------------------------------------------------------------------------------------------------------
Produced artifacts:
 /home/zakkak/code/tmp/helloworld/svm_err_b_20230628T164422.007_pid665130.md (build_info)
========================================================================================================================
Failed generating 'helloworld' after 3.4s.

The build process encountered an unexpected error:

> java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null

Please inspect the generated error report at:
/home/zakkak/code/tmp/helloworld/svm_err_b_20230628T164422.007_pid665130.md

If you are unable to resolve this problem, please file an issue with the error report at:
https://graalvm.org/support

Closing #6904 as duplicate

@CriPstian
Copy link

I am having a similar issue, after adding a firebase-admin dependency to my pom.xml file.
I worked through the hints you provided in this thread and tried to approach this issue both in my application and in the firebase-admin application.
Also, found this issue on their side and I would love to be able to provide them with the pull request to support GraalVM out of the box.
Here is part of the error and I am looking for ways to work around it after applying both the reachability metadata that was suggested above or adding the nativeimage java application properties on my side and dependency side.
Is it possible to detect any other place to fix this except in the compiler itself? I do not feel that I can find enough hints to go past this at this point.
Some of the latest tests that I ran involved using the natieimage hints provided in the sdk-platform-java

[INFO]     [creator]     [1/8] Initializing...                                           (23.3s @ 0.48GB)
[INFO]     [creator]      Java version: 17.0.7+7-LTS, vendor version: Liberica-NIK-23.0.0-1
[INFO]     [creator]      Graal compiler: optimization level: 2, target machine: x86-64-v3
[INFO]     [creator]      C compiler: gcc (linux, x86_64, 7.5.0)
[INFO]     [creator]      Garbage collector: Serial GC (max heap size: 80% of RAM)
[INFO]     [creator]      10 user-specific feature(s)
[INFO]     [creator]      - com.helloworld.notificationsender.configuration.nativeimage.GrpcNettyFeature
[INFO]     [creator]      - com.google.api.gax.grpc.nativeimage.GrpcNettyFeature
[INFO]     [creator]      - com.google.api.gax.grpc.nativeimage.ProtobufMessageFeature
[INFO]     [creator]      - com.google.api.gax.nativeimage.GoogleJsonClientFeature
[INFO]     [creator]      - com.google.api.gax.nativeimage.OpenCensusFeature
[INFO]     [creator]      - com.google.cloud.sql.nativeimage.CloudSqlFeature
[INFO]     [creator]      - com.oracle.svm.thirdparty.gson.GsonFeature
[INFO]     [creator]      - org.eclipse.angus.activation.nativeimage.AngusActivationFeature
[INFO]     [creator]      - org.graalvm.home.HomeFinderFeature: Finds GraalVM paths and its version number
[INFO]     [creator]      - org.springframework.aot.nativex.feature.PreComputeFieldFeature
[INFO]     [creator]     The bundle named: com.mysql.cj.LocalizedErrorMessages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
[INFO]     [creator]     The bundle named: com.mysql.jdbc.LocalizedErrorMessages, has not been found. If the bundle is part of a module, verify the bundle name is a fully qualified class name. Otherwise verify the bundle path is accessible in the classpath.
[INFO]     [creator]     Oct 27, 2023 7:43:57 AM com.google.api.gax.nativeimage.NativeImageUtils registerClassForReflection
[INFO]     [creator]     WARNING: Failed to find io.grpc.netty.shaded.io.netty.channel.ProtocolNegotiators on the classpath for reflection.
[INFO]     [creator]     Oct 27, 2023 7:43:57 AM com.google.api.gax.nativeimage.NativeImageUtils registerClassForReflection
[INFO]     [creator]     WARNING: Failed to find io.grpc.netty.shaded.io.netty.channel.ProtocolNegotiators on the classpath for reflection.
[INFO]     [creator]     [2/8] Performing analysis...  [*]                               (64.2s @ 1.87GB)
[INFO]     [creator]       16,001 (85.53%) of 18,707 types reachable
[INFO]     [creator]       25,649 (62.73%) of 40,890 fields reachable
[INFO]     [creator]       80,842 (66.24%) of 122,051 methods reachable
[INFO]     [creator]        5,458 types, 2,020 fields, and 12,493 methods registered for reflection
[INFO]     [creator]     
[INFO]     [creator]     --------------------------------------------------------------------------------
[INFO]     [creator]        9.3s (10.4% of total time) in 47 GCs | Peak RSS: 4.17GB | CPU load: 10.72
[INFO]     [creator]     --------------------------------------------------------------------------------
[INFO]     [creator]     Produced artifacts:
[INFO]     [creator]      /layers/paketo-buildpacks_native-image/native-image/svm_err_b_20231027T074502.082_pid273.md (build_info)
[INFO]     [creator]     ================================================================================
[INFO]     [creator]     Failed generating 'com.helloworld.notificationsender.NotificationSenderApplication' after 1m 28s.
[INFO]     [creator]     
[INFO]     [creator]     The build process encountered an unexpected error:
[INFO]     [creator]     
[INFO]     [creator]     java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null
[INFO]     [creator]            at com.oracle.svm.hosted.ReachabilityHandlerFeature.processReachable(ReachabilityHandlerFeature.java:173)
[INFO]     [creator]            at com.oracle.svm.hosted.ReachabilityHandlerFeature.duringAnalysis(ReachabilityHandlerFeature.java:128)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:770)
[INFO]     [creator]            at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:86)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:770)
[INFO]     [creator]            at com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:179)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:767)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:582)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:539)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:408)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:612)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:134)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
[INFO]     [creator]            at com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus.main(NativeImageGeneratorRunner.java:626)
[INFO]     [creator]     
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to contribute native-image layer
[INFO]     [creator]     error running build
[INFO]     [creator]     exit status 1
[INFO]     [creator]     ERROR: failed to build: exit status 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:51 min
[INFO] Finished at: 2023-10-27T10:45:03+03:00
[INFO] ------------------------------------------------------------------------

@fniephaus
Copy link
Member

We recently merged #6985, which ensures that null values are not accidentally registered for reflection / JNI access. Hopefully, this will help us to track down issues like this in the future.

@zakkak
Copy link
Collaborator

zakkak commented Nov 6, 2023

@fniephaus I don't see how #6985 could help in this case.

I can still reproduce the issue as described in #5868 (comment) with latest master.

Note that this is compiling a simple HelloWorld:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

No JNI/reflection registrations.

GraalVM Native Image Error Report

Build Output

========================================================================================================================
GraalVM Native Image: Generating 'helloworld' (executable)...
========================================================================================================================
[1/8] Initializing...                                                                                    (1.3s @ 0.20GB)
 Java version: 22+20, vendor version: GraalVM CE 22-dev+20.1
 Graal compiler: optimization level: 2, target machine: x86-64-v3
 C compiler: gcc (redhat, x86_64, 13.2.1)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 1 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
------------------------------------------------------------------------------------------------------------------------
 1 experimental option(s) unlocked:
 - '-H:-RunReachabilityHandlersConcurrently' (origin(s): command line)
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 26.49GB of memory (42.8% of 61.93GB system memory, determined at start)
 - 32 thread(s) (100.0% of 32 available processor(s), determined at start)
[2/8] Performing analysis...  [*]                                                                        (2.9s @ 0.65GB)
    4,349 reachable types   (76.8% of    5,665 total)
    6,873 reachable fields  (58.3% of   11,794 total)
   22,497 reachable methods (51.3% of   43,813 total)
    1,398 types,    90 fields, and   701 methods registered for reflection

Stack Trace

com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.ReachabilityHandlerFeature unexpectedly failed with a(n) java.lang.NullPointerException
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:86)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.handleFeatureError(FeatureHandler.java:287)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:92)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$12(NativeImageGenerator.java:793)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:172)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:790)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:588)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:553)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:524)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:699)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:139)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.processReachable(ReachabilityHandlerFeature.java:173)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.duringAnalysis(ReachabilityHandlerFeature.java:128)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:793)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:90)
	... 9 more
Caused by:
com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.ReachabilityHandlerFeature unexpectedly failed with a(n) java.lang.NullPointerException
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.shouldNotReachHere(VMError.java:86)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.handleFeatureError(FeatureHandler.java:287)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:92)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$12(NativeImageGenerator.java:793)
	at org.graalvm.nativeimage.pointsto/com.oracle.graal.pointsto.AbstractAnalysisEngine.runAnalysis(AbstractAnalysisEngine.java:172)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:790)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:588)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:553)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:524)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:699)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.start(NativeImageGeneratorRunner.java:139)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:94)
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Set.iterator()" because "triggers" is null
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.processReachable(ReachabilityHandlerFeature.java:173)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ReachabilityHandlerFeature.duringAnalysis(ReachabilityHandlerFeature.java:128)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$11(NativeImageGenerator.java:793)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:90)
	... 9 more

GraalVM Setup

Name Value
Java version 22+20
Vendor version GraalVM CE 22-dev+20.1
Runtime version 22+20-jvmci-b02
C compiler gcc (redhat, x86_64, 13.2.1)
GraalVM release file
IMPLEMENTOR="GraalVM Community"
JAVA_RUNTIME_VERSION="22+20-jvmci-b02"
JAVA_VERSION="22"
JAVA_VERSION_DATE="2024-03-19"
LIBC="gnu"
MODULES="java.base java.logging jdk.internal.vm.ci jdk.unsupported org.graalvm.collections java.management jdk.management org.graalvm.truffle.compiler org.graalvm.word jdk.graal.compiler com.oracle.graal.graal_enterprise org.graalvm.nativeimage com.oracle.svm.enterprise.truffle com.oracle.svm.extraimage_enterprise com.oracle.svm.svm_enterprise com.oracle.svm_enterprise.ml_dataset com.oracle.truffle.enterprise com.oracle.truffle.enterprise.svm java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.internal.opt jdk.zipfs jdk.compiler jdk.compiler.graal jdk.compiler.graal.management jdk.crypto.cryptoki jdk.crypto.ec jdk.dynalink jdk.internal.ed jdk.editpad jdk.graal.compiler.management jdk.hotspot.agent jdk.httpserver jdk.incubator.vector jdk.internal.le jdk.jartool jdk.javadoc jdk.jcmd jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported.desktop jdk.xml.dom org.graalvm.extraimage.builder org.graalvm.extraimage.librarysupport"
OS_ARCH="x86_64"
OS_NAME="Linux"
SOURCE=".:git:46b980eb0db2+ labsjdk-builder:e627bf669993869674c8ee854ee108e5cbd62cff compiler:30a8e534f85855778043d0096200b8006e97a7d3 java-benchmarks:30a8e534f85855778043d0096200b8006e97a7d3 regex:30a8e534f85855778043d0096200b8006e97a7d3 sdk:30a8e534f85855778043d0096200b8006e97a7d3 substratevm:30a8e534f85855778043d0096200b8006e97a7d3 truffle:30a8e534f85855778043d0096200b8006e97a7d3"
GRAALVM_VERSION="24.0.0-dev"
COMMIT_INFO={"compiler": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}, "java-benchmarks": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}, "regex": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}, "sdk": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}, "substratevm": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}, "truffle": {"commit.committer": "Codrut Stancu <[email protected]>", "commit.committer-ts": 1699123827, "commit.rev": "30a8e534f85855778043d0096200b8006e97a7d3"}}

Builder Setup

Class path
/home/zakkak/code/tmp/helloworld
Module path
/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/library-support.jar
/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/builder/svm.jar
/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/builder/objectfile.jar
/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/builder/pointsto.jar
/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/builder/native-image-base.jar
Builder arguments
-H:CLibraryPath=/home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/clibraries/linux-amd64
-H:Path@driver=/home/zakkak/code/graal
-H:FallbackThreshold@user+api=0
-H:-RunReachabilityHandlersConcurrently@user
-H:Class@explicit main-class=HelloWorld
-H:Name@main-class lower case as image name=helloworld
-H:ImageBuildID@driver=12ae6251-b992-797d-a859-1e401cc8c686
-H:Features@jar:file:///home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/thirdparty/native-image.properties+api=com.oracle.svm.thirdparty.gson.GsonFeature
-H:Features@jar:file:///home/zakkak/code/graal/sdk/mxbuild/linux-amd64/GRAALVM_4AA945CF00_JAVA22/graalvm-4aa945cf00-java22-24.0.0-dev/lib/svm/library-support.jar!/META-INF/native-image/com.oracle.svm/polyglot/native-image.properties+api=com.oracle.svm.polyglot.groovy.GroovyIndyInterfaceFeature,com.oracle.svm.polyglot.scala.ScalaFeature
-H:Color@driver=always
-H:+BuildOutputProgress@driver
-H:+BuildOutputLinks@driver
Builder properties
-Dcom.oracle.graalvm.isaot=true
-Dgraalvm.ForcePolyglotInvalid=true
-Dgraalvm.locatorDisabled=true
-Djava.awt.headless=true
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader
-Djdk.internal.lambda.disableEagerInitialization=true
-Djdk.internal.lambda.eagerlyInitialize=false
-Djdk.module.main=org.graalvm.nativeimage.builder
-Djdk.reflect.useOldSerializableConstructor=true
-Dorg.graalvm.vendor=GraalVM Community
-Dorg.graalvm.vendorurl=https://www.graalvm.org/
-Dorg.graalvm.vendorversion=GraalVM CE 22-dev+20.1
-Dorg.graalvm.version=24.0.0-dev
-Dsubstratevm.HostLibC=glibc
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime
-Dtruffle.TrustAllTruffleRuntimeProviders=true
Features enabled
com.oracle.svm.core.IsolateArgumentParserFeature, []
com.oracle.svm.core.IsolateListenerFeature, [com.oracle.svm.core.IsolateListenerSupportFeature]
com.oracle.svm.core.IsolateListenerSupportFeature, []
com.oracle.svm.core.ProcessorFeature, []
com.oracle.svm.core.RuntimeAssertionsSupportFeature, []
com.oracle.svm.core.StaticFieldsFeature, []
com.oracle.svm.core.StaticFieldsSupportFeature, []
com.oracle.svm.core.SubstrateExitHandlerFeature, []
com.oracle.svm.core.SubstrateSegfaultHandlerFeature, [com.oracle.svm.core.IsolateListenerSupportFeature]
com.oracle.svm.core.UniqueShortNameProviderDefaultImplFeature, []
com.oracle.svm.core.UnsafeMemoryUtilFeature, []
com.oracle.svm.core.allocationprofile.AllocationProfilingFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature]
com.oracle.svm.core.amd64.AMD64FrameAccessFeature, []
com.oracle.svm.core.c.CIsolateDataStorageFeature, []
com.oracle.svm.core.c.CTypeConversionSupportImplFeature, []
com.oracle.svm.core.c.ProjectHeaderFileHeaderResolversRegistryFeature, []
com.oracle.svm.core.c.function.IsolateSupportImplFeature, []
com.oracle.svm.core.code.CodeInfoFeature, [com.oracle.svm.core.util.CounterFeature]
com.oracle.svm.core.code.CodeInfoMemoryWalkerFeature, []
com.oracle.svm.core.code.InstalledCodeObserverSupportFeature, []
com.oracle.svm.core.cpufeature.RuntimeCPUFeatureCheckFeature, []
com.oracle.svm.core.cpufeature.RuntimeCPUFeatureCheckImplFeature, []
com.oracle.svm.core.genscavenge.AlignedHeapChunkMemoryWalkerAccessImplFeature, []
com.oracle.svm.core.genscavenge.JfrGCEventFeature, []
com.oracle.svm.core.genscavenge.PinnedObjectImplPinnedObjectSupportImplFeature, []
com.oracle.svm.core.genscavenge.UnalignedHeapChunkMemoryWalkerAccessImplFeature, []
com.oracle.svm.core.genscavenge.graal.BarrierSnippetCountersFeature, [com.oracle.svm.core.util.CounterFeature]
com.oracle.svm.core.genscavenge.graal.GenScavengeGCFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature com.oracle.svm.core.jdk.management.ManagementFeature com.oracle.svm.core.jvmstat.PerfDataFeature com.oracle.svm.core.heap.AllocationFeature]
com.oracle.svm.core.graal.amd64.AMD64NativePatchConsumerFactoryFeature, []
com.oracle.svm.core.graal.amd64.SubstrateAMD64Feature, []
com.oracle.svm.core.graal.amd64.SubstrateAMD64GraphBuilderPlugins, []
com.oracle.svm.core.graal.jdk.JDKIntrinsicsFeature, []
com.oracle.svm.core.graal.snippets.CEntryPointListenerSupportFeature, []
com.oracle.svm.core.graal.snippets.CFunctionSnippetsFeature, []
com.oracle.svm.core.graal.snippets.DeoptSnippetsFeature, []
com.oracle.svm.core.graal.snippets.ExceptionFeature, []
com.oracle.svm.core.graal.snippets.SafepointFeature, []
com.oracle.svm.core.graal.snippets.StackOverflowCheckFeature, []
com.oracle.svm.core.graal.snippets.amd64.AMD64SnippetsFeature, []
com.oracle.svm.core.graal.stackvalue.StackValueFeature, []
com.oracle.svm.core.handles.ObjectHandlesSupportImplFeature, []
com.oracle.svm.core.handles.PinnedPrimitiveArrayViewFeature, []
com.oracle.svm.core.heap.AllocationFeature, []
com.oracle.svm.core.heap.GCCauseFeature, []
com.oracle.svm.core.heap.HostedHeapSizeVerifierFeature, []
com.oracle.svm.core.heap.ReferenceAccessImplFeature, []
com.oracle.svm.core.heap.ReferenceHandlerThreadFeature, []
com.oracle.svm.core.heap.VMOperationInfosFeature, []
com.oracle.svm.core.heap.VMOperationNamesFeatures, []
com.oracle.svm.core.hub.ClassForNameSupportFeature, []
com.oracle.svm.core.hub.DynamicHubSupportFeature, []
com.oracle.svm.core.identityhashcode.SubstrateIdentityHashCodeFeature, []
com.oracle.svm.core.jdk.AtomicFieldUpdaterFeature, []
com.oracle.svm.core.jdk.ClassLoaderSupportFeature, []
com.oracle.svm.core.jdk.CompletableFutureFeature, []
com.oracle.svm.core.jdk.FileSystemProviderFeature, []
com.oracle.svm.core.jdk.ForkJoinPoolFeature, []
com.oracle.svm.core.jdk.InnocuousForkJoinWorkerThreadFeature, []
com.oracle.svm.core.jdk.JRTDisableFeature, []
com.oracle.svm.core.jdk.JavaNetFeature, []
com.oracle.svm.core.jdk.JavaNetHttpFeature, []
com.oracle.svm.core.jdk.NativeLibrarySupportFeature, []
com.oracle.svm.core.jdk.PlatformNativeLibrarySupportFeature, []
com.oracle.svm.core.jdk.ResourcesFeature, []
com.oracle.svm.core.jdk.RuntimeFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature]
com.oracle.svm.core.jdk.RuntimeSupportFeature, []
com.oracle.svm.core.jdk.ServiceCatalogSupportFeature, []
com.oracle.svm.core.jdk.SimpleWebServerFeature, []
com.oracle.svm.core.jdk.TimeZoneFeature, []
com.oracle.svm.core.jdk.TrustStoreManagerFeature, []
com.oracle.svm.core.jdk.URLProtocolsSupportFeature, []
com.oracle.svm.core.jdk.VarHandleFeature, []
com.oracle.svm.core.jdk.localization.LocalizationFeature, []
com.oracle.svm.core.jdk.management.ManagementFeature, [com.oracle.svm.core.jdk.RuntimeSupportFeature com.oracle.svm.core.thread.ThreadListenerSupportFeature]
com.oracle.svm.core.jfr.sampler.JfrNoExecutionSamplerFeature, [com.oracle.svm.core.jfr.JfrFeature]
com.oracle.svm.core.jfr.sampler.JfrRecurringCallbackExecutionSamplerFeature, [com.oracle.svm.core.jfr.JfrFeature]
com.oracle.svm.core.jvmstat.PerfDataFeature, [com.oracle.svm.core.thread.VMOperationListenerSupportFeature com.oracle.svm.core.jdk.RuntimeSupportFeature]
com.oracle.svm.core.meta.SubstrateObjectConstantEqualityFeature, []
com.oracle.svm.core.monitor.MonitorFeature, []
com.oracle.svm.core.option.RuntimeOptionsSupportImplFeature, []
com.oracle.svm.core.option.ValidateImageBuildOptionsFeature, []
com.oracle.svm.core.os.BufferedFileOperationFeature, []
com.oracle.svm.core.os.ImageHeapProviderFeature, []
com.oracle.svm.core.os.OSCommittedMemoryProviderFeature, []
com.oracle.svm.core.posix.IgnoreSignalsFeature, []
com.oracle.svm.core.posix.PosixLoadAverageSupportFeature, []
com.oracle.svm.core.posix.PosixLogHandlerFeature, []
com.oracle.svm.core.posix.PosixNativeLibraryFeature, []
com.oracle.svm.core.posix.PosixRawFileOperationFeature, []
com.oracle.svm.core.posix.PosixSubstrateSegfaultHandlerFeature, []
com.oracle.svm.core.posix.PosixSubstrateSigProfHandlerFeature, [com.oracle.svm.core.IsolateListenerSupportFeature com.oracle.svm.core.jfr.JfrFeature]
com.oracle.svm.core.posix.PosixVirtualMemoryProviderFeature, []
com.oracle.svm.core.posix.UnmanagedMemorySupportImplFeature, []
com.oracle.svm.core.posix.amd64.AMD64LinuxUContextRegisterDumperFeature, []
com.oracle.svm.core.posix.heapdump.AllocationFreeFileOutputStreamPosixFeature, []
com.oracle.svm.core.posix.linux.DumpLinuxOSInfoFeature, []
com.oracle.svm.core.posix.linux.LinuxImageSingletonsFeature, []
com.oracle.svm.core.posix.linux.LinuxPhysicalMemorySupportImplFeature, []
com.oracle.svm.core.posix.linux.LinuxProcessPropertiesSupportFeature, []
com.oracle.svm.core.posix.linux.LinuxStackOverflowSupportFeature, []
com.oracle.svm.core.posix.linux.LinuxSystemPropertiesFeature, []
com.oracle.svm.core.posix.linux.LinuxThreadCpuTimeSupportFeature, []
com.oracle.svm.core.posix.linux.LinuxVMSemaphoreFeature, []
com.oracle.svm.core.posix.pthread.PthreadVMLockFeature, []
com.oracle.svm.core.posix.thread.PosixParkerFactoryFeature, []
com.oracle.svm.core.posix.thread.PosixPlatformThreadsFeature, []
com.oracle.svm.core.posix.thread.PosixVMThreadsFeature, []
com.oracle.svm.core.posix.thread.PosixVMThreadsPosixThreadLookupFeature, []
com.oracle.svm.core.reflect.target.ReflectionMetadataDecoderImplFeature, []
com.oracle.svm.core.reflect.target.ReflectionMetadataDecoderImplMetadataAccessorImplFeature, []
com.oracle.svm.core.reflect.target.ReflectionMetadataEncodingFeature, []
com.oracle.svm.core.thread.ContinuationsFeature, []
com.oracle.svm.core.thread.JavaThreadsFeature, []
com.oracle.svm.core.thread.SafepointListenerSupportFeature, []
com.oracle.svm.core.thread.SafepointMasterFeature, []
com.oracle.svm.core.thread.ThreadListenerSupportFeature, []
com.oracle.svm.core.thread.ThreadLookupFeature, []
com.oracle.svm.core.thread.ThreadingSupportImplFeature, []
com.oracle.svm.core.thread.VMOperationControlFeature, []
com.oracle.svm.core.thread.VMOperationListenerSupportFeature, []
com.oracle.svm.core.threadlocal.VMThreadLocalInfosFeature, []
com.oracle.svm.core.util.CounterFeature, []
com.oracle.svm.core.util.HostedStringDeduplicationFeature, []
com.oracle.svm.graal.RuntimeCPUFeatureRegionFeature, []
com.oracle.svm.graal.isolated.DisableSnippetCountersFeature, []
com.oracle.svm.graal.isolated.IsolateAwareObjectConstantEqualityFeature, []
com.oracle.svm.graal.meta.amd64.AMD64RuntimeCodeInstallerPlatformHelperFeature, []
com.oracle.svm.graal.stubs.AMD64StubForeignCallsFeature, []
com.oracle.svm.hosted.AMD64CPUFeatureAccessFeature, []
com.oracle.svm.hosted.BuildDirectoryProviderImplFeature, []
com.oracle.svm.hosted.ClassLoaderFeature, []
com.oracle.svm.hosted.ClassNewInstanceFeature, []
com.oracle.svm.hosted.ClassPredefinitionFeature, []
com.oracle.svm.hosted.ClassValueFeature, []
com.oracle.svm.hosted.FallbackFeature, []
com.oracle.svm.hosted.Log4ShellFeature, []
com.oracle.svm.hosted.LoggingFeature, []
com.oracle.svm.hosted.ModuleLayerFeature, []
com.oracle.svm.hosted.NativeSecureRandomFilesCloser, []
com.oracle.svm.hosted.ProgressReporterFeature, []
com.oracle.svm.hosted.ProtectionDomainFeature, []
com.oracle.svm.hosted.ReachabilityHandlerFeature, []
com.oracle.svm.hosted.ResourcesFeature, []
com.oracle.svm.hosted.SecurityServicesFeature, []
com.oracle.svm.hosted.ServiceLoaderFeature, []
com.oracle.svm.hosted.SubstrateDiagnosticFeature, []
com.oracle.svm.hosted.SystemInOutErrFeature, []
com.oracle.svm.hosted.VMFeature, []
com.oracle.svm.hosted.ameta.HostedDynamicHubFeature, []
com.oracle.svm.hosted.annotation.AnnotationFeature, []
com.oracle.svm.hosted.c.CGlobalDataFeature, []
com.oracle.svm.hosted.c.CIsolateDataFeature, []
com.oracle.svm.hosted.c.function.CEntryPointSupport, []
com.oracle.svm.hosted.c.libc.HostedLibCFeature, []
com.oracle.svm.hosted.classinitialization.ClassInitializationFeature, []
com.oracle.svm.hosted.code.CEntryPointCallStubFeature, []
com.oracle.svm.hosted.code.CEntryPointLiteralFeature, []
com.oracle.svm.hosted.code.CFunctionLinkagesFeature, []
com.oracle.svm.hosted.code.CFunctionPointerCallStubSupportFeature, []
com.oracle.svm.hosted.code.FactoryMethodSupportFeature, []
com.oracle.svm.hosted.code.FrameInfoHostedMethodDataFeature, []
com.oracle.svm.hosted.code.RestrictHeapAccessCalleesFeature, []
com.oracle.svm.hosted.code.SubstrateCompilationDirectivesFeature, []
com.oracle.svm.hosted.code.SubstrateLIRBackendFeature, []
com.oracle.svm.hosted.code.UninterruptibleAnnotationCheckerFeature, []
com.oracle.svm.hosted.code.amd64.AMD64HostedPatcherFeature, []
com.oracle.svm.hosted.code.amd64.AMD64HostedTrampolineSupportFeature, []
com.oracle.svm.hosted.fieldfolding.StaticFinalFieldFoldingFeature, []
com.oracle.svm.hosted.heap.HeapDumpFeature, []
com.oracle.svm.hosted.heap.ImageHeapMapFeature, []
com.oracle.svm.hosted.heap.ObservableHeapMapFeature, []
com.oracle.svm.hosted.heap.PodFeature, []
com.oracle.svm.hosted.image.DisallowedImageHeapObjectFeature, [com.oracle.svm.core.jdk.management.ManagementFeature]
com.oracle.svm.hosted.image.ImageHeapFillerObjectsFeature, []
com.oracle.svm.hosted.image.MethodPointerInvalidHandlerFeature, []
com.oracle.svm.hosted.image.MethodPointerRelocationProviderFeature, []
com.oracle.svm.hosted.image.StringInternFeature, []
com.oracle.svm.hosted.image.sources.SourceCacheFeature, []
com.oracle.svm.hosted.jdk.AccessControlContextReplacerFeature, []
com.oracle.svm.hosted.jdk.JDKInitializationFeature, []
com.oracle.svm.hosted.jdk.JDKRegistrations, []
com.oracle.svm.hosted.jdk.JNIRegistrationAWTSupport, []
com.oracle.svm.hosted.jdk.JNIRegistrationJava, []
com.oracle.svm.hosted.jdk.JNIRegistrationJavaNet, []
com.oracle.svm.hosted.jdk.JNIRegistrationJavaNio, []
com.oracle.svm.hosted.jdk.JNIRegistrationManagementExt, []
com.oracle.svm.hosted.jdk.JNIRegistrationPrefs, []
com.oracle.svm.hosted.jdk.JNIRegistrationSupport, []
com.oracle.svm.hosted.jdk.JNIRegistrationsJavaZip, []
com.oracle.svm.hosted.jdk.localization.CharsetSubstitutionsFeature, []
com.oracle.svm.hosted.jdk.localization.LocalizationFeature, []
com.oracle.svm.hosted.jni.JNIAccessFeature, [com.oracle.svm.hosted.meta.KnownOffsetsFeature]
com.oracle.svm.hosted.jni.JNIAutomaticFeature, [com.oracle.svm.hosted.jni.JNIFeature]
com.oracle.svm.hosted.jni.JNICallWrapperFeature, [com.oracle.svm.hosted.jni.JNIAccessFeature]
com.oracle.svm.hosted.jni.JNIFeature, [com.oracle.svm.hosted.jni.JNIFunctionTablesFeature com.oracle.svm.hosted.jni.JNICallWrapperFeature com.oracle.svm.hosted.jni.JNILibraryLoadFeature]
com.oracle.svm.hosted.jni.JNIFunctionTablesFeature, [com.oracle.svm.hosted.jni.JNIAccessFeature]
com.oracle.svm.hosted.jni.JNILibraryLoadFeature, []
com.oracle.svm.hosted.lambda.StableLambdaProxyNameFeature, []
com.oracle.svm.hosted.meta.HostedMethodNameFactory, []
com.oracle.svm.hosted.meta.InvalidVTableEntryFeature, []
com.oracle.svm.hosted.meta.KnownOffsetsFeature, [com.oracle.svm.hosted.thread.VMThreadMTFeature]
com.oracle.svm.hosted.meta.MaterializedConstantFieldsFeature, []
com.oracle.svm.hosted.methodhandles.MethodHandleFeature, []
com.oracle.svm.hosted.option.RuntimeOptionFeature, []
com.oracle.svm.hosted.phases.EnumSwitchFeature, []
com.oracle.svm.hosted.reflect.ReflectionFeature, []
com.oracle.svm.hosted.reflect.ReflectionMetadataEncoderImplFactoryFeature, []
com.oracle.svm.hosted.reflect.proxy.DynamicProxyFeature, [com.oracle.svm.hosted.reflect.ReflectionFeature]
com.oracle.svm.hosted.reflect.serialize.SerializationFeature, [com.oracle.svm.hosted.reflect.ReflectionFeature com.oracle.svm.hosted.reflect.proxy.DynamicProxyFeature]
com.oracle.svm.hosted.snippets.ExceptionUnwindFeature, []
com.oracle.svm.hosted.snippets.ImplicitExceptionsFeature, []
com.oracle.svm.hosted.substitute.AutomaticSubstitutionFeature, []
com.oracle.svm.hosted.thread.CEntryPointFeature, [com.oracle.svm.hosted.thread.VMThreadMTFeature]
com.oracle.svm.hosted.thread.ContinuationsHostedFeature, [com.oracle.svm.core.thread.ContinuationsFeature]
com.oracle.svm.hosted.thread.VMThreadMTFeature, []
com.oracle.svm.hosted.xml.JavaxXmlClassAndResourcesLoaderFeature, []
com.oracle.svm.thirdparty.gson.GsonFeature, []

@fniephaus
Copy link
Member

@fniephaus I don't see how #6985 could help in this case.

Oh I think you are right and I got confused. RunReachabilityHandlersConcurrently shouldn't really be disabled anymore, but nonetheless, I hope we get this NPE fixed soon.

zakkak added a commit to zakkak/mandrel that referenced this issue Nov 6, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes oracle#5868
@zakkak
Copy link
Collaborator

zakkak commented Nov 6, 2023

@fniephaus I opened #7736 which appears to resolve the issue. Could you please assign it to the appropriate engineer for review? Thank you.

zakkak added a commit to zakkak/mandrel that referenced this issue Nov 7, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes oracle#5868
zakkak added a commit to zakkak/mandrel that referenced this issue Nov 7, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes oracle#5868
graalvmbot pushed a commit that referenced this issue Dec 7, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes #5868

(cherry picked from commit 777cb82)
graalvmbot pushed a commit that referenced this issue Dec 7, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes #5868

(cherry picked from commit 777cb82)
@anujsax121
Copy link

I am getting error when I am going hit api by aws proxy http Lambda function.

java.lang.NullPointerException
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.getParameterType(LambdaRuntime.java:330)
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.invokeMethod(LambdaRuntime.java:294)
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.invokeLambdaRequestHandler(LambdaRuntime.java:256)
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.invokeClass(LambdaRuntime.java:213)
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.invoke(LambdaRuntime.java:169)
at com.formkiq.lambda.runtime.graalvm.LambdaRuntime.main(LambdaRuntime.java:393)
END RequestId: b436d058-c4e8-470d-9025-c9d91ebc4a8a
REPORT RequestId: b436d058-c4e8-470d-9025-c9d91ebc4a8a Duration: 19.44 ms Billed Duration: 669 ms Memory Size: 256 MB Max Memory Used: 117 MB Init Duration: 648.83 ms

zakkak added a commit to zakkak/mandrel that referenced this issue Dec 18, 2023
Prevent data races in reachability handlers registration when using
`-H:-RunReachabilityHandlersConcurrently`.

Closes oracle#5868

(cherry picked from commit 777cb82)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

8 participants