buildless / cli

Buildless CLI and Agent
https://docs.less.build/docs/cli
5 stars 0 forks source link

`IllegalStateException`: SISMWAW cache reflection #9

Closed sgammon closed 10 months ago

sgammon commented 10 months ago

Expected Behavior

Running the agent should work and not produce a crash

Actual Behaviour

A crash

Stacktrace

Caused by: java.lang.IllegalStateException: SISMWAW
    at com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory(LocalCacheFactory.java:114)
    at java.base@21.0.1/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at com.github.benmanes.caffeine.cache.LocalCacheFactory.loadFactory(LocalCacheFactory.java:97)
    at com.github.benmanes.caffeine.cache.LocalCacheFactory.newBoundedLocalCache(LocalCacheFactory.java:46)
    at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3953)
    at com.github.benmanes.caffeine.cache.BoundedLocalCache$BoundedLocalManualCache.<init>(BoundedLocalCache.java:3949)
    at com.github.benmanes.caffeine.cache.Caffeine.build(Caffeine.java:1048)
    at build.less.agent.impl.LocalSyncCache.buildCache(LocalSyncCache.kt:195)
    at io.micronaut.cache.caffeine.DefaultSyncCache.<init>(DefaultSyncCache.java:88)
    at build.less.agent.impl.LocalSyncCache.<init>(LocalSyncCache.kt:52)
    at build.less.agent.impl.$LocalSyncCache$Definition.instantiate(Unknown Source)
    at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
    at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2309)
    ... 117 more
Caused by: java.lang.NoSuchMethodException: no such constructor: com.github.benmanes.caffeine.cache.SISMWAW.<init>(Caffeine,AsyncCacheLoader,boolean)void/newInvokeSpecial
    at java.base@21.0.1/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
    at java.base@21.0.1/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
    at java.base@21.0.1/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
    at java.base@21.0.1/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
    at com.github.benmanes.caffeine.cache.LocalCacheFactory$MethodHandleBasedFactory.<init>(LocalCacheFactory.java:122)
    at com.github.benmanes.caffeine.cache.LocalCacheFactory.newFactory(LocalCacheFactory.java:111)
    ... 129 more
Caused by: java.lang.NoSuchMethodError: com.github.benmanes.caffeine.cache.SISMWAW.<init>(com.github.benmanes.caffeine.cache.Caffeine, com.github.benmanes.caffeine.cache.AsyncCacheLoader, boolean)
    at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
    at java.base@21.0.1/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
    at java.base@21.0.1/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
    at java.base@21.0.1/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
    ... 133 more

Steps To Reproduce

  1. On a M-series macOS device
  2. Install the CLI
  3. Run buildless agent run --verbose --no-background

Environment Information

Component

Buildless Agent

Language

N/A (Default)

Tool

N/A (Default)

Example Application

No response

Version

1.0.0-rc1