Skip to content

Runtime warning with Java25 #3486

Closed
Closed

Description

@gramian

ArcadeDB Server v26.3.1-SNAPSHOT (build 7c92d6f3e5cb7676bfd1ff4639a948d51af56c8c/1771573435692/main)

Running on Mac OS X 15.7.3 - OpenJDK 64-Bit Server VM 25.0.2 (Homebrew)

Starting the server, a warning appears when on top of OpenJDK25:

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.jboss.threads.JBossExecutors (file:package/target/arcadedb-26.3.1-SNAPSHOT.dir/arcadedb-26.3.1-SNAPSHOT/lib/jboss-threads-3.7.0.Final.jar)
WARNING: Please consider reporting this to the maintainers of class org.jboss.threads.JBossExecutors
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release

Since the upcoming Ubuntu LTS will have OpenJDK25 as default, this would be timely.

These may be related: #1934 #2554

Activity

  1. gramian commented on Feb 20, 2026

    @gramian
    CollaboratorAuthor

    The test com.arcadedb.ACIDTransactionTest warns:

    WARNING: A restricted method in java.lang.System has been called
    WARNING: java.lang.System::load has been called by com.oracle.truffle.polyglot.JDKSupport in an unnamed module (file:/Users/XXX/.m2/repository/org/graalvm/truffle/truffle-api/25.0.2/truffle-api-25.0.2.jar)
    WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
    WARNING: Restricted methods will be blocked in a future release unless native access is enabled
    
    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.oracle.truffle.api.nodes.NodeClassImpl$NodeFieldData (file:/Users/XX/.m2/repository/org/graalvm/truffle/truffle-api/25.0.2/truffle-api-25.0.2.jar)
    WARNING: Please consider reporting this to the maintainers of class com.oracle.truffle.api.nodes.NodeClassImpl$NodeFieldData
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    
  2. added theissue type on Feb 20, 2026
  3. added this to the 26.3.1 milestone on Feb 20, 2026
  4. gramian commented on Mar 2, 2026

    @gramian
    CollaboratorAuthor

    Console:

    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.oracle.truffle.api.strings.TStringUnsafe (file:/home/arcadedb/lib/truffle-api-25.0.2.jar)
    WARNING: Please consider reporting this to the maintainers of class com.oracle.truffle.api.strings.TStringUnsafe
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    
  5. gramian commented on Mar 3, 2026

    @gramian
    CollaboratorAuthor

    Gremlin:

    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.github.benmanes.caffeine.base.UnsafeAccess (file:/Users/ch/Projects/arcadedb/package/target/arcadedb-26.3.1-SNAPSHOT.dir/arcadedb-26.3.1-SNAPSHOT/lib/arcadedb-gremlin-26.3.1-SNAPSHOT-shaded.jar)
    WARNING: Please consider reporting this to the maintainers of class com.github.benmanes.caffeine.base.UnsafeAccess
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    
  6. modified the milestones: 26.3.1, 26.4.1 on Mar 3, 2026
  7. gramian commented on Mar 4, 2026

    @gramian
    CollaboratorAuthor

    Some more from the server log:

    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/usr/share/maven/lib/guava.jar)
    WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    
    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::allocateMemory has been called by io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0$2 (file:/home/ch/arcadedb/package/target/arcadedb-26.3.1-SNAPSHOT.dir/arcadedb-26.3.1-SNAPSHOT/lib/arcadedb-grpcw-26.3.1-SNAPSHOT-shaded.jar)
    WARNING: Please consider reporting this to the maintainers of class io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0$2
    WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
    
  8. added a commit that references this issue on Mar 17, 2026
  9. lvca commented on Mar 17, 2026

    @lvca
    Member

    Fixed all but one where we have to wait for the Truffle/GraalVM team for it

  10. assigned and unassigned on Mar 17, 2026
  11. gramian commented on Mar 17, 2026

    @gramian
    CollaboratorAuthor

    Great!

  12. added a commit that references this issue on May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions