java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.ClassCastException: java.lang.String cannot be cast to com.mycompany.myproject.types.MyType at com.mycompany.myproject.types.MyType.equals(MyType.java:95) at org.dozer.converters.PrimitiveOrWrapperConverter.convert(PrimitiveOrWrapperConverter.java:63) at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:449) at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:361) at org.dozer.MappingProcessor.mapField(MappingProcessor.java:307) at org.dozer.MappingProcessor.map(MappingProcessor.java:267) at org.dozer.MappingProcessor.mapToDestObject(MappingProcessor.java:216) at org.dozer.MappingProcessor.createByCreationDirectiveAndMap(MappingProcessor.java:196) at org.dozer.MappingProcessor.mapCustomObject(MappingProcessor.java:512) at org.dozer.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:465) at org.dozer.MappingProcessor.mapFromFieldMap(MappingProcessor.java:361) at org.dozer.MappingProcessor.mapField(MappingProcessor.java:307) at org.dozer.MappingProcessor.map(MappingProcessor.java:267) at org.dozer.MappingProcessor.mapToDestObject(MappingProcessor.java:216) at org.dozer.MappingProcessor.createByCreationDirectiveAndMap(MappingProcessor.java:196) at org.dozer.MappingProcessor.mapGeneral(MappingProcessor.java:170) at org.dozer.MappingProcessor.map(MappingProcessor.java:104) at org.dozer.MappingProcessor.map(MappingProcessor.java:99) at org.dozer.DozerBeanMapper.map(DozerBeanMapper.java:120) at com.mycompany.myproject.mypackage.AnotherClass.oneMethod(AnotherClass.java:60)
    No Bugmate found.