You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile
[demo:6403] classlist: 10,590.77 ms
[demo:6403] (cap): 1,791.38 ms
[demo:6403] setup: 4,864.41 ms
[demo:6403] analysis: 39,078.35 ms
Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
com.oracle.svm.core.util.UserError$UserException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
at com.oracle.svm.core.util.UserError.abort(UserError.java:75)
at com.oracle.svm.hosted.FallbackFeature.reportAsFallback(FallbackFeature.java:216)
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:732)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:522)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:440)
at java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1386)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:130)
at com.oracle.graal.pointsto.BigBang.finish(BigBang.java:565)
at com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:683)
... 7 more
Error: Image build request failed with exit status 1
mv: cannot stat 'demo': No such file or directory
Compiled app (demo)
./compile.sh: line 39: ./demo: No such file or directory
real 0m0.001s
user 0m0.000s
sys 0m0.000s
`
The text was updated successfully, but these errors were encountered:
`1) wget https://github.com/oracle/graal/releases/download/vm-19.1.1/graalvm-ce-linux-amd64-19.1.1.tar.gz
2) tar zxf graalvm-ce-linux-amd64-19.1.1.tar.gz
3) nano /root/.bash_profile
add this line:
export PATH="/root/graalvm-ce-19.1.1/bin/:$PATH"
root@vultr:~# java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-20190711120915.buildslave.jdk8u-src-tar--b08)
OpenJDK 64-Bit GraalVM CE 19.1.1 (build 25.222-b08-jvmci-19.1-b01, mixed mode)
mvn -v
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_222, vendor: Oracle Corporation
Java home: /root/graalvm-ce-19.1.1/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-154-generic", arch: "amd64", family: "unix"
cd spring-boot-graal-feature/
cd samples/demo
./compile.sh
....
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ demo ---
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom (998 B at 83 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.pom (11 kB at 858 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/22/commons-parent-22.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-parent/22/commons-parent-22.pom (42 kB at 2.5 MB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.4/maven-shared-utils-0.4.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.4/maven-shared-utils-0.4.pom (4.0 kB at 450 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.pom (3.1 kB at 286 kB/s)
Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
Downloading from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.4/maven-shared-utils-0.4.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar
Downloading from central: https://repo.maven.apache.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar
Downloaded from central: https://repo.maven.apache.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar (38 kB at 853 kB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar (121 kB at 1.4 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-utils/0.4/maven-shared-utils-0.4.jar (155 kB at 1.5 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar (233 kB at 1.9 MB/s)
Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.15/plexus-utils-3.0.15.jar (239 kB at 2.1 MB/s)
[INFO] Installing /root/spring-boot-graal-feature/samples/demo/target/demo-0.0.1-SNAPSHOT.jar to /root/.m2/repository/com/example/demo/0.0.1-SNAPSHOT/demo-0.0.1-SNAPSHOT.jar
[INFO] Installing /root/spring-boot-graal-feature/samples/demo/pom.xml to /root/.m2/repository/com/example/demo/0.0.1-SNAPSHOT/demo-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.823 s
[INFO] Finished at: 2019-07-19T02:13:11Z
[INFO] ------------------------------------------------------------------------
rm: cannot remove 'demo': No such file or directory
Unpacking demo-0.0.1-SNAPSHOT.jar
Compile
[demo:6403] classlist: 10,590.77 ms
[demo:6403] (cap): 1,791.38 ms
[demo:6403] setup: 4,864.41 ms
[demo:6403] analysis: 39,078.35 ms
Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
com.oracle.svm.core.util.UserError$UserException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: org.springframework.util.unit.DataSize. Try marking this class for build-time initialization with --initialize-at-build-time=org.springframework.util.unit.DataSize
Detailed message:
Trace: object org.springframework.util.unit.DataUnit
method org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit)
Call path from entry point to org.springframework.util.unit.DataSize.determineDataUnit(String, DataUnit):
at org.springframework.util.unit.DataSize.determineDataUnit(DataSize.java:175)
at org.springframework.util.unit.DataSize.parse(DataSize.java:165)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:58)
at org.springframework.boot.convert.StringToDataSizeConverter.convert(StringToDataSizeConverter.java:49)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:191)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter.lambda$convert$0(DelimitedStringToCollectionConverter.java:76)
at org.springframework.boot.convert.DelimitedStringToCollectionConverter$$Lambda$401/1709169975.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.SpinedBuffer.forEach(SpinedBuffer.java:246)
at java.util.stream.SpinedBuffer.toString(SpinedBuffer.java:269)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.oracle.svm.core.amd64.AMD64CPUFeatureAccess.verifyHostSupportsArchitecture(AMD64CPUFeatureAccess.java:179)
at com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:125)
at com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(generated:0)
Error: Image build request failed with exit status 1
mv: cannot stat 'demo': No such file or directory
Compiled app (demo)
./compile.sh: line 39: ./demo: No such file or directory
real 0m0.001s
user 0m0.000s
sys 0m0.000s
`
The text was updated successfully, but these errors were encountered: