[CONJ-489] javax.transaction.xa.XAException: (conn:41252) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0x Created: 2017-06-04 Updated: 2017-06-05 Resolved: 2017-06-05 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.5.9, 1.6.0, 2.0.1 |
| Fix Version/s: | 1.6.1, 2.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vorschuetz | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows |
||
| Description |
|
Getting the following stack trace when trying to run XATransactions using Atomikos. Caused by: javax.transaction.xa.XAException: (conn:41252) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0x Issue is caused by the XID to String conversion inside MariaXaResource.java
hexdump is converting the XID byte arrays into pretty formated string for dumping it to log. hexdump should be replaced by implementations like atomikos or mysql connector is using: The following code would fix the issue:
|
| Comments |
| Comment by Diego Dupin [ 2017-06-05 ] |
|
Thanks. |