apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.11k stars 248 forks source link

Flink types serialization codegen error: no such constructor: org.apache.flink.table.data.binary.BinaryStringDataFuryCodec_0.<init>(Fury,Class)void/invokeSpecial #1947

Closed chaokunyang closed 1 day ago

chaokunyang commented 2 days ago

Search before asking

Version

main

Component(s)

Java

Minimal reproduce step

None

What did you expect to see?

java.lang.Error: java.lang.IllegalAccessException: no such constructor: org.apache.flink.table.data.binary.BinaryStringDataFuryCodec_0.(Fury,Class)void/invokeSpecial

What did you see instead?

java.lang.Error: java.lang.IllegalAccessException: no such constructor: org.apache.flink.table.data.binary.BinaryStringDataFuryCodec_0.<init>(Fury,Class)void/invokeSpecial
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1155) ~[?:1.8.0_372]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_372]
at java.lang.Thread.run(Thread.java:879) [?:1.8.0_372]
Caused by: java.lang.IllegalAccessException: no such constructor: org.apache.flink.table.data.binary.BinaryStringDataFuryCodec_0.<init>(Fury,Class)void/invokeSpecial
at java.lang.invoke.MemberName.makeAccessException(MemberName.java:867) ~[?:1.8.0_372]
at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1003) ~[?:1.8.0_372]
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1386) ~[?:1.8.0_372]
at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:924) ~[?:1.8.0_372]
at org.apache.fury.serializer.Serializers.createSerializer(Serializers.java:127) ~[flash-serializer-v1.jar:?]
at org.apache.fury.serializer.Serializers.newSerializer(Serializers.java:104) ~[flash-serializer-v1.jar:?]
at org.apache.fury.resolver.ClassResolver$1.onSuccess(ClassResolver.java:941) ~[flash-serializer-v1.jar:?]
at org.apache.fury.resolver.ClassResolver$1.onSuccess(ClassResolver.java:938) ~[flash-serializer-v1.jar:?]
at org.apache.fury.builder.JITContext.lambda$registerSerializerJITCallback$0(JITContext.java:94) ~[flash-serializer-v1.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_372]
... 2 more
Caused by: java.lang.LinkageError: bad method type alias: (Fury,Class)void not visible from class org.apache.flink.table.data.binary.BinaryStringDataFuryCodec_0
at java.lang.invoke.MemberName.checkForTypeAlias(MemberName.java:793) ~[?:1.8.0_372]
at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:976) ~[?:1.8.0_372]
at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1000) ~[?:1.8.0_372]
at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1386) ~[?:1.8.0_372]
at java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:924) ~[?:1.8.0_372]
at org.apache.fury.serializer.Serializers.createSerializer(Serializers.java:127) ~[flash-serializer-v1.jar:?]
at org.apache.fury.serializer.Serializers.newSerializer(Serializers.java:104) ~[flash-serializer-v1.jar:?]
at org.apache.fury.resolver.ClassResolver$1.onSuccess(ClassResolver.java:941) ~[flash-serializer-v1.jar:?]
at org.apache.fury.resolver.ClassResolver$1.onSuccess(ClassResolver.java:938) ~[flash-se rializer-v1.jar:?]
at org.apache.fury.builder.JITContext.lambda$registerSerializerJITCallback$0(JITContext.java:94) ~[flash-serializer-v1.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_372]
... 2 more

Anything Else?

No response

Are you willing to submit a PR?