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

quarkus-jdbc-db2: resource bundle missing #36399

Closed
louisa-fr opened this issue Oct 11, 2023 · 5 comments · Fixed by #36403
Closed

quarkus-jdbc-db2: resource bundle missing #36399

louisa-fr opened this issue Oct 11, 2023 · 5 comments · Fixed by #36403
Assignees
Labels
area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working
Milestone

Comments

@louisa-fr
Copy link

Describe the bug

I'm using quarkus-jdbc-db2 with xa-transactions (version 3.2.6.Final) + camel.

When an exception occurs and the application executes a rollback, I can see some logs that point to a missing resource bundle:

WARN: Datasource 'DB2DB': [jcc]Missing resource bundle: A resource bundle could not be found in the com.ibm.db2.jcc package for IBM Data Server Driver for JDBC and SQLJ ERRORCODE=-4201, SQLSTATE=2D521
WARN: ARJUNA016045: attempted rollback of < formatId=131077, gtrid_length=35, bqual_length=36, tx_uid=0:ffff7f000101:cbed:652644ec:16, node_name=quarkus, branch_uid=0:ffff7f000101:cbed:652644ec:18, subordinatenodename=null, eis_name=0 > (io.agroal.narayana.BaseXAResource@42665326) failed with exception code ARJUNA016099: Unknown error code:0
: javax.transaction.xa.XAException: Error trying to end xa transaction: [jcc]Missing resource bundle: A resource bundle could not be found in the com.ibm.db2.jcc package for IBM Data Server Driver for JDBC and SQLJ ERRORCODE=-4228, SQLSTATE=null

This happens in native mode, but not in jvm mode.

I have also found other tickets in which this behaviour is mentioned in different contexts.

In the first ticket, someone has posted a file where the missing resource bundles seem to be listed: #22711 (comment)

related zulip topic:
https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Db2.20resource.20bundle

Expected behavior

It would be good, if there were no missing resource bundle logs.

Actual behavior

No response

How to Reproduce?

Reproducer:
https://github.com/louisa-fr/quarkus-db2-resource-bundle-reproducer
(see README of repository)

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@louisa-fr louisa-fr added the kind/bug Something isn't working label Oct 11, 2023
@quarkus-bot quarkus-bot bot added the area/persistence OBSOLETE, DO NOT USE label Oct 11, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 11, 2023

/cc @mswatosh (db2)

@quarkus-bot
Copy link

quarkus-bot bot commented Oct 11, 2023

You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip

This message is automatically generated by a bot.

@gsmet gsmet self-assigned this Oct 11, 2023
gsmet added a commit to gsmet/quarkus that referenced this issue Oct 11, 2023
As usual with Db2, we are shooting in the dark a bit but it seems to
solve the OP's issue.

Fixes quarkusio#36399
@gsmet
Copy link
Member

gsmet commented Oct 11, 2023

@louisa-fr I created #36403 that seems to resolve that particular issue. I had other issues though with your reproducer so not sure just fixing that problem will make it fully work.
Unfortunately, the Db2 driver is obfuscated and we don't have the sources so we are playing whack-a-mole here.

@gsmet
Copy link
Member

gsmet commented Oct 11, 2023

Thanks for the awesome reproducer btw.

@quarkus-bot quarkus-bot bot added this to the 3.6 - main milestone Oct 11, 2023
@gsmet gsmet modified the milestones: 3.6 - main, 3.4.3 Oct 11, 2023
gsmet added a commit to gsmet/quarkus that referenced this issue Oct 11, 2023
As usual with Db2, we are shooting in the dark a bit but it seems to
solve the OP's issue.

Fixes quarkusio#36399

(cherry picked from commit 78d5bc3)
gsmet added a commit to gsmet/quarkus that referenced this issue Oct 17, 2023
As usual with Db2, we are shooting in the dark a bit but it seems to
solve the OP's issue.

Fixes quarkusio#36399

(cherry picked from commit 78d5bc3)
@louisa-fr
Copy link
Author

Thanks for resolving this issue so quickly !
Yeah, I think I saw some other errors in the reproducer ,too, that didn't occur in our environment, but I thought as long as the resource bundle is triggered it's fine and I didn't want to invest too much time, but I'll definitely check

@aloubyansky aloubyansky modified the milestones: 3.4.3, 3.2.8.Final Nov 2, 2023
aloubyansky pushed a commit to aloubyansky/quarkus that referenced this issue Nov 2, 2023
As usual with Db2, we are shooting in the dark a bit but it seems to
solve the OP's issue.

Fixes quarkusio#36399

(cherry picked from commit 78d5bc3)
benkard pushed a commit to benkard/mulkcms2 that referenced this issue Nov 12, 2023
This MR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [flow-bin](https://github.com/flowtype/flow-bin) ([changelog](https://github.com/facebook/flow/blob/master/Changelog.md)) | devDependencies | minor | [`^0.217.0` -> `^0.219.0`](https://renovatebot.com/diffs/npm/flow-bin/0.217.2/0.219.0) |
| [io.hypersistence:hypersistence-utils-hibernate-62](https://github.com/vladmihalcea/hypersistence-utils) | compile | minor | `3.5.3` -> `3.6.0` |
| [io.quarkus:quarkus-maven-plugin](https://github.com/quarkusio/quarkus) | build | patch | `3.4.2` -> `3.4.3` |
| [io.quarkus:quarkus-universe-bom](https://github.com/quarkusio/quarkus-platform) | import | patch | `3.4.2` -> `3.4.3` |

---

### Release Notes

<details>
<summary>flowtype/flow-bin</summary>

### [`v0.219.0`](flow/flow-bin@1268ec5...c184c5d)

[Compare Source](flow/flow-bin@1268ec5...c184c5d)

### [`v0.218.1`](flow/flow-bin@12afce4...1268ec5)

[Compare Source](flow/flow-bin@12afce4...1268ec5)

### [`v0.218.0`](flow/flow-bin@dc93913...12afce4)

[Compare Source](flow/flow-bin@dc93913...12afce4)

</details>

<details>
<summary>vladmihalcea/hypersistence-utils</summary>

### [`v3.6.0`](https://github.com/vladmihalcea/hypersistence-utils/blob/HEAD/changelog.txt#Version-360---October-12-2023)

\================================================================================

Implement QueryStackTraceLogger using StackWalker [#&#8203;659](vladmihalcea/hypersistence-utils#659)

Add JFR based query logger [#&#8203;658](vladmihalcea/hypersistence-utils#658)

Adds support for using MonetaryAmount in [@&#8203;ElementCollection](https://github.com/ElementCollection) [#&#8203;652](vladmihalcea/hypersistence-utils#652)

</details>

<details>
<summary>quarkusio/quarkus</summary>

### [`v3.4.3`](https://github.com/quarkusio/quarkus/releases/tag/3.4.3)

[Compare Source](quarkusio/quarkus@3.4.2...3.4.3)

##### Complete changelog

-   [#&#8203;36408](quarkusio/quarkus#36408) - Ensure that SSE builder works in native
-   [#&#8203;36404](quarkusio/quarkus#36404) - Do not exclude properties from recording that are available in sources that should always be included
-   [#&#8203;36403](quarkusio/quarkus#36403) - IBM Db2 - Register resource bundle classes for reflection
-   [#&#8203;36402](quarkusio/quarkus#36402) - Native Picocli build breaks SSE client
-   [#&#8203;36399](quarkusio/quarkus#36399) - quarkus-jdbc-db2: resource bundle missing
-   [#&#8203;36377](quarkusio/quarkus#36377) - Allow `@ClientHeaderParam` to override User-Agent
-   [#&#8203;36371](quarkusio/quarkus#36371) - Fix issue in Java migration in dev-mode
-   [#&#8203;36351](quarkusio/quarkus#36351) - Properly handle invalid response body errors in Reactive REST Client
-   [#&#8203;36329](quarkusio/quarkus#36329) - Custom User-Agent header ignored
-   [#&#8203;36326](quarkusio/quarkus#36326) - Cannot load fixed or default YAML configuration when running native build
-   [#&#8203;36302](quarkusio/quarkus#36302) - Fix headers and preambles in all guides and reintroduce some keywords
-   [#&#8203;36299](quarkusio/quarkus#36299) - quarkus-flyway: Java-Migration does not get picked up on live reload
-   [#&#8203;36290](quarkusio/quarkus#36290) - Fixed URL for configuring JSON support
-   [#&#8203;36257](quarkusio/quarkus#36257) - Rest client call hangs when receiving an invalid chunked response and does not release resources (e.g. Bulkhead semaphore)
-   [#&#8203;36147](quarkusio/quarkus#36147) - Bump org.eclipse.parsson:parsson from 1.1.2 to 1.1.4
-   [#&#8203;36096](quarkusio/quarkus#36096) - Build cache - Use notCacheableBecause instead of storeEnabled
-   [#&#8203;35929](quarkusio/quarkus#35929) - Do not store build cache for core extensions having config
-   [#&#8203;35927](quarkusio/quarkus#35927) - Build cache - Core extensions containing config shouldn't be cached
-   [#&#8203;35769](quarkusio/quarkus#35769) - Default response content type using GraphQL spec

</details>

<details>
<summary>quarkusio/quarkus-platform</summary>

### [`v3.4.3`](quarkusio/quarkus-platform@3.4.2...3.4.3)

[Compare Source](quarkusio/quarkus-platform@3.4.2...3.4.3)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This MR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNC4wIiwidXBkYXRlZEluVmVyIjoiMzQuMjQuMCJ9-->
holly-cummins pushed a commit to holly-cummins/quarkus that referenced this issue Feb 8, 2024
As usual with Db2, we are shooting in the dark a bit but it seems to
solve the OP's issue.

Fixes quarkusio#36399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants