java.lang.ClassCastException: org.yamj.core.api.model.dto.ApiFilmographyDTO cannot be cast to java.util.Map

GitHub | jluc2808 | 7 months 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

    api error 500 with api/person/244.json?dataitems=filmography_inside&sortby=year&sortdir=asc

    GitHub | 7 months ago | jluc2808
    java.lang.ClassCastException: org.yamj.core.api.model.dto.ApiFilmographyDTO cannot be cast to java.util.Map
  2. 0

    Hibernate gives a strange ClassCast exception (using Transformers)

    Stack Overflow | 1 year ago | Bamboomy
    java.lang.ClassCastException: be.fgov.just.cjr.dto.FactCodeDto cannot be cast to java.util.Map
  3. 0

    ClassCastException cannot be cast to java util Map - Java Honk

    javahonk.com | 2 days ago
    java.lang.ClassCastException: com.wfs.otc.datamodels.ImagineExpiryModel cannot be cast to java.util.Map
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How does a native sql query bind fields to an entity instead of map

    Stack Overflow | 1 year ago | bmtncy
    java.lang.ClassCastException: com.ozpas.ozentegre.entity.EntDevirlog cannot be cast to java.util.Map
  6. 0

    How does a native sql query bind fields to an entity instead of map (result transformer issue)

    Coderanch | 1 year ago | Sophie Stone
    java.lang.ClassCastException: com.ozpas.ozentegre.entity.EntDevirlog cannot be cast to java.util.Map

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.yamj.core.api.model.dto.ApiFilmographyDTO cannot be cast to java.util.Map

      at org.hibernate.property.access.internal.PropertyAccessMapImpl$SetterImpl.set()
    2. org.hibernate.property
      PropertyAccessMapImpl$SetterImpl.set
      1. org.hibernate.property.access.internal.PropertyAccessMapImpl$SetterImpl.set(PropertyAccessMapImpl.java:102)
      1 frame
    3. Hibernate
      SQLQueryImpl.list
      1. org.hibernate.transform.AliasToBeanResultTransformer.transformTuple(AliasToBeanResultTransformer.java:78)
      2. org.hibernate.hql.internal.HolderInstantiator.instantiate(HolderInstantiator.java:75)
      3. org.hibernate.loader.custom.CustomLoader.getResultList(CustomLoader.java:435)
      4. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2422)
      5. org.hibernate.loader.Loader.list(Loader.java:2417)
      6. org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:336)
      7. org.hibernate.internal.SessionImpl.listCustomQuery(SessionImpl.java:1980)
      8. org.hibernate.internal.AbstractSessionImpl.list(AbstractSessionImpl.java:322)
      9. org.hibernate.internal.SQLQueryImpl.list(SQLQueryImpl.java:125)
      9 frames
    4. org.yamj.core
      ApiDao$$FastClassBySpringCGLIB$$ecfc0837.invoke
      1. org.yamj.core.hibernate.HibernateDao.executeQueryWithTransform(HibernateDao.java:505)
      2. org.yamj.core.hibernate.HibernateDao.executeQueryWithTransform(HibernateDao.java:453)
      3. org.yamj.core.database.dao.ApiDao.retrieveFilmography(ApiDao.java:1121)
      4. org.yamj.core.database.dao.ApiDao.getPersonFilmographyInside(ApiDao.java:1049)
      5. org.yamj.core.database.dao.ApiDao.getPerson(ApiDao.java:980)
      6. org.yamj.core.database.dao.ApiDao$$FastClassBySpringCGLIB$$ecfc0837.invoke(<generated>)
      6 frames
    5. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    6. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651)
      1 frame
    7. org.yamj.core
      JsonApiStorageService$$FastClassBySpringCGLIB$$145385d0.invoke
      1. org.yamj.core.database.dao.ApiDao$$EnhancerBySpringCGLIB$$decb2059.getPerson(<generated>)
      2. org.yamj.core.database.service.JsonApiStorageService.getPerson(JsonApiStorageService.java:176)
      3. org.yamj.core.database.service.JsonApiStorageService$$FastClassBySpringCGLIB$$145385d0.invoke(<generated>)
      3 frames
    8. Spring Core
      MethodProxy.invoke
      1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      1 frame
    9. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      2 frames
    10. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      3 frames
    11. Spring AOP
      CglibAopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
      2 frames
    12. org.yamj.core
      PersonController.getPerson
      1. org.yamj.core.database.service.JsonApiStorageService$$EnhancerBySpringCGLIB$$925ccdf4.getPerson(<generated>)
      2. org.yamj.core.api.json.PersonController.getPerson(PersonController.java:54)
      2 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor778.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    14. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
      2 frames
    15. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
      8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
      8 frames
    16. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
      1 frame
    17. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
      1 frame
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      1 frame
    19. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
      2. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
      2 frames
    20. org.yamj.core
      JsonpCallbackFilter.doFilter
      1. org.yamj.core.web.servlet.filter.JsonpCallbackFilter.doFilter(JsonpCallbackFilter.java:50)
      1 frame
    21. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1484)
      1 frame
    22. Spring
      OncePerRequestFilter.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      2 frames
    23. Jetty
      AsyncHttpConnection.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
      3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      4. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
      5. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      6. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      7. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
      8. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      9. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      10. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      11. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
      12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      13. org.eclipse.jetty.server.Server.handle(Server.java:370)
      14. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
      15. org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
      16. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
      17. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      18. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      19. org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      19 frames
    24. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
      2 frames
    25. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      2 frames
    26. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame