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 Google Groups by Frank Huster, 1 year ago
org.datanucleus.store.types.java8.wrappers.backed.List cannot be cast to java.util.ArrayList
java.lang.ClassCastException: org.datanucleus.store.types.java8.wrappers.backed.List cannot be cast
to java.util.ArrayList	at org.datanucleus.store.types.wrappers.ArrayList.attachCopy(ArrayList.java:40)	at org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:225)	at org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1460)	at org.datanucleus.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:117)	at org.motechproject.nms.region.domain.District.dnProvideField(District.java)	at org.motechproject.mds.domain.MdsEntity.dnProvideFields(MdsEntity.java)	at org.datanucleus.state.StateManagerImpl.provideFields(StateManagerImpl.java:1174)	at org.datanucleus.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java:4253)	at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:4202)	at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:117)	at org.datanucleus.ExecutionContextImpl.attachObjectCopy(ExecutionContextImpl.java:2585)	at org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:334)	at org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1460)	at org.datanucleus.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:117)	at org.motechproject.nms.region.domain.Taluka.dnProvideField(Taluka.java)	at org.motechproject.mds.domain.MdsEntity.dnProvideFields(MdsEntity.java)	at org.datanucleus.state.StateManagerImpl.provideFields(StateManagerImpl.java:1174)	at org.datanucleus.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java:4253)	at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:4202)	at org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:117)	at org.datanucleus.ExecutionContextImpl.attachObjectCopy(ExecutionContextImpl.java:2585)	at org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:1934)	at org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1860)	at org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1714)	at org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:722)	at org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:747)	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy$PersistenceManagerInvocationHandler.invoke(TransactionAwarePersistenceManagerFactoryProxy.java:211)	at com.sun.proxy.$Proxy59.makePersistent(Unknown Source)	at org.motechproject.mds.repository.MotechDataRepository.update(MotechDataRepository.java:159)	at org.motechproject.mds.service.DefaultMotechDataService.update(DefaultMotechDataService.java:177)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)	at com.sun.proxy.$Proxy177.update(Unknown Source)	at org.motechproject.nms.testing.it.region.LocationServiceBundleIT.testFindHealthBlockByTalukaAndCode3(LocationServiceBundleIT.java:367)