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

JdbiFactory throws red-herring ClassNotFoundException when the application is not given config file path #16

Open
shawnrc opened this issue Feb 23, 2018 · 0 comments
Assignees
Labels

Comments

@shawnrc
Copy link
Owner

shawnrc commented Feb 23, 2018

I'm not sure what layer this issue exists on (maybe actually Dropwizard), but after switching to the DW-managed Jdbi factory process, the server emits a really misleading set of exceptions when you forget to pass it the path to the config file. This is because the call to JdbiFactory.build() fails since it's missing the necessary DataSourceFactory info stored within.

Ideally, Dropwizard should figure this out for us and emit a helpful error, but alas, for now I think it'd be best to just handle the exception in a user-friendly way.

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

No branches or pull requests

1 participant