Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

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!