walnut-tom opened a new issue, #16597:
URL: https://github.com/apache/dubbo/issues/16597

   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   Dubbo 3.3.7, Java 21, macOS arm64.
   
   | Dubbo | Fastjson2 | Result |
   | --- | --- | --- |
   | 3.3.7 | 2.0.62 (published default) | Collection decoding fails with 
`TYPED_ANY` |
   | 3.3.7 | 2.0.66 (override) | Same collection decoding error |
   | 3.3.7 | 2.0.56 (override) | All 16 serialization contract tests pass |
   
   ### Steps to reproduce this issue
   
   Our application contract tests reproduce the error with a single-threaded, 
in-memory round trip. The failing cases include typed RPC responses containing 
nested empty and non-empty lists.
   
   1. Create a Dubbo framework model, register the service interface with the 
serialization security configurator, and use STRICT mode.
   2. Serialize the typed response using Dubbo's `FastJson2Serialization` into 
a byte array.
   3. Deserialize the bytes using `input.readObject(returnClass, 
genericReturnType)`, supplying the return class and generic return type 
declared by the service method.
   
   Decoding collection fields throws:
   
   ```text
   com.alibaba.fastjson2.JSONException: array not support input TYPED_ANY -110
   ```
   
   A standalone synthetic reproducer is not yet available.
   
   ### What you expected to happen
   
   The response should round-trip with its collection fields preserved using 
the Fastjson2 version managed by the Dubbo 3.3.7 BOM.
   
   ### Anything else
   
   [#15303](https://github.com/apache/dubbo/issues/15303) reported the same 
exception with records on Dubbo 3.3.4 and Fastjson2 2.0.57. That report was 
closed with a referral to Fastjson. This follow-up documents that the exception 
still occurs with the dependency combination shipped by Dubbo 3.3.7.
   
   [#16368](https://github.com/apache/dubbo/issues/16368) concerns null fields 
during concurrent reference resolution. Our failure is an exception during a 
single-threaded round trip.
   
   Could maintainers confirm whether this should be tracked exclusively 
upstream in Fastjson2, or whether Dubbo should adjust its managed version or 
serialization integration?
   


-- 
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