You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by "foxmia (via GitHub)" <gi...@apache.org> on 2024/05/09 09:44:13 UTC
[I] In asyncCompilation to true, under the condition of it. The "it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap" serialization failure [incubator-fury]
foxmia opened a new issue, #1615:
URL: https://github.com/apache/incubator-fury/issues/1615
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-fury/issues) and found no similar issues.
### Version
0.5.0、0.4.1
### Component(s)
Java
### Minimal reproduce step
Serialization fails only if `asyncCompilation` is `true`, there is no problem if `asyncCompilation` is `false`
```java
@Data
public class Object2ObjectOpenHashMapTest {
Map<String, String> ext = new Object2ObjectOpenHashMap<>();
}
```
```java
ThreadSafeFury fury = Fury.builder()
.requireClassRegistration(false)
.withCompatibleMode(CompatibleMode.COMPATIBLE)
.withAsyncCompilation(true)
.buildThreadSafeFury();
Object2ObjectOpenHashMapTest object2ObjectOpenHashMapTest = new Object2ObjectOpenHashMapTest();
byte[] bytes = fury.serializeJavaObject(object2ObjectOpenHashMapTest);
```
The error message is as follows
```
Exception in thread "main" java.lang.ClassCastException: class org.apache.fury.serializer.collection.MapSerializers$JDKCompatibleMapSerializer cannot be cast to class org.apache.fury.serializer.collection.MapSerializer (org.apache.fury.serializer.collection.MapSerializers$JDKCompatibleMapSerializer and org.apache.fury.serializer.collection.MapSerializer are in unnamed module of loader 'app')
at org.apache.fury.serializer.CompatibleSerializer.writeMapKVFinal(CompatibleSerializer.java:258)
at org.apache.fury.serializer.CompatibleSerializer.writeSeparateFieldValue(CompatibleSerializer.java:226)
at org.apache.fury.serializer.CompatibleSerializer.readAndWriteFieldValue(CompatibleSerializer.java:155)
at org.apache.fury.serializer.CompatibleSerializer.write(CompatibleSerializer.java:110)
at org.apache.fury.Fury.writeData(Fury.java:550)
at org.apache.fury.Fury.serializeJavaObject(Fury.java:1050)
at org.apache.fury.Fury.serializeJavaObject(Fury.java:1025)
at org.apache.fury.ThreadLocalFury.serializeJavaObject(ThreadLocalFury.java:180)
```
### What did you expect to see?
expect it to work.
### What did you see instead?
class org.apache.fury.serializer.collection.MapSerializers$JDKCompatibleMapSerializer cannot be cast to class org.apache.fury.serializer.collection.MapSerializer (org.apache.fury.serializer.collection.MapSerializers$JDKCompatibleMapSerializer and org.apache.fury.serializer.collection.MapSerializer are in unnamed module of loader 'app')
### Anything Else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [I] In asyncCompilation to true, under the condition of it. The "it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap" serialization failure [incubator-fury]
Posted by "foxmia (via GitHub)" <gi...@apache.org>.
foxmia commented on issue #1615:
URL: https://github.com/apache/incubator-fury/issues/1615#issuecomment-2102385305
> Hi @foxmia could you provide code for Object2ObjectOpenHashMap?
This is dependency
```xml
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>8.5.6</version>
</dependency>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [I] In asyncCompilation to true, under the condition of it. The "it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap" serialization failure [incubator-fury]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang commented on issue #1615:
URL: https://github.com/apache/incubator-fury/issues/1615#issuecomment-2102329470
Hi @foxmia could you provide code for Object2ObjectOpenHashMap?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org
Re: [I] In asyncCompilation to true, under the condition of it. The "it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap" serialization failure [incubator-fury]
Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang closed issue #1615: In asyncCompilation to true, under the condition of it. The "it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap" serialization failure
URL: https://github.com/apache/incubator-fury/issues/1615
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org