Hi Alex,
Glad to hear you've been able to get it working on 2.15 with jdk11/17.  I
had tried to get it working at different points in time without success.
In the past it had been discussed on the ignite user groups and I didn't
see anyone having much luck, plus there is a line item in the Ignite 3.x
wiki
<https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+3.0#ApacheIgnite3.0-GraalVMNativeImageSupport>
around
some graalvm native-image work.  In rereading the wiki, perhaps I
misinterpreted it?

Either way, I was discussing this with a coworker and he pointed out that
he had gotten it to work with jdk17 using my example.  It turned out that I
was using the 17-graal (oracle distro from sdkman <https://sdkman.io/>)
when I encountered these issues (see below). It actually does work for me
using the 17-graalce when I run it locally (even with Ignite 2.15).  After
facing these problems with 17-graal, it looked like we needed jdk21.

Here is the exception i was seeing with the jdk 17 oracle distro (17-graal
in sdkman):

Fatal error: unhandled exception in isolate 0x107800000:
com.oracle.svm.core.jdk.UnsupportedFeatureError: Code that was
considered unreachable by closed-world analysis was reached.
    at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:92)
    at 
com.oracle.svm.core.snippets.SnippetRuntime.unsupportedFeature(SnippetRuntime.java:173)
    at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1007)
    at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:494)
    at 
com.oracle.svm.core.jdk.NativeLibrarySupport.addLibrary(NativeLibrarySupport.java:215)
    at 
com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibrary0(NativeLibrarySupport.java:160)
    at 
com.oracle.svm.core.jdk.NativeLibrarySupport.loadLibraryRelative(NativeLibrarySupport.java:105)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:50)
    at java.lang.Runtime.loadLibrary0(Runtime.java:818)
    at java.lang.System.loadLibrary(System.java:1989)
    at 
com.oracle.svm.core.jdk.JNIPlatformNativeLibrarySupport.loadJavaLibrary(JNIPlatformNativeLibrarySupport.java:44)
    at 
com.oracle.svm.core.posix.PosixNativeLibrarySupport.loadJavaLibrary(PosixNativeLibraryFeature.java:117)
    at 
com.oracle.svm.core.posix.PosixNativeLibrarySupport.initializeBuiltinLibraries(PosixNativeLibraryFeature.java:98)
    at 
com.oracle.svm.core.graal.snippets.CEntryPointSnippets.initializeIsolate(CEntryPointSnippets.java:346)
    at 
com.oracle.svm.core.JavaMainWrapper$EnterCreateIsolateWithCArgumentsPrologue.enter(JavaMainWrapper.java:387)




On Mon, Oct 9, 2023 at 3:45 AM Alex Plehanov <plehanov.a...@gmail.com>
wrote:

> Hello Scott,
>
> What kind of issues do you have with jdk17?
> I've tested graalvm native images with Ignite 2.15 some time ago
> (right after 2.15 was released) on jdk11 and jdk17 and it works on my
> examples.
>
> пн, 9 окт. 2023 г. в 11:24, Stephen Darlington <sdarling...@apache.org>:
> >
> > That's great news, thanks for sharing!
> >
> > On Sun, 8 Oct 2023 at 19:30, Scott Feldstein <scott...@gmail.com> wrote:
> >
> > > Hi All, I just wanted to let the community know in case folks weren't
> aware
> > > - it looks like Graalvm native images work on Ignite 2.16.0-SNAPSHOT
> builds
> > > with jdk21.  The fixes that appear responsible are IGNITE-19652
> > > <https://issues.apache.org/jira/browse/IGNITE-19652> and IGNITE-20532
> > > <https://issues.apache.org/jira/browse/IGNITE-20532>.  Unfortunately I
> > > can't get jdk17 to work properly as graalvm on that version appears to
> have
> > > limitations.  Graalvm native-image associated with jdk21 seems to
> alleviate
> > > those issues.
> > >
> > > If anyone is interested in my poc see
> > > https://github.com/scottmf/graalvm-ignite
> > >
> > > Scott
> > >
>

Reply via email to