chaverri commented on issue #2317:
URL: https://github.com/apache/fory/issues/2317#issuecomment-2956979796
Ok I was able to generate a payload and test and I'm getting this, I'm using
the version from main (0.11.0-SNAPSHOT)
```
java.lang.NullPointerException: Cannot invoke
"org.apache.fory.meta.ClassDef.getId()" because "classDef" is null
at
org.apache.fory.serializer.NonexistentClassSerializers$NonexistentClassSerializer.getClassFieldsInfo(NonexistentClassSerializers.java:160)
at
org.apache.fory.serializer.NonexistentClassSerializers$NonexistentClassSerializer.read(NonexistentClassSerializers.java:196)
at org.apache.fory.Fory.readDataInternal(Fory.java:1055)
at org.apache.fory.Fory.readNonRef(Fory.java:978)
at
org.apache.fory.serializer.SerializationBinding$JavaSerializationBinding.readContainerFieldValue(SerializationBinding.java:186)
at
org.apache.fory.serializer.AbstractObjectSerializer.readContainerFieldValue(AbstractObjectSerializer.java:164)
at
org.apache.fory.serializer.MetaSharedSerializer.read(MetaSharedSerializer.java:195)
at org.apache.fory.Fory.readDataInternal(Fory.java:1055)
at org.apache.fory.Fory.readRef(Fory.java:929)
at org.apache.fory.Fory.deserialize(Fory.java:883)
at org.apache.fory.Fory.deserialize(Fory.java:793)
```
And this is my config
```java
Fory.builder()
.deserializeNonexistentEnumValueAsNull(true)
.requireClassRegistration(false)
.withAsyncCompilation(true)
.withCompatibleMode(CompatibleMode.COMPATIBLE)
.withLanguage(Language.JAVA)
.build()
```
What I did was to serialize a dto-v2 instance, save the dump in hex,
deserialize it form the file to make sure it works (which it did) , I'm setting
the new field to a default value.
Then I'm downgrading to dto-v1 in the pom.xml of my project and try to
deserialize it , and that's where it fails
--
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]