java.lang.ClassCastException: com.lehman.asp.common.dto.announcement.EAnnouncementSourceType

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 Oracle Community by 666705, 1 year ago
com.lehman.asp.common.dto.announcement.EAnnouncementSourceType
java.lang.ClassCastException: com.lehman.asp.common.dto.announcement.EAnnouncementSourceType
at org.apache.openjpa.kernel.TransferFieldManager.fetchStringField(TransferFieldManager.java:76)
at org.apache.openjpa.kernel.StateManagerImpl.fetchStringField(StateManagerImpl.java:2158)
at org.apache.openjpa.kernel.StateManagerImpl.fetchString(StateManagerImpl.java:2145)
at org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy.insert(StringFieldStrategy.java:100)
at org.apache.openjpa.jdbc.meta.FieldMapping.insert(FieldMapping.java:554)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.insert(AbstractUpdateManager.java:203)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.insert(AbstractUpdateManager.java:195)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.populateRowManager(AbstractUpdateManager.java:145)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:85)
at org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:514)
at org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
at org.apache.openjpa.datacache.DataCacheStoreManager.flush(DataCacheStoreManager.java:509)
at org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:1973)
at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1871)
at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1789)
at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:80)
at kodo.kernel.KodoBroker.commit(KodoBroker.java:103)
at kodo.jdo.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:394)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:319)

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.