java - IntelliJ IDEA is unable to kill my Dropwizard Server -
i have project developed using dropwizard , gradle. when want start server, can run inside intellij idea gradle run
runconfiguration.
doing starts server , can interact expected, debugging intellij no problem.
but using "stop" or "rerun" buttons don't seem kill started server. instead, if rerun server following exception:
13:45:48: executing external task 'run'... :compilejava up-to-date :processresources up-to-date :classes up-to-date connected target vm, address: '127.0.0.1:61376', transport: 'socket' :run info [2014-12-16 12:46:01,393] io.dropwizard.server.serverfactory: starting my-project disconnected target vm, address: '127.0.0.1:61376', transport: 'socket' warn [2014-12-16 12:46:01,552] org.eclipse.jetty.util.component.abstractlifecycle: failed org.eclipse.jetty.server.server@7a6359b0: java.lang.runtimeexception: java.net.bindexception: address in use
so seems other program keeps address want use. when run ps aux
can see server still running , responds requests. if kill via terminal, or when exit intellij idea server gets killed.
as not nice development i'm searching guidance here.
intellij idea had (has?) bug not being able terminate gradle tasks.
if aren't using gradle 2.1, try upgrade 2.1. otherwise workaround add property
gradle.system.in.process=false
into file 'bin/idea.properties'
Comments
Post a Comment