jpa - org.dozer.MappingException: No read or write method found for field -
org.dozer.mappingexception: no read or write method found field (tarshipmethodcode.lmcourier.couriername) in class (class com.essilor.ong.domain.inventory.polocationentity)
i getting error when build war file , seek run tomcat. using jpa , dozer mapping. can tell me how prepare it?
check beans , dozer-mapping-file.
there multiple (more or less common) errors possible:
typo in mappingfile. check bundle , field names in polocationentity, have field named tarshipmethodcode, , have imcourier field, , couriername field?
lack of getters / setters. 1 time again check beans, dozer expects getfieldname , setfieldname methods, unless specified others (which not assume, maybe post mapping file).
narrow problem down: field not working? or field not specified @ all? dozer tends seek map-by-name fields not have corresponding entries in mapping file, lead unexpected errors.
tl;dr
with more info (mapping xml, bean code) easier analize, above pointers ones solve these kinds of problems in experience.
jpa spring-mvc dozer
No comments:
Post a Comment