Non-root namespace Spring dependencies fail on app startup
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Spring Starter の BeanPostProcessor から始め、root ではない namespace と @Resource インジェクションを持つ @Component を使用して起動を再現します。WorkflowClient の作成と ObjectProvider を伴う bean のライフサイクルと、ドキュメントに記載された動作を比較します。完了の条件は、アプリケーションが正常に起動し、root ではない Temporal bean を遅延した workaround なしで注入できることです。
索引モデルが issue の本文から書いたものです。
説明
Expected Behavior
Defining non-root namespaces in the Spring Starter should allow beans to be injected.
Actual Behavior
The documentation calls out that this is supported, yet the BeanPostProcessor that creates these beans run after bean initialization, so application startup will fail.
In order to work around this, one must use an ObjectProvider to decouple component autowiring from Temporal bean creation, deferring bean finalization to either PostConstruct or app runtime.
Steps to Reproduce the Problem
- Create a non-root namespace configuration
- Create a
@Componentthat injects a non-rootWorkflowClient(using@Resource, per docs) - Start the application: The app should fail to start due to the non-root namespace WorkflowClient being unavailable.
Specifications
- Version: 1.29.0, 1.30.1
- Platform: N/A
- 主要言語
- Java
- スター
- 447
- フォーク
- 278
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temporalio/sdk-java のほかの issue
-
Support the certificate with linebreak strings from env variable対応中かも @officialasishkumar が 22 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
temporalio/sdk-java#1825 ·
メンテナーはふだん 1 日以内に返信
-
Spring Boot drops mainDataConverter when a non-root namespace is configured対応中かも @yumingjs が 1 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
temporalio/sdk-java#3245 ·
メンテナーはふだん 1 日以内に返信
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beans対応中かも @Quinn-With-Two-Ns が 2 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
temporalio/sdk-java#3244 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
temporalio/sdk-java#3238 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信
-
Fix graceful shutdown of the shared worker-command poller対応中かも @yuandrew が 9 日前に担当しました。 オープンsdk-java
temporalio/sdk-java#3234 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
temporalio/sdk-java の issue をすべて見る
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
? - Needs Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA/cudf-spark-jni#5598 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
oracle/graalvm-reachability-metadata#12264 ·
メンテナーはふだん 1 日以内に返信
-
[source-facebook-pages] post stream never returns attachments.media_type対応中かも @v-k-data が今日担当しました。 オープンarea/connectors needs-triage type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
floci-io/floci#10107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信