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

Lester Rodrigo
PLUS
Lester Rodrigo
Courses Plus Student 9,549 Points

there's an error whenever i try to run the bootrun on gradle

! Run build 4s 437ms
Configure settings 2ms Configure build 91ms
Calculate task graph 28ms
! Run tasks 4s 296ms
:compileJava 735ms
:processResources 2ms :classes 1ms :findMainClass 11ms
! :bootRun 3s 511ms

please help me thanks

2 Answers

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

I think it is not an error. All you have to do is to 'Toggle task executions/text mode'. Take a look at this discussion: http://stackoverflow.com/questions/36977735/display-gradle-output-in-console-in-intellij-idea-2016-1-1

When you click this 'Toggle task executions/text mode' you will see text log, just like in "Spring" Course Chris does. Then if there is real error you will see error in text mode.

Lester Rodrigo
PLUS
Lester Rodrigo
Courses Plus Student 9,549 Points

Hey Alex thanks i found out that there's really an error I've tried to search for it. do you happen to know this error Exception in thread "main" java.lang.IllegalStateException: Tomcat connector in failed state

it says i need to change the port I've tried to change the port number to 8181 cause some application is using my port 80 and port 8080 but the same error exist

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

I hope you looked through Stack Overflow solutions: http://stackoverflow.com/questions/20735205/launching-spring-application-address-already-in-use

Take a look at this one. I remember having the same problem.

  1. First of all make sure you are not re-running the boot run twice. ( With Spring you have to kill old one first, then wait, then restart. Chris is doing that in all 'Spring' courses.

  2. If you are still running only one app, try to kill ports with application directly: (lsof -i :8080 | grep LISTEN and then kill -9) see the post above how to do that.

  3. I cannot say more, because you show only one line of code to me, so If you really want for someone to take a look: Share your project on GitHub. So that anyone and I can take a look. If you are using IntellijIdea, it is really simple: https://www.jetbrains.com/help/idea/2016.2/share-project-on-github-dialog.html ( Ctrl-Shift-A and then I type 'Share' and pick 'Share Project on Github'(