Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.76 谨慎升级 #3771

Open
Semoz opened this issue May 24, 2021 · 7 comments
Open

1.2.76 谨慎升级 #3771

Semoz opened this issue May 24, 2021 · 7 comments

Comments

@Semoz
Copy link

Semoz commented May 24, 2021

原来用的1.2.73,升级1.2.76之后造成了生产事故

嵌套多层的json解析提示错误
com.alibaba.fastjson.JSONObject cannot be cast to com.xxxxxx

换回1.2.73后恢复正常,太信任fastjson了,没有进行测试就上线。具体什么原因回头断点看一下,现在忙着解释事故

@wenshao
Copy link
Member

wenshao commented May 28, 2021

可以提供更多的堆栈信息么?

@zt9788
Copy link

zt9788 commented May 31, 2021

new TypeReference<T<List<E>>>(){}

这种格式就会报错

@zhoudapeng
Copy link

可以提供更多的堆栈信息么?

#3761 这就是其中一个问题之一,我们也是升级后遇到了问题

@Semoz
Copy link
Author

Semoz commented Jun 5, 2021

就是二楼说的这个结构,多层转换new TypeReference<T<List>>(){},获取其中list的时候提示没有这玩意。本来想写个demo的,然后自己在代码中写死原始字符串,转换竟然是成功的,但是从httpclient中获取的字符串转换就是失败了。。玄学了,抽个时间再看看,搭个可以复现的demo

@hnyyghk
Copy link
Contributor

hnyyghk commented Jul 5, 2021

Duplicate of #3810

@warlock-deng
Copy link

遇到相同问题

@lqvito
Copy link

lqvito commented Dec 14, 2021

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants