You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.UnsupportedOperationException: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:209)
at org.apache.fury.serializer.collection.CollectionSerializers$ConcurrentSkipListSetSerializer.(CollectionSerializers.java:446)
at org.apache.fury.serializer.collection.CollectionSerializers.registerDefaultSerializers(CollectionSerializers.java:836)
at org.apache.fury.resolver.ClassResolver.addDefaultSerializers(ClassResolver.java:326)
at org.apache.fury.resolver.ClassResolver.initialize(ClassResolver.java:313)
at org.apache.fury.Fury.(Fury.java:150)
at org.apache.fury.config.FuryBuilder.newFury(FuryBuilder.java:419)
at org.apache.fury.config.FuryBuilder.build(FuryBuilder.java:434)
at com.example.demo.FuryUtils.lambda$static$0(FuryUtils.java:21)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:138)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:95)
at org.apache.fury.ThreadLocalFury.lambda$new$2(ThreadLocalFury.java:67)
at [email protected]/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:357)
at [email protected]/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:225)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:194)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:172)
at org.apache.fury.ThreadLocalFury.(ThreadLocalFury.java:75)
at com.example.demo.FuryUtils.(FuryUtils.java:18)
at com.example.demo.DemoApplication.main(DemoApplication.java:10)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at [email protected]/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
at org.apache.fury.reflect.ReflectionUtils.lambda$getCtrHandle$1(ReflectionUtils.java:147)
at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.apache.fury.reflect.ReflectionUtils.getCtrHandle(ReflectionUtils.java:143)
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:207)
... 19 more
Caused by: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentSkipListSet.(java.util.Comparator)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
at [email protected]/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
at [email protected]/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
... 25 more
2024-12-20 01:47:53 ERROR FuryBuilder:422 [main] - Fury creation failed with classloader jdk.internal.loader.ClassLoaders$AppClassLoader@48140564
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.example.demo.DemoApplication.main(DemoApplication.java:10)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.UnsupportedOperationException: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:209)
at org.apache.fury.serializer.collection.CollectionSerializers$ConcurrentSkipListSetSerializer.(CollectionSerializers.java:446)
at org.apache.fury.serializer.collection.CollectionSerializers.registerDefaultSerializers(CollectionSerializers.java:836)
at org.apache.fury.resolver.ClassResolver.addDefaultSerializers(ClassResolver.java:326)
at org.apache.fury.resolver.ClassResolver.initialize(ClassResolver.java:313)
at org.apache.fury.Fury.(Fury.java:150)
at org.apache.fury.config.FuryBuilder.newFury(FuryBuilder.java:419)
at org.apache.fury.config.FuryBuilder.build(FuryBuilder.java:434)
at com.example.demo.FuryUtils.lambda$static$0(FuryUtils.java:21)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:138)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:95)
at org.apache.fury.ThreadLocalFury.lambda$new$2(ThreadLocalFury.java:67)
at [email protected]/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:357)
at [email protected]/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:225)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:194)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:172)
at org.apache.fury.ThreadLocalFury.(ThreadLocalFury.java:75)
at com.example.demo.FuryUtils.(FuryUtils.java:18)
... 2 more
Caused by: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at [email protected]/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
at org.apache.fury.reflect.ReflectionUtils.lambda$getCtrHandle$1(ReflectionUtils.java:147)
at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.apache.fury.reflect.ReflectionUtils.getCtrHandle(ReflectionUtils.java:143)
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:207)
... 19 more
Caused by: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentSkipListSet.(java.util.Comparator)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
at [email protected]/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
at [email protected]/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
... 25 more
You may need to review this document if you are running in AOT mode. graalvm_guide
so you must create Fury as an static field of a class, and register all classes at the enclosing class initialize time.
Search before asking
Version
Fury:0.9.0
os:windows10
graalvm:21.0.4
Component(s)
Java
Minimal reproduce step
demo.zip
see demo.zip
What did you expect to see?
no error
What did you see instead?
java.lang.UnsupportedOperationException: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:209)
at org.apache.fury.serializer.collection.CollectionSerializers$ConcurrentSkipListSetSerializer.(CollectionSerializers.java:446)
at org.apache.fury.serializer.collection.CollectionSerializers.registerDefaultSerializers(CollectionSerializers.java:836)
at org.apache.fury.resolver.ClassResolver.addDefaultSerializers(ClassResolver.java:326)
at org.apache.fury.resolver.ClassResolver.initialize(ClassResolver.java:313)
at org.apache.fury.Fury.(Fury.java:150)
at org.apache.fury.config.FuryBuilder.newFury(FuryBuilder.java:419)
at org.apache.fury.config.FuryBuilder.build(FuryBuilder.java:434)
at com.example.demo.FuryUtils.lambda$static$0(FuryUtils.java:21)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:138)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:95)
at org.apache.fury.ThreadLocalFury.lambda$new$2(ThreadLocalFury.java:67)
at [email protected]/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:357)
at [email protected]/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:225)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:194)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:172)
at org.apache.fury.ThreadLocalFury.(ThreadLocalFury.java:75)
at com.example.demo.FuryUtils.(FuryUtils.java:18)
at com.example.demo.DemoApplication.main(DemoApplication.java:10)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at [email protected]/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
at org.apache.fury.reflect.ReflectionUtils.lambda$getCtrHandle$1(ReflectionUtils.java:147)
at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.apache.fury.reflect.ReflectionUtils.getCtrHandle(ReflectionUtils.java:143)
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:207)
... 19 more
Caused by: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentSkipListSet.(java.util.Comparator)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
at [email protected]/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
at [email protected]/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
... 25 more
2024-12-20 01:47:53 ERROR FuryBuilder:422 [main] - Fury creation failed with classloader jdk.internal.loader.ClassLoaders$AppClassLoader@48140564
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.example.demo.DemoApplication.main(DemoApplication.java:10)
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.lang.UnsupportedOperationException: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:209)
at org.apache.fury.serializer.collection.CollectionSerializers$ConcurrentSkipListSetSerializer.(CollectionSerializers.java:446)
at org.apache.fury.serializer.collection.CollectionSerializers.registerDefaultSerializers(CollectionSerializers.java:836)
at org.apache.fury.resolver.ClassResolver.addDefaultSerializers(ClassResolver.java:326)
at org.apache.fury.resolver.ClassResolver.initialize(ClassResolver.java:313)
at org.apache.fury.Fury.(Fury.java:150)
at org.apache.fury.config.FuryBuilder.newFury(FuryBuilder.java:419)
at org.apache.fury.config.FuryBuilder.build(FuryBuilder.java:434)
at com.example.demo.FuryUtils.lambda$static$0(FuryUtils.java:21)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:138)
at org.apache.fury.util.LoaderBinding.setClassLoader(LoaderBinding.java:95)
at org.apache.fury.ThreadLocalFury.lambda$new$2(ThreadLocalFury.java:67)
at [email protected]/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:357)
at [email protected]/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:225)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:194)
at [email protected]/java.lang.ThreadLocal.get(ThreadLocal.java:172)
at org.apache.fury.ThreadLocalFury.(ThreadLocalFury.java:75)
at com.example.demo.FuryUtils.(FuryUtils.java:18)
... 2 more
Caused by: java.lang.NoSuchMethodException: no such constructor: java.util.concurrent.ConcurrentSkipListSet.(Comparator)void/newInvokeSpecial
at [email protected]/java.lang.invoke.MemberName.makeAccessException(MemberName.java:913)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:994)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3750)
at [email protected]/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2837)
at org.apache.fury.reflect.ReflectionUtils.lambda$getCtrHandle$1(ReflectionUtils.java:147)
at [email protected]/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.apache.fury.reflect.ReflectionUtils.getCtrHandle(ReflectionUtils.java:143)
at org.apache.fury.serializer.collection.CollectionSerializers$SortedSetSerializer.(CollectionSerializers.java:207)
... 19 more
Caused by: java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentSkipListSet.(java.util.Comparator)
at org.graalvm.nativeimage.builder/com.oracle.svm.core.methodhandles.Util_java_lang_invoke_MethodHandleNatives.resolve(Target_java_lang_invoke_MethodHandleNatives.java:335)
at [email protected]/java.lang.invoke.MethodHandleNatives.resolve(MethodHandleNatives.java:213)
at [email protected]/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:962)
at [email protected]/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:991)
... 25 more
Anything Else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: