You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
When I try to use fast-json with spring cloud stream framework, it not working correctly. More details: in fast-json a message convert was supplied (See also: org.springframework.messaging.converter.AbstractMessageConverter). It not convert my message correctly. I got the error stack:
nested exception is com.alibaba.fastjson.JSONException: TODO
I noticed that in src/main/java/com/alibaba/fastjson/support/spring/messaging/MappingFastJsonMessageConverter.java the supports method return true directly.
The support Type (byte[] or String) should be determinate. Not Just return the true result
1.2 Code Changing
1.2.1 MappingFastJsonMessageConverter
@Overrideprotectedbooleansupports(Class<?> clazz) {
// To determining the supporting type
}
1.2.2 Root Cause
Without support type determinate. ANY TYPE object will be convert by this convertor.