Comments (4)
This failure indicates that https://github.com/spring-projects/spring-framework/blob/5012843b1254aefa7d81132619c8fa6e3f79b495/spring-core/src/main/java/org/springframework/core/task/VirtualThreadDelegate.java has been loaded instead of https://github.com/spring-projects/spring-framework/blob/5012843b1254aefa7d81132619c8fa6e3f79b495/spring-core/src/main/java21/org/springframework/core/task/VirtualThreadDelegate.java. The latter should be used automatically on Java 21+ due to spring-core
being a multi-release jar file. I cannot tell why the correct version is not being loaded automatically without knowing the version of Spring Boot that you are using and exactly how you have built and run your application.
If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
from spring-boot.
Thank you!
I've attached a demo project, you can reproduce the issue with:
- Unzip the project
- Build the project using
docker buildx build --load -t unicorn-store-spring:latest .
cd dockerfiles && docker compose up
from spring-boot.
The store-spring.jar
that you're building is rather unusual as it contains classes from your application's dependencies in BOOT-INF/classes
, including VirtualThreadDelegate
:
BOOT-INF/classes/org/springframework/core/task/VirtualThreadTaskExecutor.class
I suspect that this is due to your configuration of the maven-shade-plugin
. It's breaking the multi-release nature of spring-core
when it shades it, causing the wrong version of VirtualThreadTaskExecutor.class
to be loaded.
from spring-boot.
Thank you! We need to Maven Shade plugin to generate an artifact for AWS Lambda as well. We'll stick with standard threads until we find a way to fix this. Thank you!.
from spring-boot.
Related Issues (20)
- Use ConcurrentHashMap.newKeySet where feasible
- Use ConcurrentHashMap.newKeySet where feasible
- Failing while building spring-boot-devtools version 2.7.10 using ./gradlew build (org.springframework.boot:spring-boot-devtools:2.7.10) HOT 1
- Failing while building spring-boot-starter-actuator version 2.7.10 using gradle build (org.springframework.boot:spring-boot-starter-actuator:2.7.10) HOT 1
- Change or remove dependency exclusion in spring-boot-starter-jersey HOT 1
- 3.2.3 to 3.2.5 upgrade causes Mismatched number of generics HOT 1
- Bump gradle/actions from 3.3.1 to 3.3.2
- Bump gradle/actions from 3.3.1 to 3.3.2
- In some situations, the failure when the AOT-generated initializer cannot be loaded is less helpful than before
- Mapped port can only be obtained after the container is started
- The logback xml <springProfile> element is no longer working from included xml. HOT 2
- Spring devtools not shutdown connection pool on restart HOT 1
- Renew trust material for SSL tests HOT 1
- In Spring Boot version 3.2.5 tables are not auto generating under defined DB name although DB mentioned in properties file is created. HOT 1
- Introduce an ApplicationProperties class so that we can stop binding directly to SpringApplication
- Whitespace is not correctly trimmed when generating configuration properties metadata from records
- Allow group description metadata to be generate by the configuration properties annotation processor
- Upgrade Ubuntu version in CI images
- Upgrade CI to Docker 26.1.1
- Renew trust material for SSL tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.