dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

native-image unit test inject reference bean failed

Open FoghostCn opened this issue 1 year ago • 1 comments

  • [x] 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

FoghostCn avatar Dec 25 '23 11:12 FoghostCn

@CrazyHZM PTAL

AlbumenJ avatar Dec 25 '23 11:12 AlbumenJ