-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
HttpHostConnectException is thrown when using buildpacks with Gradle or Maven on Windows #42952
Comments
This could be related to the changes I had to make in #42675 for the HttpClient5 5.4 upgrade.
It should connect with a socket to |
Could you please give it a try with |
@mhalbritter I tried with |
Thanks! Then we can rule out #42675 as the culprit. |
What does |
|
Can you reproduce this issue with a fresh project generated from start.spring.io? I'm wondering about your stacktrace, because this:
looks on my system like this:
|
@mhalbritter Yes, I'll do it in this afternoon. IMHO the POM of |
I removed the Checkstyle and the SportBugs plugin: the stacktrace still appears. |
@mhalbritter Attached is zipped testccase which produces the same stacktrace. |
I had very similar problem on spring-boot 3.3.5 based application. In our case, it solved by removing 3rd party gradle plugin which depends on Minimum plugins {
java
id("org.springframework.boot") version "3.3.5"
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
val httpclient5Version = "5.4.1"// 5.3.1 works
classpath("org.apache.httpcomponents.client5:httpclient5:${httpclient5Version}")
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
}
tasks.bootBuildImage {
environment.put("BP_JVM_VERSION", "23")
verboseLogging.set(true)
cleanCache.set(true)
} I've not tried |
I still get the same stacktrace, even when removing the Checkstyle and the SpotBugs plugin. |
@juergenzimmermann https://github.com/jeremylong/DependencyCheck It seems to be caused by any plugin depends on httpclient5 5.4+ |
I removed all plugins that depend on |
Thanks for the sample, I've managed to reproduce the error. It seems to be a Windows only issue. |
Thank you, very much! |
Thanks @philwebb ! |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
It is very helpful, thanks for pointing out |
Environment:
The Docker daemon is running, and commands like
docker version
,docker info
anddocker pull ...
are working fine. When I try to invokegradle bootBuildImage --info --stacktrace
I get the following output:The text was updated successfully, but these errors were encountered: