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

AdapterUtil.createXAException utility method garbles message parameters #11535

Closed
njr-11 opened this issue Mar 30, 2020 · 0 comments · Fixed by #11538
Closed

AdapterUtil.createXAException utility method garbles message parameters #11535

njr-11 opened this issue Mar 30, 2020 · 0 comments · Fixed by #11538
Assignees
Labels
release bug This bug is present in a released version of Open Liberty release:20004 team:Zombie Apocalypse

Comments

@njr-11
Copy link
Contributor

njr-11 commented Mar 30, 2020

The DSRA0230E exception message is improperly printing message parameters when the createXAException utility method is used,

javax.transaction.xa.XAException: DSRA0230E: Attempt to perform operation [Ljava.lang.Object;@7ae8a60a is not allowed because transaction state is {1}.
at com.ibm.ws.rsadapter.AdapterUtil.createXAException(AdapterUtil.java:146)
at com.ibm.ws.rsadapter.impl.WSRdbXaResourceImpl.end(WSRdbXaResourceImpl.java:432)
...

The message expects to receive 2 separate parameters, but instead the first parameter (index 0) is supplied with an Object array of 2 elements, and the second parameter (index 2) is not supplied at all.

@njr-11 njr-11 added team:Zombie Apocalypse release bug This bug is present in a released version of Open Liberty labels Mar 30, 2020
@njr-11 njr-11 self-assigned this Mar 30, 2020
njr-11 added a commit to njr-11/open-liberty that referenced this issue Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release bug This bug is present in a released version of Open Liberty release:20004 team:Zombie Apocalypse
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants