You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "wanghe88 (via GitHub)" <gi...@apache.org> on 2023/06/17 04:13:33 UTC
[GitHub] [shenyu] wanghe88 opened a new issue, #4746: [Question] shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
wanghe88 opened a new issue, #4746:
URL: https://github.com/apache/shenyu/issues/4746
### Question
post===>http://localhost:9195/dubbo/saveComplexBeanTest
params==>{
"dubboTest": [{
"id": "123",
"name": "test"
}],
"idLists": [
"456",
"124"
],
"idMaps": {
"abc": "abc",
"cbd": "cbd"
}
} 会抛出UnsupportedOperationException异常
GsonUtils方法jsonArrayToListInConvertToMap是有问题的
修改成:
private List<Object> jsonArrayToListInConvertToMap(final JsonArray jsonArray) {
List<Object> list = new ArrayList<>(jsonArray.size());
for (JsonElement jsonElement : jsonArray) {
if (jsonElement.isJsonNull()) {
list.add(null);
continue;
}
String objStr = jsonElement.toString();
if (objStr.startsWith(LEFT_ANGLE_BRACKETS) && objStr.endsWith(RIGHT_ANGLE_BRACKETS)) {
list.add(convertToMap(objStr));
} else {
String asString = jsonElement.getAsString();
list.add(asString);
}
}
return list;
}
--
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] fishguanhx commented on issue #4746: [Question] shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
Posted by "fishguanhx (via GitHub)" <gi...@apache.org>.
fishguanhx commented on issue #4746:
URL: https://github.com/apache/shenyu/issues/4746#issuecomment-1606687999
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] fishguanhx commented on issue #4746: [Question] shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
Posted by "fishguanhx (via GitHub)" <gi...@apache.org>.
fishguanhx commented on issue #4746:
URL: https://github.com/apache/shenyu/issues/4746#issuecomment-1595626616
我也遇到这个问题了,这样修改很好!!!
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] wanghe88 closed issue #4746: [Question] shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
Posted by "wanghe88 (via GitHub)" <gi...@apache.org>.
wanghe88 closed issue #4746: [Question] <title>shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
URL: https://github.com/apache/shenyu/issues/4746
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shenyu] fishguanhx commented on issue #4746: [Question] shenyu2.4.3版本 Report a jsonObject exception when an object contains a variable of type List
Posted by "fishguanhx (via GitHub)" <gi...@apache.org>.
fishguanhx commented on issue #4746:
URL: https://github.com/apache/shenyu/issues/4746#issuecomment-1595626268
ok
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org