Skip to content

Commit 5c3c353 introduced some error that breaks all samples #459

@AimbotParce

Description

@AimbotParce

Bug Report

Describe the Bug

I did a bisection and found that commit 5c3c353 introduced some bug that causes pretty much all samples to throw injection errors. For instance, basic test 02:

When I run

./gradlew clean basic:basic-02-health-endpoint:build
java -jar ./basic/basic-02-health-endpoint/build/libs/connector-health.jar

The build finishes correctly, but when running the connector, I get an error:

INFO 2025-09-18T14:21:56.659189335 Booting EDC runtime
WARNING 2025-09-18T14:21:56.698978068 The runtime is configured as an anonymous participant. DO NOT DO THIS IN PRODUCTION.
SEVERE 2025-09-18T14:21:56.755933908 Error booting runtime: The following problems occurred during dependency injection: ## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing   --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:99)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:80)
SEVERE 2025-09-18T14:21:56.756978962 Error booting runtime: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection: ## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing   --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
org.eclipse.edc.spi.EdcException: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.onError(BaseRuntime.java:148)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:99)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:80)
Caused by: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        ... 2 more
Exception in thread "main" org.eclipse.edc.spi.EdcException: org.eclipse.edc.spi.EdcException: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.onError(BaseRuntime.java:148)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:117)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:80)
Caused by: org.eclipse.edc.spi.EdcException: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.onError(BaseRuntime.java:148)
        at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:99)
        ... 1 more
Caused by: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following problems occurred during dependency injection:
## class org.eclipse.edc.extension.health.HealthEndpointExtension is missing
  --> Field "webService" of type [interface org.eclipse.edc.web.spi.WebService]
        ... 2 more

Expected Behavior

Connector starts and stays on.

Observed Behavior

Error appears instantly.

Steps to Reproduce

  1. Checkout 5c3c353 (at the moment of writing this, main)
  2. Build basic-02 sample (or pretty much any other) ./gradlew clean basic:basic-02-health-endpoint:build
  3. Execute the connector java -jar ./basic/basic-02-health-endpoint/build/libs/connector-health.jar

Context Information

  • OS: Tried both Windows and WSL

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions