-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
java.net.BindException
on startup can result in spurious log messages
#22967
Comments
This isn't actually an error, because what Quarkus is reporting is that the conflict on the HTTP "server" |
If the error message states |
I thought you were starting Quarkus for both processes. Now I read the description more carefully. |
@geoand I think in |
Yeah, absolutely. |
This exception is used to record the actual ports that cause binding conflicts, thus allowing Quarkus to properly inform the user of which port(s) caused conflicts instead of guessing based on what the provided configuration. Fixes: quarkusio#22967
#23186 takes care of the issue |
This exception is used to record the actual ports that cause binding conflicts, thus allowing Quarkus to properly inform the user of which port(s) caused conflicts instead of guessing based on what the provided configuration. Fixes: quarkusio#22967 (cherry picked from commit b4ad06c)
Describe the bug
I was playing with some Camel Quarkus code and was wanting to force an error scenario. So I configured a Netty TCP route to listen on port 8000, which I had already bound to something else. The application correctly fails on startup with
java.net.BindException
. But the accompanying log messages are confusing.In this case, port 8080 is not in use by another process.
Expected behavior
The log messages are either not present in this scenario or reference the correct port.
Actual behavior
Log messages are output as described in the bug description.
How to Reproduce?
netcat
installed, bind to port 8000.grpc-plain-text-quickstart
by adding configuration propertyquarkus.grpc.server.port=8000
.mvn quarkus:dev
.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: