graal icon indicating copy to clipboard operation
graal copied to clipboard

[GR-51156] Return value of "java.util.jar.JarFile.getEntry(String)" is null

Open pjonsson opened this issue 1 year ago • 6 comments

Trying to make a bug-report on native-image, I downloaded the latest dev-build to reproduce the issue according to the instructions in the issue template for native-image.

The dev-build was installed in a docker image in the same way that the GraalVM 21.0.1 release is installed. There is no other java/javac installed.

The build system is Gradle 8.5 with the native-image plugin. I had to comment out the line vendor = JvmVendorSpec.matching("Oracle Corporation") inside javaLauncher.launcherFor { to get the development build working, but since there is only one JDK in the image I don't think that makes a difference.

GraalVM Native Image Error Report

Build Output

========================================================================================================================
GraalVM Native Image: Generating 'cooja' (executable)...
========================================================================================================================
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
------------------------------------------------------------------------------------------------------------------------
[1/8] Initializing...                                                                                    (3.1s @ 0.11GB)
 Java version: 21.0.1+12, vendor version: GraalVM CE 21.0.1-dev+12.1
 Graal compiler: optimization level: 2, target machine: compatibility
 C compiler: gcc (linux, x86_64, 11.4.0)
 Garbage collector: Serial GC (max heap size: 80% of RAM)
 1 user-specific feature(s):
 - com.oracle.svm.thirdparty.gson.GsonFeature
------------------------------------------------------------------------------------------------------------------------
Build resources:
 - 8.89GB of memory (38.2% of 23.25GB system memory, set via '-Xmx10G')
 - 20 thread(s) (100.0% of 20 available processor(s), determined at start)

Stack Trace

com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.ResourcesFeature 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:289)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:94)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:573)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:538)
	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
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:542)
	at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:567)
	at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:670)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.collectResources(ClassLoaderSupportImpl.java:118)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.beforeAnalysis(ResourcesFeature.java:464)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:92)
	... 7 more
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.zip.ZipEntry.isDirectory()" because the return value of "java.util.jar.JarFile.getEntry(String)" is null
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.resourceIsDirectory(ResourcesFeature.java:364)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.processResourceFromClasspath(ResourcesFeature.java:321)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.addResource(ResourcesFeature.java:193)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourceCollectorImpl.addResource(ResourcesFeature.java:556)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.includeResource(ClassLoaderSupportImpl.java:224)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.scanJar(ClassLoaderSupportImpl.java:216)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.lambda$collectResources$1(ClassLoaderSupportImpl.java:124)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by:
com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.ResourcesFeature 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:289)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:94)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:573)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:538)
	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
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:542)
	at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:567)
	at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:670)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.collectResources(ClassLoaderSupportImpl.java:118)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.beforeAnalysis(ResourcesFeature.java:464)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:92)
	... 7 more
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.zip.ZipEntry.isDirectory()" because the return value of "java.util.jar.JarFile.getEntry(String)" is null
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.resourceIsDirectory(ResourcesFeature.java:364)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.processResourceFromClasspath(ResourcesFeature.java:321)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.addResource(ResourcesFeature.java:193)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourceCollectorImpl.addResource(ResourcesFeature.java:556)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.includeResource(ClassLoaderSupportImpl.java:224)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.scanJar(ClassLoaderSupportImpl.java:216)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.lambda$collectResources$1(ClassLoaderSupportImpl.java:124)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Caused by:
com.oracle.svm.core.util.VMError$HostedError: InternalFeature defined by com.oracle.svm.hosted.ResourcesFeature 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:289)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:94)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:573)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:538)
	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
	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:542)
	at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:567)
	at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:670)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.collectResources(ClassLoaderSupportImpl.java:118)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature.beforeAnalysis(ResourcesFeature.java:464)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:785)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:92)
	... 7 more
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.zip.ZipEntry.isDirectory()" because the return value of "java.util.jar.JarFile.getEntry(String)" is null
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.resourceIsDirectory(ResourcesFeature.java:364)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.processResourceFromClasspath(ResourcesFeature.java:321)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourcesRegistryImpl.addResource(ResourcesFeature.java:193)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ResourcesFeature$ResourceCollectorImpl.addResource(ResourcesFeature.java:556)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.includeResource(ClassLoaderSupportImpl.java:224)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.scanJar(ClassLoaderSupportImpl.java:216)
	at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.ClassLoaderSupportImpl.lambda$collectResources$1(ClassLoaderSupportImpl.java:124)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

GraalVM Setup

Name Value
Java version 21.0.1+12
Vendor version GraalVM CE 21.0.1-dev+12.1
Runtime version 21.0.1+12-jvmci-23.1-b26
C compiler gcc (linux, x86_64, 11.4.0)
GraalVM release file
IMPLEMENTOR="GraalVM Community"
JAVA_RUNTIME_VERSION="21.0.1+12-jvmci-23.1-b26"
JAVA_VERSION="21.0.1"
JAVA_VERSION_DATE="2023-10-17"
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.crypto.ec jdk.crypto.cryptoki jdk.dynalink jdk.internal.ed jdk.editpad jdk.graal.compiler.management jdk.hotspot.agent jdk.httpserver jdk.incubator.vector jdk.internal.le jdk.internal.vm.compiler jdk.internal.vm.compiler.management 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:c23572fa4a80+ labsjdk-builder:0c10a26367921c791491f7f0a3438b136a78bf52 compiler:81a97e3ab7bd1bc8217db00a89743da124f23234 java-benchmarks:81a97e3ab7bd1bc8217db00a89743da124f23234 regex:81a97e3ab7bd1bc8217db00a89743da124f23234 sdk:81a97e3ab7bd1bc8217db00a89743da124f23234 substratevm:81a97e3ab7bd1bc8217db00a89743da124f23234 truffle:81a97e3ab7bd1bc8217db00a89743da124f23234 vm:81a97e3ab7bd1bc8217db00a89743da124f23234"
GRAALVM_VERSION="24.0.0-dev"
COMMIT_INFO={"compiler": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "java-benchmarks": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "regex": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "sdk": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "substratevm": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "truffle": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}, "vm": {"commit.committer": "Lukas Stadler <[email protected]>", "commit.committer-ts": 1701878206, "commit.rev": "81a97e3ab7bd1bc8217db00a89743da124f23234"}}

Builder Setup

Class path
/home/user/contiki-ng/tools/cooja/build/libs/cooja-full.jar
/home/user/contiki-ng/tools/cooja/build/libs
/home/user/contiki-ng/tools/cooja/build/libs/lib/jipv6.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib
/home/user/contiki-ng/tools/cooja/build/libs/lib/logback-classic-1.4.14.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/json-simple-4.0.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/flatlaf-3.2.5.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/syntaxpane-1.3.0.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/picocli-4.7.5.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/jdom2-2.0.6.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/jfreechart-1.5.4.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/nashorn-core-15.4.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/slf4j-api-2.0.9.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/swingx-autocomplete-1.6.5-1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/logback-core-1.4.14.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/asm-commons-7.3.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/asm-util-7.3.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/asm-analysis-7.3.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/asm-tree-7.3.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/asm-7.3.1.jar
/home/user/contiki-ng/tools/cooja/build/libs/lib/swingx-common-1.6.5-1.jar
Module path
/usr/local/lib/svm/library-support.jar
/usr/local/lib/svm-preview/builder/svm-foreign.jar
/usr/local/lib/svm/builder/objectfile.jar
/usr/local/lib/svm/builder/native-image-base.jar
/usr/local/lib/svm/builder/pointsto.jar
/usr/local/lib/svm/builder/svm.jar
Builder arguments
-H:CLibraryPath=/usr/local/lib/svm/clibraries/linux-amd64
-H:Path@driver=/home/user/contiki-ng/tools/cooja/build/native/nativeCompile
-H:ReflectionConfigurationResources@jar:file:///home/user/contiki-ng/tools/cooja/build/libs/cooja-full.jar!/META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/reflect-config.json+api=META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/reflect-config.json
-H:ResourceConfigurationResources@jar:file:///home/user/contiki-ng/tools/cooja/build/libs/cooja-full.jar!/META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/resource-config.json+api=META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/resource-config.json
-H:DynamicProxyConfigurationResources@jar:file:///home/user/contiki-ng/tools/cooja/build/libs/cooja-full.jar!/META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/proxy-config.json+api=META-INF/native-image/picocli-generated/org.contikios.cooja/cooja/proxy-config.json
-H:Name@user+api=cooja
-H:ConfigurationFileDirectories@user=/home/user/contiki-ng/tools/cooja/build/native/generated/generateResourcesConfigFile,/home/user/.gradle/native-build-tools/repositories/e6cb96d180d876be3270cd292aa5952a3c312ef0/exploded/ch.qos.logback/logback-classic/1.4.1,/home/user/contiki-ng/tools/cooja/java
-H:+StrictImageHeap@user+api
-H:+ReportUnsupportedElementsAtRuntime@user+api
-H:ClassInitialization@user+api=org.slf4j.LoggerFactory:build_time,ch.qos.logback:build_time
-H:TraceClassInitialization@user+api=ch.qos.logback.classic.Logger
-H:TraceObjectInstantiation@user+api=ch.qos.logback.core.AsyncAppenderBase$Worker
-H:Class@explicit main-class=org.contikios.cooja.Main
-H:ImageBuildID@driver=96c559b3-0336-5124-2242-6a49da032275
-H:Features@jar:file:///usr/local/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:///usr/local/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
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 21.0.1-dev+12.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.SubstrateControlFlowIntegrityFeature, []
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.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.thread.ThreadListenerSupportFeature 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.SubstrateControlFlowIntegrityFeature]
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.ConcurrentReachabilityHandler, []
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.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.foreign.ForeignFunctionsFeature, []
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.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, []

pjonsson avatar Dec 28 '23 12:12 pjonsson

Hello @pjonsson, thank you for reporting this issue. Can you please, share with us a reproducer in addition to the steps to follow in order to reproduce your issue. Thank you.

kassifar avatar Dec 28 '23 13:12 kassifar

Sorry @kassifar , here are reproduction steps on Ubuntu 22.04:

  1. git clone --depth 1 https://github.com/contiki-ng/contiki-ng
  2. cd contiki-ng/tools
  3. rmdir cooja
  4. git clone --branch native-image-enable-preview https://github.com/pjonsson/cooja
  5. (Comment out line 112 in build.gradle, vendor = ...)
  6. cd ..
  7. SRCPATH=$(pwd)
  8. gzip -d graalvm-dev-snapshot.patch.gz
  9. patch -p1 < graalvm-dev-snapshot.patch
  10. docker build tools/docker --pull -t contiker/contiki-ng
  11. docker run --rm --mount type=bind,source=$SRCPATH,destination=/home/user/contiki-ng -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/bus/usb:/dev/bus/usb -ti contiker/contiki-ng
  12. (Now inside container, prompt looks similar to user@2f67272ea2e9:~/contiki-ng)
  13. cd tests/07-simulation-base
  14. ../../tools/cooja/gradlew --info -p ../../tools/cooja nativeRun

graalvm-dev-snapshot.patch.gz

pjonsson avatar Dec 28 '23 14:12 pjonsson

Any updates? I am running into this as well.

thejudge156 avatar May 07 '24 02:05 thejudge156

Any updates? I am running into this as well.

Hey, I will take a look on this by the end of next week. Sorry for delays

dnestoro avatar May 09 '24 09:05 dnestoro

Sorry, I didn't find time to look at this problem this week. It has to wait until next week

dnestoro avatar May 16 '24 13:05 dnestoro

I have successfully reproduced the problem. In the case when we are trying to determine if module-info.class is directory or not, JarFile.getEntry(String) function returns null, even though module-info.class exists in the /input/classes/cp/picocli-4.7.5.jar jar:

entry = META-INF/
entry = META-INF/MANIFEST.MF
entry = META-INF/versions/
entry = META-INF/versions/9/
entry = META-INF/versions/9/module-info.class  <========
entry = picocli/

In the function description, it says that it "Returns the ZipEntry for the given base entry name" but I guess full path to the resource in the jar is required in this case (not only resource name).

I will provide fix soon. Thanks for rising this issue!

dnestoro avatar May 24 '24 14:05 dnestoro

I have successfully reproduced the problem. In the case when we are trying to determine if module-info.class is directory or not, JarFile.getEntry(String) function returns null, even though module-info.class exists in the /input/classes/cp/picocli-4.7.5.jar jar:

entry = META-INF/
entry = META-INF/MANIFEST.MF
entry = META-INF/versions/
entry = META-INF/versions/9/
entry = META-INF/versions/9/module-info.class  <========
entry = picocli/

In the function description, it says that it "Returns the ZipEntry for the given base entry name" but I guess full path to the resource in the jar is required in this case (not only resource name).

I will provide fix soon. Thanks for rising this issue!

Has this fix been implemented yet?

thejudge156 avatar Jul 08 '24 00:07 thejudge156

I have successfully reproduced the problem. In the case when we are trying to determine if module-info.class is directory or not, JarFile.getEntry(String) function returns null, even though module-info.class exists in the /input/classes/cp/picocli-4.7.5.jar jar:

entry = META-INF/
entry = META-INF/MANIFEST.MF
entry = META-INF/versions/
entry = META-INF/versions/9/
entry = META-INF/versions/9/module-info.class  <========
entry = picocli/

In the function description, it says that it "Returns the ZipEntry for the given base entry name" but I guess full path to the resource in the jar is required in this case (not only resource name). I will provide fix soon. Thanks for rising this issue!

Has this fix been implemented yet?

Yes, it is in a reviewing state. It should be merged soon

dnestoro avatar Jul 08 '24 07:07 dnestoro

Fix merged

dnestoro avatar Jul 15 '24 08:07 dnestoro