Spring boot gradle debug problem

Answered

Hello,

I have a spring boot app. When I start it in debug mode  with gradle bootrun, it seems 2 servers running. One of them is :bootRun, the other one is my configuration name. Still my app works well, but when I want to stop both servers, the servers keep running. I can kill them only via terminal with kill -9 <pid> command. This situation started when I downloaded IntelliJ 2018.2

2
11 comments

Hi.

Sounds like https://youtrack.jetbrains.com/issue/IDEA-196664

Could you please download 2018.2.1 and check?

0

Similar problem here with 2018.2.1 Ultimate on Windows 7 64-bit with a Spring Boot 1.59 . Had to roll back to 2018.1.5 since it was hard to get any work done.

0

BTW issue IDEA-196664 is showing as not found.

0

Hi,

I am having the same issue with 2018.2.1 Ultimate on Windows 10 Pro 64b, working with Spring Boot 2.0 using gradle wrapper.

When running bootRun in debug Intellij seems to lose contact with the project that it is starting up. Stopping gives "Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)" in the terminal window and the process is still alive. Doing a rerun (ctrl F5) results in "Unable to start LiveReload server" warning and a BindException for tomcat as the ports are in use by the runaway process. I only have this issue when running in debug and extra tabs named :bootRun (as described by Yazilimci888) do not always appear even thou the extra processes do start.

1
Avatar
Permanently deleted user

Actually I use 2018.2.1, on Mac with gradle version of  2.14, spring boot 1.2.6

0

Hi.

The master ticket for the problem is https://youtrack.jetbrains.com/issue/IDEA-194325

The fix was not propagated to 2018.2.1 yet, please try EAP:

https://confluence.jetbrains.com/display/IDEADEV/IDEA+2018.2+EAP

0
Avatar
Permanently deleted user

I have exact same problem, and have to kill the process manually every time. It's really annoying.

0
Avatar
Permanently deleted user

bootRun is fixed at 2018.2, but in another project I use gradle run command. Same problem remains for gradle run.

0

I have the same problem in:
IntelliJ IDEA 2018.2.5 (Ultimate Edition)
Build #IU-182.4892.20, built on October 16, 2018
Licensed to Pavel Spicak
Subscription is active until May 9, 2019
JRE: 1.8.0_152-release-1248-b19 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14

0

Please sign in to leave a comment.