string boot finished with non-zero exit value 1 에러 해결 가능한 방법
java 기반으로 프로그래밍을 한다면 응용 프로그램 만들거나 웹 개발을 할 수 있습니다. 웹개발을 할 때 스프링부트를 사용을 하여 개발할 수도 있습니다. 자바에 주요 서버는 톰켓을 많이 사용을 합니다. php는 아파치, nginx 등을 사용을 합니다. java로 개발을 한다면 사용을 하기에 편리한 라이브러리를 사용방법을 숙지를 하고 사용해보는 것도 좋을 수도 있습니다. string boot finished with non-zero exit value 1 에러 해결 가능한 방법에 대해 알아보도록 해요.
> Task :StudyApplication.main()
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.2.RELEASE)
2020-01-09 00:41:36.357 INFO 5820 --- [ main] com.example.study.StudyApplication : Starting StudyApplication on DESKTOP-JOG8BCS with PID 5820 (E:\study\build\classes\java\main started by happy in E:\study)
2020-01-09 00:41:36.357 INFO 5820 --- [ main] com.example.study.StudyApplication : No active profile set, falling back to default profiles: default
2020-01-09 00:41:38.919 INFO 5820 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2020-01-09 00:41:38.935 INFO 5820 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-01-09 00:41:38.935 INFO 5820 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
2020-01-09 00:41:39.076 INFO 5820 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-01-09 00:41:39.076 INFO 5820 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2610 ms
2020-01-09 00:41:39.326 INFO 5820 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-01-09 00:41:39.560 INFO 5820 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2020-01-09 00:41:39.576 INFO 5820 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-09 00:41:39.576 ERROR 5820 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.
2020-01-09 00:41:39.576 INFO 5820 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
> Task :StudyApplication.main() FAILED
Execution failed for task ':StudyApplication.main()'.
> Process 'command 'C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.3/jbr/bin/java.exe'' finished with non-zero exit value 1
위의 에러는 bootRun에 대한 에러입니다. 해당 에러를 해결을 하기 위해 기존에 실행하고 있는 포트를 중지해야 합니다. 윈도우 명령 프롬프트를 실행을 합니다. 윈도우 바탕화면에 시작에 명령 프롬프트로 검색을 하여 실행을 할 수 있습니다.
netstat -ao |find /i "listening"
위의 명령어로 현재 사용 중인 8080포트의 PID를 확인을 할 수 있습니다. PID를 먼저 확인합니다.
Taskkill /F /IM [PID]
8080포트를 사용을 하고 있어 해당 PID를 확인을 하였으면 위의 명령어를 입력을 해서 실행 해야 합니다. PID는 확인을 한 번호를 입력해야 해당 포트를 kill를 처리할 수 있습니다. 이제 스트링부트에 bootRun을 하게 되면 정상적으로 이용을 할 수 있습니다.
'Error' 카테고리의 다른 글
codeigniter Access denied 에러 해결하기 (0) | 2020.06.19 |
---|---|
amd Unable to install Intel HAXM 해결하기 (0) | 2020.06.18 |
failed to find style 'coordinatorlayoutstyle' in current theme android 에러 해결방법 (0) | 2020.06.15 |
You don't have permission to access on this server 에러 해결방법 (0) | 2020.06.14 |
php form php enctype=multipartform-data 한글깨짐 해결하는 방법 (0) | 2020.06.06 |