spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.17k stars 40.68k forks source link

java.lang.ClassCastException: DTOObject cannot be cast to DTOObject #6205

Closed rajadileepkolli closed 8 years ago

rajadileepkolli commented 8 years ago

I receive this error when I enabled caching in my project that uses Spring Boot 1.4.0.M3 and various others Spring products

I have raised the same question in stackover flow http://stackoverflow.com/questions/37977166/java-lang-classcastexception-dtoobject-cannot-be-cast-to-dtoobject

Exact error is

java.lang.ClassCastException: com.learning.securedapp.domain.Permission cannot be cast to com.learning.securedapp.domain.Permission

Can you point what is wrong in my project , when I remove cache it is working as expected

snicoll commented 8 years ago

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

This section of the doc will help as well.