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
Error: Feature defined by oracle.jdbc.nativeimage.NativeImageFeature unexpectedly failed with a(n) java.lang.NoSuchMethodError. Please report this problem to the authors of oracle.jdbc.nativeimage.NativeImageFeature.
Steps to Reproduce
Download and extract sqlcl
cd into sqlcl
Run the build command above
Additional Context
No response
Build Log Output and Error Messages
Error: Feature defined by oracle.jdbc.nativeimage.NativeImageFeature unexpectedly failed with a(n) java.lang.NoSuchMethodError. Please report this problem to the authors of oracle.jdbc.nativeimage.NativeImageFeature.
Caused by: java.lang.NoSuchMethodError: 'void com.oracle.svm.core.configure.ResourcesRegistry.addResourceBundles(java.lang.String)'
at oracle.jdbc.nativeimage.NativeImageFeature.beforeAnalysis(NativeImageFeature.java:81)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:822)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:93)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:822)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:554)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:528)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:711)
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)
Internal exception: com.oracle.svm.core.util.UserError$UserException: Feature defined by oracle.jdbc.nativeimage.NativeImageFeature unexpectedly failed with a(n) java.lang.NoSuchMethodError. Please report this problem to the authors of oracle.jdbc.nativeimage.NativeImageFeature.
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:97)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.handleFeatureError(FeatureHandler.java:299)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:95)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.runPointsToAnalysis(NativeImageGenerator.java:822)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:592)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:554)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:528)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:711)
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.NoSuchMethodError: 'void com.oracle.svm.core.configure.ResourcesRegistry.addResourceBundles(java.lang.String)'
at oracle.jdbc.nativeimage.NativeImageFeature.beforeAnalysis(NativeImageFeature.java:81)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.lambda$runPointsToAnalysis$10(NativeImageGenerator.java:822)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:93)
... 7 more
The text was updated successfully, but these errors were encountered:
According to the error, oracle.jdbc.nativeimage.NativeImageFeature calls the following Native Image internal function, which is not an API: com.oracle.svm.core.configure.ResourcesRegistry.addResourceBundles(String).
So, this would be an issue for the JDBC team
Describe the Issue
Attempting to build a native image of Oracle SQLcl Version 24.3.0.285.0530 fails within oracle.jdbc.nativeimage.NativeImageFeature.
Using the latest version of GraalVM can resolve many issues.
GraalVM Version
java version "23.0.1" 2024-10-15
Java(TM) SE Runtime Environment Oracle GraalVM 23.0.1+11.1 (build 23.0.1+11-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 23.0.1+11.1 (build 23.0.1+11-jvmci-b01, mixed mode, sharing)
Operating System and Version
Darwin M-KX6N12W65G 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:35:10 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6030 arm64
Build Command
Expected Behavior
A native image of sqlcl
Actual Behavior
Error: Feature defined by oracle.jdbc.nativeimage.NativeImageFeature unexpectedly failed with a(n) java.lang.NoSuchMethodError. Please report this problem to the authors of oracle.jdbc.nativeimage.NativeImageFeature.
Steps to Reproduce
Additional Context
No response
Build Log Output and Error Messages
The text was updated successfully, but these errors were encountered: