devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Exception in thread "main" java.net.BindException: Address already in use

Open a5a5a9 opened this issue 4 years ago • 1 comments

What happened? hot reloading not working in the devspace-quickstart-java example

Exception in thread "main" java.net.BindException: Address already in use at java.base/sun.nio.ch.Net.bind0(Native Method) at java.base/sun.nio.ch.Net.bind(Net.java:552) at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:336) at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:88) at jdk.httpserver/sun.net.httpserver.ServerImpl.(ServerImpl.java:101) at jdk.httpserver/sun.net.httpserver.HttpServerImpl.(HttpServerImpl.java:50)

What did you expect to happen instead? After a change in the QuickStart.java the hotreload triggers but it fails to launch the app thru the java -jar command.

How can we reproduce the bug? (as minimally and precisely as possible) run the devspace-quickstart-java example , make a change in the Quickstart.java code and the launch will fail with:

Exception in thread "main" java.net.BindException: Address already in use

Local Environment:

  • DevSpace Version: [use devspace --version]
  • Operating System: linux
  • Deployment method: helm

Kubernetes Cluster:

  • Cloud Provider: aws
  • Kubernetes Version: 1.21

/kind bug

a5a5a9 avatar Aug 23 '21 21:08 a5a5a9

@a5a5a9 thanks for creating this issue! We'll take a look and will fix the problem

FabianKramm avatar Aug 24 '21 08:08 FabianKramm