Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeanMapFromClass annotation no clear exception when properties mismatch #194

Open
gidomanders opened this issue Mar 5, 2024 · 0 comments

Comments

@gidomanders
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant