Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache ignite startup failure

Apache ignite .net core server node fails to start with the below error, any idea what could be the reason?

Apache.Ignite.Core.Common.IgniteException
  HResult=0x80131500
  Message=Java exception occurred [class=java.lang.ExceptionInInitializerError, message=]
  Source=Apache.Ignite.Core
  StackTrace:
   at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
   at IgniteShared.Cache.CacheService.<Start>b__3_0() in C:\Users\user\IgnitePoc\IgniteShared\Cache.cs

  This exception was originally thrown at this call stack:
    [External Code]

Inner Exception 1:
JavaException: java.lang.ExceptionInInitializerError
    at org.apache.ignite.internal.processors.platform.memory.PlatformAbstractMemory.<clinit>(PlatformAbstractMemory.java:27)
    at org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.init(PlatformAbstractBootstrap.java:54)
    at org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:65)
Caused by: java.lang.RuntimeException: java.nio.DirectByteBuffer.address field is unavailable.
    at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1570)
    at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1557)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
    at org.apache.ignite.internal.util.GridUnsafe.bufferAddressOffset(GridUnsafe.java:1557)
    at org.apache.ignite.internal.util.GridUnsafe.<clinit>(GridUnsafe.java:109)
    ... 3 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field long java.nio.Buffer.address accessible: module java.base does not "opens java.nio" to unnamed module @69663380
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
    at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
    at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
    at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1562)
    ... 7 more
like image 626
csharpdev Avatar asked Oct 27 '25 23:10

csharpdev


1 Answers

Apache Ignite requires Java 8 or Java 11. Java 17 is not yet supported.

https://ignite.apache.org/docs/latest/quick-start/dotnet

(update: Java 17 support is coming soon: IGNITE-16622)

like image 52
Pavel Tupitsyn Avatar answered Oct 29 '25 14:10

Pavel Tupitsyn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!