Skip to content

Improve error message for obtaining a JDBC connection #2186

Closed
@DavideD

Description

@DavideD

When the application tries to access a JDBC connection, we throw the following error:

Caused by: java.sql.SQLException: Not using JDBC

This happens in NoJdbcConnectionProvider#getConnection.

When this happens, it means that we haven't tested a particular mapping or configuration. In a perfect world, a user should never see this error.

We should think of a better error message to explain the user that their use case is currently non supported.
And it makes sense to add the error in the logger.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions