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

Upgrade to Spring Cloud Hoxton #139

Closed
arey opened this issue Sep 25, 2019 · 1 comment
Closed

Upgrade to Spring Cloud Hoxton #139

arey opened this issue Sep 25, 2019 · 1 comment
Assignees

Comments

@arey
Copy link
Member Author

arey commented Oct 9, 2019

I've got an issue with application starting with random port (server.port=0).
The application during initialization will report port 0 (random) to Eureka as the port it's running on, resulting in an unreachable service. This problem is similar to the one described to https://blog.joshmlwood.com/eureka-spring-cloud-random-port/

java.net.UnknownHostException: macbook:0: unknown error
	at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
	|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ org.springframework.cloud.sleuth.instrument.web.TraceWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ HTTP GET "/api/customer/owners" [ExceptionHandlingWebHandler]
Stack trace:
		at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

By debugging I found

macbook:0:80

Problem fix with 2.2.0.RC1

@arey arey self-assigned this Nov 15, 2019
arey added a commit that referenced this issue Nov 18, 2019
Upgrade to Spring Cloud Hoxton #139
@arey arey closed this as completed Nov 19, 2019
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

1 participant