Skip to content

Caffeine error at runtime when using native build #10420

@aimanph23

Description

@aimanph23

Describe the bug

"causedBy": {
--
  | "exception": {
  | "refId": 5,
  | "exceptionType": "java.lang.ClassNotFoundException",
  | "message": "com.github.benmanes.caffeine.cache.SSMSW",
  | "frames": [
  | {
  | "class": "com.oracle.svm.core.hub.ClassForNameSupport",
  | "method": "forName",
  | "line": 60
  | },
  | {
  | "class": "java.lang.ClassLoader",
  | "method": "loadClass",
  | "line": 160
  | },
  | {
  | "class": "com.github.benmanes.caffeine.cache.LocalCacheFactory",
  | "method": "newBoundedLocalCache",
  | "line": 95
  | },

Expected behavior
Should be working in Native build

Actual behavior
Only works on JVM build and local dev.
Build native is successful, but at runtime it triggers an error

To Reproduce
Steps to reproduce the behavior:

  1. Error when a code is hit with caffeine implementation at runtime
  2. No problem with JVM build and local dev runtime

Environment (please complete the following information):
Quarkus 1.5.2.Final
GraalVM 20.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions