java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to java.lang.Class


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by Matthias
, 8 months ago
sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to java.lang.Class

Stack trace

java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to java.lang.Class
	at graphql.annotations.DefaultTypeFunction$ListFunction.apply(DefaultTypeFunction.java:133)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.DefaultTypeFunction$ListFunction.apply(DefaultTypeFunction.java:120)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.DefaultTypeFunction.apply(DefaultTypeFunction.java:304)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.DefaultTypeFunction.apply(DefaultTypeFunction.java:37)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.GraphQLAnnotations.getField(GraphQLAnnotations.java:391)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.GraphQLAnnotations.getObjectBuilder(GraphQLAnnotations.java:208)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.GraphQLAnnotations.getObject(GraphQLAnnotations.java:167)[graphql-java-annotations-0.13.1.jar:na]
	at graphql.annotations.GraphQLAnnotations.object(GraphQLAnnotations.java:173)[graphql-java-annotations-0.13.1.jar:na]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

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.