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

Fix IntegrationEvaluationContextFactoryBean for bean ClassLoader #9745

Closed
artembilan opened this issue Jan 9, 2025 · 0 comments
Closed

Fix IntegrationEvaluationContextFactoryBean for bean ClassLoader #9745

artembilan opened this issue Jan 9, 2025 · 0 comments

Comments

@artembilan
Copy link
Member

More info in SO: https://stackoverflow.com/questions/79332212/org-springframework-expression-spel-spelevaluationexception-el1005e-type-canno

@artembilan artembilan added this to the 6.5.0-M1 milestone Jan 9, 2025
spring-builds pushed a commit that referenced this issue Jan 9, 2025
Fixes: #9745
Issue link: #9745

The `IntegrationEvaluationContextFactoryBean` does not provide a `TypeLocator` by default.
That may lead to a class-not-found problem from different `ClassLoader` in the parallel Java `Stream` executor.

* Fix `IntegrationEvaluationContextFactoryBean` to use a `StandardTypeLocator` based on the `applicationContext.getClassLoader()`

(cherry picked from commit 6184c40)
artembilan added a commit that referenced this issue Jan 9, 2025
Fixes: #9745
Issue link: #9745

The `IntegrationEvaluationContextFactoryBean` does not provide a `TypeLocator` by default.
That may lead to a class-not-found problem from different `ClassLoader` in the parallel Java `Stream` executor.

* Fix `IntegrationEvaluationContextFactoryBean` to use a `StandardTypeLocator` based on the `applicationContext.getClassLoader()`

(cherry picked from commit 6184c40)

# Conflicts:
#	spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationEvaluationContextFactoryBean.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants