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 has been 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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
1. Spring AbstarctMessageConvert ISSUE
1.1 Summary
1.1.1 Issue Summary
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:
I noticed that in
src/main/java/com/alibaba/fastjson/support/spring/messaging/MappingFastJsonMessageConverter.java
the supports method returntrue
directly.The support Type (byte[] or String) should be determinate. Not Just return the
true
result1.2 Code Changing
1.2.1 MappingFastJsonMessageConverter
1.2.2 Root Cause
Without support type determinate. ANY TYPE object will be convert by this convertor.
The text was updated successfully, but these errors were encountered: