com.datastax.driver.core.exceptions.InvalidTypeException: Invalid value for CQL type text, expecting class ja va.lang.String but class com.example.scripts.TestEnumMapping$TestEnum provided

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 DataStax JIRA by Will Salisbury, 1 year ago
Invalid value for CQL type text, expecting class ja va.lang.String but class com.example.scripts.TestEnumMapping$TestEnum provided
via DataStax JIRA by Will Salisbury, 1 year ago
Invalid value for CQL type text, expecting class ja va.lang.String but class com.example.scripts.TestEnumMapping$TestEnum provided
via DataStax JIRA by Olivier Michallat, 1 year ago
Invalid value for CQL type frozen<example_keyspace.my_data_type>, expecting class com.datastax.driver.core.UDTValue but class me.example.Main$MyDataType provided
via Stack Overflow by NullProgrammerException
, 2 years ago
Invalid value for CQL type frozen<example_keyspace.my_data_type>, expecting class com.datastax.driver.core.UDTValue but class me.example.Main$MyDataType provided
via DataStax JIRA by Olivier Michallat, 1 year ago
Invalid value for CQL type frozen<example_keyspace.my_data_type>, expecting class com.datastax.driver.core.UDTValue but class me.example.Main$MyDataType provided
com.datastax.driver.core.exceptions.InvalidTypeException: Invalid value for CQL type text, expecting class ja va.lang.String but class com.example.scripts.TestEnumMapping$TestEnum provided
at com.datastax.driver.mapping.Mapper.getQuery(Mapper.java:331)
at com.datastax.driver.mapping.Mapper.getQuery(Mapper.java:316)
at com.datastax.driver.mapping.Mapper.get(Mapper.java:361)
at com.example.scripts.TestEnumMapping.main(TestEnumMapping.java:48)

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.