Don't use ResultSetReturnImpl.isTypeOf() with H2 database

Description

Hibernate is calling ResultSetReturnImpl.isTypeOf on each request.
With H2, it fails because it doesn't support JDBC's JdbcStatement.isWrapperFor(Class).
This causes an exception on each request.
Should be reportedly fixed in H2 1.4.182 Beta (2014-10-17).

Workaround:

A) append ;TRACE_LEVEL_FILE=4 to the dataSource.url value in rundeck-config.properties. e.g.:

dataSource.url = jdbc:h2:.../TRACE_LEVEL_FILE=4

B) modify disable the h2database Log4j logger:

log4j.logger.h2database = off

Environment

WFly 10.1

Assignee

Unassigned

Reporter

Ondrej Zizka

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure