com.alibaba.fastjson.JSONException: can not cast to : Test.Test$B<java.lang.String>

Hot problem!
This exception has a lot of traffic. You can help 13 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by fixboom
, 1 year ago
can not cast to : Test.Test$B<java.lang.String>
via GitHub by zxw0558
, 2 months ago
can not cast to : java.lang.Character
via GitHub by cnhans
, 2 years ago
can not cast to : java.util.Calendar
via GitHub by cnhans
, 2 years ago
Class com.alibaba.fastjson.util.TypeUtils can not access a member of class java.util.Calendar with modifiers "protected"
com.alibaba.fastjson.JSONException: can not cast to : Test.Test$B<java.lang.String>
at com.alibaba.fastjson.util.TypeUtils.castToJavaBean(TypeUtils.java:921)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.