Skip to content

Comments

CAMEL-22463 - Add jackson dependency to hashicorp vault#21582

Merged
apupier merged 1 commit intoapache:mainfrom
apupier:fixHashicorpWithJackson
Feb 23, 2026
Merged

CAMEL-22463 - Add jackson dependency to hashicorp vault#21582
apupier merged 1 commit intoapache:mainfrom
apupier:fixHashicorpWithJackson

Conversation

@apupier
Copy link
Contributor

@apupier apupier commented Feb 23, 2026

the jackson dependency is now optional with spring-vault-core 4.x This is needed by this component, otherwise there is this kind of error:

Caused by: java.lang.ExceptionInInitializerError: Exception
java.lang.IllegalStateException: Either Jackson 2 or Jackson 3 must be
available on the classpath [in thread "main"]
	at org.springframework.vault.support.JacksonCompat.<clinit>(JacksonCompat.java:97)
	at org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:152)
	at org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:90)
	at org.springframework.vault.client.RestTemplateBuilder.createTemplate(RestTemplateBuilder.java:251)
	at org.springframework.vault.client.RestTemplateBuilder.build(RestTemplateBuilder.java:227)
	at org.springframework.vault.core.VaultTemplate.doCreateRestTemplate(VaultTemplate.java:336)
	at org.springframework.vault.core.VaultTemplate.<init>(VaultTemplate.java:114)
	at org.apache.camel.component.hashicorp.vault.integration.HashicorpVaultPropertiesSourceNoEnvTestIT.init(HashicorpVaultPropertiesSourceNoEnvTestIT.java:58)

it is a similar solution than used for pqc:
73ea276

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

the jackson dependency is now optional with spring-vault-core 4.x
This is needed by this component, otherwise there is this kind of error:

```
Caused by: java.lang.ExceptionInInitializerError: Exception
java.lang.IllegalStateException: Either Jackson 2 or Jackson 3 must be
available on the classpath [in thread "main"]
	at org.springframework.vault.support.JacksonCompat.<clinit>(JacksonCompat.java:97)
	at org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:152)
	at org.springframework.vault.client.VaultClients.createRestTemplate(VaultClients.java:90)
	at org.springframework.vault.client.RestTemplateBuilder.createTemplate(RestTemplateBuilder.java:251)
	at org.springframework.vault.client.RestTemplateBuilder.build(RestTemplateBuilder.java:227)
	at org.springframework.vault.core.VaultTemplate.doCreateRestTemplate(VaultTemplate.java:336)
	at org.springframework.vault.core.VaultTemplate.<init>(VaultTemplate.java:114)
	at org.apache.camel.component.hashicorp.vault.integration.HashicorpVaultPropertiesSourceNoEnvTestIT.init(HashicorpVaultPropertiesSourceNoEnvTestIT.java:58)
```

it is a similar solution than used for pqc:
apache@73ea276

Signed-off-by: Aurélien Pupier <apupier@ibm.com>
@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@apupier apupier merged commit ba205e4 into apache:main Feb 23, 2026
4 checks passed
@apupier apupier deleted the fixHashicorpWithJackson branch February 23, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants