You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the @BeanMapFromClass annotation for my result class and I had a property in the result class that was missing in the entity class. During startup I got an exception:
Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'beanMapper' defined in class path resource [io/beanmapper/autoconfigure/BeanMapperAutoConfig.class]: Failed to instantiate [io.beanmapper.BeanMapper]: Factory method 'beanMapper' threw exception with message: null
It was quiet hard to find the issue, without an exception message. I finally figured it out by going through the changes I made and checking everything related to beanmapper. Is it possible to throw a more specific exception to prevent this in the future?
The text was updated successfully, but these errors were encountered:
I'm using the @BeanMapFromClass annotation for my result class and I had a property in the result class that was missing in the entity class. During startup I got an exception:
Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'beanMapper' defined in class path resource [io/beanmapper/autoconfigure/BeanMapperAutoConfig.class]: Failed to instantiate [io.beanmapper.BeanMapper]: Factory method 'beanMapper' threw exception with message: null
It was quiet hard to find the issue, without an exception message. I finally figured it out by going through the changes I made and checking everything related to beanmapper. Is it possible to throw a more specific exception to prevent this in the future?
The text was updated successfully, but these errors were encountered: