GetterSetterPropertyDescriptor.java L 290 statements :
if (readMethod == null && writeMethod == null) {
throw new MappingException("No read or write method found for field (" + fieldName
+ ") in class (" + clazz + ")");
}
This exception is thrown if I declare a non existant field in a custom mapping (the mapping XML file is incorrect, I agree). The problem is that the exception is silently ignored in DozerBeanMapping.java L184 :
if (initializing.compareAndSet(false, true)) {
try {
loadCustomMappings();
eventManager = new DozerEventManager(eventListeners);
} finally {
ready.countDown();
}
}
==> THERE IS NO CATCH STATEMENT. As a result, DozerBeanMapping.customMappings is NULL after initialization. Then, all custom mappings declared in XML will be ignored for the entire application.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I would save a lot of debugging time if a message could be loggued with error level please.