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)
- Pin the version of the release verification tests
- Pin the version of the release verification tests
- Upgrade Ubuntu version in CI images
- Upgrade Java 21 version in CI image
- Upgrade Ubuntu version in CI images
- Upgrade Java 21 version in CI image
- Upgrade Java 17 version in CI image and .sdkmanrc
- Upgrade Ubuntu version in CI images
- Upgrade Java 17 version in CI image and .sdkmanrc
- Upgrade Java 17 version in CI image and .sdkmanrc
- Upgrade Java 21 version in CI image
- Spring boot 2.7.1 .RELEASE is not deleting TMP file (upload_xx) from the location user/appData/local/temp automatically HOT 3
- SpringBoot 3.2.4 is pulling docker.io/paketobuildpacks/builder-jammy-tiny:latest for native image while recommended is gcr.io/paketo-buildpacks/java-native-image HOT 1
- ExtractCommandTests fail on Linux with Java 17.0.11
- Update CLI's Homebrew tap as part of a release
- Mark new candidate as the default when publishing to SDKMAN
- Update release workflow for publishing a non-GA release
- ExtractCommandTests fail on Linux with Java 17.0.11
- ExtractCommandTests fail on Linux with Java 17.0.11
- Native image doesn't start and doesn't log anything if an environment post processor throws an exception HOT 3
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.