java.lang.ClassCastException: java.lang.String

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 3004, 1 year ago
java.lang.ClassCastException: java.lang.String
at com.solarmetric.kodo.impl.jdbc.schema.dict.GenericDictionary.toSQL(GenericDictionary.java:220)
at com.solarmetric.kodo.impl.jdbc.sql.Update.set(Update.java:44)
at com.solarmetric.kodo.impl.jdbc.sql.Update.set(Update.java:128)
at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getInsert(ClassMapping.java:406)
at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.insert(ClassMapping.java:361)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.insert(JDBCStoreManager.java:416)
at com.solarmetric.kodo.runtime.StateManagerImpl.insert(StateManagerImpl.java:1731)
at com.solarmetric.kodo.runtime.PNewState.flush(PNewState.java:31)
at com.solarmetric.kodo.runtime.StateManagerImpl.flush(StateManagerImpl.java:330)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:407)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:286)
at src.com.agf.tas.persistence.AAF.add(AAF.java:33)
at src.com.agf.tas.persistence.AAF.main(AAF.java:73)

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.

Write tip

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