You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by "pdad (via GitHub)" <gi...@apache.org> on 2025/10/14 14:15:53 UTC

[I] We get "org.apache.fory.exception.SerializationException: java.lang.RuntimeException: Create sequential serializer failed, class: class Change" when upgrading from 0.12.0 to 0.12.2 [fory]

pdad opened a new issue, #2768:
URL: https://github.com/apache/fory/issues/2768

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues.
   
   
   ### Version
   
   0.12.2, and 0.12.3
   
   ### Component(s)
   
   Other
   
   ### Minimal reproduce step
   
   Kotlin test code:
   
   data class Change<T>(
       val old: T? = null,
       val new: T? = null
   )
   
   class TestFory {
       @Test
       fun foryError() {
           val fory = Fory
               .builder()
               .requireClassRegistration(true)
               .withCodegen(true)
               .withLanguage(Language.JAVA)
               .withRefTracking(false) // Better performance for simple objects
               .withCompatibleMode(CompatibleMode.SCHEMA_CONSISTENT) // For optimal performance
               .build()
   
           fory.register(Change::class.java)
   
           val change = Change("A", "B")
   
           val serializedChange = fory.serialize(change)
   
           val deserializedChange = fory.deserialize(serializedChange, Change::class.java)
   
           Assertions.assertEquals(change, deserializedChange)
       }
   }
   
   when I upgrade Fory from 0.12.1 to 0.12.2 or higher the test fails
   
   ### What did you expect to see?
   
   I expect the test case to work and not throw any exceptions
   
   ### What did you see instead?
   
   The test fails on the fory.serialize() call with:
   
   org.apache.fory.exception.SerializationException: java.lang.RuntimeException: Create sequential serializer failed, 
   class: class Change
   
   ### 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@fory.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org


Re: [I] We get "org.apache.fory.exception.SerializationException: java.lang.RuntimeException: Create sequential serializer failed, class: class Change" when upgrading from 0.12.0 to 0.12.2 [fory]

Posted by "chaokunyang (via GitHub)" <gi...@apache.org>.
chaokunyang closed issue #2768: We get "org.apache.fory.exception.SerializationException: java.lang.RuntimeException: Create sequential serializer failed,  class: class Change" when upgrading from 0.12.0 to 0.12.2
URL: https://github.com/apache/fory/issues/2768


-- 
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@fory.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org