java.lang.ClassCastException: org.datanucleus.store.types.java8.wrappers.backed.List cannot be cast to java.util.ArrayList

Google Groups | Frank Huster | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    org.datanucleus.store.types.java8.wrappers.backed.List cannot be cast to ArrayList

    Google Groups | 1 year ago | Frank Huster
    java.lang.ClassCastException: org.datanucleus.store.types.java8.wrappers.backed.List cannot be cast to java.util.ArrayList

    Root Cause Analysis

    1. 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()
    2. DataNucleus Core
      StateManagerImpl.providedObjectField
      1. org.datanucleus.store.types.wrappers.ArrayList.attachCopy(ArrayList.java:40)
      2. org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:225)
      3. org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1460)
      4. org.datanucleus.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:117)
      4 frames
    3. org.motechproject.nms
      District.dnProvideField
      1. org.motechproject.nms.region.domain.District.dnProvideField(District.java)
      1 frame
    4. org.motechproject.mds
      MdsEntity.dnProvideFields
      1. org.motechproject.mds.domain.MdsEntity.dnProvideFields(MdsEntity.java)
      1 frame
    5. DataNucleus Core
      StateManagerImpl.providedObjectField
      1. org.datanucleus.state.StateManagerImpl.provideFields(StateManagerImpl.java:1174)
      2. org.datanucleus.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java:4253)
      3. org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:4202)
      4. org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:117)
      5. org.datanucleus.ExecutionContextImpl.attachObjectCopy(ExecutionContextImpl.java:2585)
      6. org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:334)
      7. org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:1460)
      8. org.datanucleus.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:117)
      8 frames
    6. org.motechproject.nms
      Taluka.dnProvideField
      1. org.motechproject.nms.region.domain.Taluka.dnProvideField(Taluka.java)
      1 frame
    7. org.motechproject.mds
      MdsEntity.dnProvideFields
      1. org.motechproject.mds.domain.MdsEntity.dnProvideFields(MdsEntity.java)
      1 frame
    8. DataNucleus Core
      ExecutionContextImpl.persistObject
      1. org.datanucleus.state.StateManagerImpl.provideFields(StateManagerImpl.java:1174)
      2. org.datanucleus.state.StateManagerImpl.internalAttachCopy(StateManagerImpl.java:4253)
      3. org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:4202)
      4. org.datanucleus.state.StateManagerImpl.attachCopy(StateManagerImpl.java:117)
      5. org.datanucleus.ExecutionContextImpl.attachObjectCopy(ExecutionContextImpl.java:2585)
      6. org.datanucleus.ExecutionContextImpl.persistObjectInternal(ExecutionContextImpl.java:1934)
      7. org.datanucleus.ExecutionContextImpl.persistObjectWork(ExecutionContextImpl.java:1860)
      8. org.datanucleus.ExecutionContextImpl.persistObject(ExecutionContextImpl.java:1714)
      8 frames
    9. DataNucleus JDO API plugin
      JDOPersistenceManager.makePersistent
      1. org.datanucleus.api.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:722)
      2. org.datanucleus.api.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:747)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:497)
      3 frames
    11. Spring ORM
      TransactionAwarePersistenceManagerFactoryProxy$PersistenceManagerInvocationHandler.invoke
      1. org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy$PersistenceManagerInvocationHandler.invoke(TransactionAwarePersistenceManagerFactoryProxy.java:211)
      1 frame
    12. com.sun.proxy
      $Proxy59.makePersistent
      1. com.sun.proxy.$Proxy59.makePersistent(Unknown Source)
      1 frame
    13. org.motechproject.mds
      DefaultMotechDataService.update
      1. org.motechproject.mds.repository.MotechDataRepository.update(MotechDataRepository.java:159)
      2. org.motechproject.mds.service.DefaultMotechDataService.update(DefaultMotechDataService.java:177)
      2 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    15. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    16. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      1 frame
    17. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      2 frames
    18. com.sun.proxy
      $Proxy177.update
      1. com.sun.proxy.$Proxy177.update(Unknown Source)
      1 frame
    19. org.motechproject.nms
      LocationServiceBundleIT.testFindHealthBlockByTalukaAndCode3
      1. org.motechproject.nms.testing.it.region.LocationServiceBundleIT.testFindHealthBlockByTalukaAndCode3(LocationServiceBundleIT.java:367)
      1 frame