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

Launcher runs fail with EdcInjectionException (IntelliJ version) #367

Closed
Harown opened this issue Oct 24, 2024 · 2 comments · Fixed by #366
Closed

Launcher runs fail with EdcInjectionException (IntelliJ version) #367

Harown opened this issue Oct 24, 2024 · 2 comments · Fixed by #366
Labels

Comments

@Harown
Copy link

Harown commented Oct 24, 2024

Bug Report

Describe the Bug

Trying to run any luncher but the identity-hubs in IntelliJ results in an EdcInjectionException with a lot of missing injected fields. Identity-hubs start without errors. Important: I'm very new to this and even to gradle so maybe I do something fundamentelly wrong.

A clear and concise description of the bug.

Running :launchers:catalog-server:run results in:

SEVERE 2024-10-24T13:38:13.5831497 Error booting runtime: The following injected fields were not provided: Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension Field "externalSigner" of type [interface org.eclipse.edc.jwt.signer.spi.JwsSignerProvider] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension Field "rulesRegistry" of type [interface org.eclipse.edc.token.spi.TokenValidationRulesRegistry] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension Field "tokenValidationService" of type [interface org.eclipse.edc.token.spi.TokenValidationService] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Exception in thread "main" org.eclipse.edc.spi.EdcException: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following injected fields were not provided:
org.eclipse.edc.boot.system.injection.EdcInjectionException: The following injected fields were not provided:
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "externalSigner" of type [interface org.eclipse.edc.jwt.signer.spi.JwsSignerProvider] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "externalSigner" of type [interface org.eclipse.edc.jwt.signer.spi.JwsSignerProvider] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "rulesRegistry" of type [interface org.eclipse.edc.token.spi.TokenValidationRulesRegistry] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "tokenValidationService" of type [interface org.eclipse.edc.token.spi.TokenValidationService] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
	at org.eclipse.edc.boot.system.DependencyGraph.of(DependencyGraph.java:102)
	at org.eclipse.edc.boot.system.ExtensionLoader.loadServiceExtensions(ExtensionLoader.java:127)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.createExtensions(BaseRuntime.java:163)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:91)
Field "rulesRegistry" of type [interface org.eclipse.edc.token.spi.TokenValidationRulesRegistry] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "tokenValidationService" of type [interface org.eclipse.edc.token.spi.TokenValidationService] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:77)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.onError(BaseRuntime.java:143)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:106)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.main(BaseRuntime.java:77)
Caused by: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following injected fields were not provided:
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "externalSigner" of type [interface org.eclipse.edc.jwt.signer.spi.JwsSignerProvider] required by org.eclipse.edc.iam.identitytrust.core.DcpDefaultServicesExtension
Field "rulesRegistry" of type [interface org.eclipse.edc.token.spi.TokenValidationRulesRegistry] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "tokenValidationService" of type [interface org.eclipse.edc.token.spi.TokenValidationService] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
Field "jtiValidationStore" of type [interface org.eclipse.edc.jwt.validation.jti.JtiValidationStore] required by org.eclipse.edc.iam.identitytrust.core.IdentityAndTrustExtension
	at org.eclipse.edc.boot.system.DependencyGraph.of(DependencyGraph.java:102)
	at org.eclipse.edc.boot.system.ExtensionLoader.loadServiceExtensions(ExtensionLoader.java:127)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.createExtensions(BaseRuntime.java:163)
	at org.eclipse.edc.boot.system.runtime.BaseRuntime.boot(BaseRuntime.java:91)
	... 1 more

Caused by: org.eclipse.edc.boot.system.injection.EdcInjectionException: The following injected fields were not provided:

Expected Behavior

Sub-modules start.

Observed Behavior

Sub-modules don't start beacuse of unprovided injections. See above.

Steps to Reproduce

  1. Clone repo
  2. gradle build
  3. gradle run --scan or run a sub-module (launcher) other than identiy-hubs

Context Information

  • Used version: 0.10.0-SNAPSHOT
  • OS: Windows 11 (sorry, can't get WSL to run atm)
  • I'm very new to this and even to gradle so maybe I do something fundamentelly wrong.
@paullatzelsperger
Copy link
Member

this should be implicitly fixed with #366

@Harown
Copy link
Author

Harown commented Oct 24, 2024

@paullatzelsperger Sounds great, thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants