Skip to content

BTM masks original SQLException #60

Open
@torbenriis

Description

@torbenriis

We have experienced that BTM masks some SQLException’s if database errors occurs.
Further investigations of the source code has shown that is only occurs in LrcXAResource, and in all occurrences, every time around auto commit handling.

Are there an explicit reason why the original cause is masked away? The cause could contain any reason from internal DB errors to lost connection.

Snippet
try {
connection.setAutoCommit(true);
} catch (SQLException ex) {
throw new BitronixXAException("cannot reset autocommit on non-XA connection", XAException.XAER_RMERR);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions