apache/dubbo

native-image unit test inject reference bean failed

Open

#13,578 创建于 2023年12月25日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Java (26,453 fork)batch import
component/sdkhelp wantedtype/enhancement

仓库指标

Star
 (41,524 star)
PR 合并指标
 (平均合并 7天 14小时) (30 天内合并 20 个 PR)

描述

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 3.3.0-beta.2-SNAPSHOT
  • Operating System version: macOS 14.1.2
  • Java version: GraalVM Oracle 17.0.9

Steps to reproduce this issue

  1. clone https://github.com/FoghostCn/dubbo-samples/tree/master/2-advanced/dubbo-samples-native-image/
  2. run dubbo-samples-native-image-provider first
  3. cd /dubbo-samples-native-image-consumer
  4. exec mvn clean test -PnativeTest

Expected Behavior

unit test pass

Actual Behavior

NullPointerException, demoService is not inject, it is null

贡献者指南