Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java

Ricardo Sala
Ricardo Sala
13,390 Points

SPRING NOT CLOSING PROPERLY

I am getting this error again and again when trying to compile... please help me!

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':bootRun'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_131\bin\java.exe'' finished with non-zero exit value 1

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

MORE CLUES:

  • The process using the port 80 is "java", so java is listening correctly...
  • Still another clue: if I close and open intelliJ, it works, but after stop the app is says:

The daemon will cancel the build. Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.5-rc-2-all.zip'. 12:57:48: External task execution finished 'bootRun'

  • And the next time it cant compile and the port remains open

Seems like Gradle is not closing properly my app, and it only works one time, then the port remains open forever even if I click stop (well, until I close intelliJ!).

Here is my project in Github:

https://github.com/RicSala/project5countries

Please help! :)

THANK YOU!