julianhowarth commented on issue #2275:
URL: https://github.com/apache/fory/issues/2275#issuecomment-3261657365

   @chaokunyang - I have confirmed that `0.13.0-SNAPSHOT` fixes the simplified 
issue which is great. Thanks. 
   
   Unfortunately, going back to my more complex, original code I now get a 
different error (from the original one):
   ```
   org.apache.fory.exception.DeserializationException: Failed to deserialize 
input
   
        at 
org.apache.fory.util.ExceptionUtils.handleReadFailed(ExceptionUtils.java:66)
        at org.apache.fory.Fory.deserializeJavaObject(Fory.java:1226)
        at org.apache.fory.Fory.deserializeJavaObject(Fory.java:1197)
        at 
com.endeavorstreaming.vesper.content_engine.common.utils.SerializationTest.t3(SerializationTest.java:129)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   Caused by: java.lang.IllegalArgumentException
        at 
org.apache.fory.util.Preconditions.checkArgument(Preconditions.java:46)
        at 
org.apache.fory.serializer.ReplaceResolveSerializer.read(ReplaceResolveSerializer.java:317)
        at 
com.endeavorstreaming.vesper.content_engine.common.load.RealmContentItemForyCodecMetaShared0_0.read(RealmContentItemForyCodecMetaShared0_0.java:49)
        at org.apache.fory.Fory.readDataInternal(Fory.java:1052)
        at org.apache.fory.Fory.readNonRef(Fory.java:986)
        at 
org.apache.fory.serializer.ArraySerializers$ObjectArraySerializer.read(ArraySerializers.java:177)
        at 
org.apache.fory.serializer.ArraySerializers$ObjectArraySerializer.read(ArraySerializers.java:44)
        at org.apache.fory.Fory.readDataInternal(Fory.java:1052)
   ```  
   The precondition is: `Preconditions.checkArgument(flag == 0)` but `flag` 
actually has a value of `5`.
   
   Given the different error message, I'm happy to raise a separate issue for 
this if you prefer. Or we can keep it here. 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to