"Java.net.BindException: Address already in use: bind"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
5번째 줄: 5번째 줄:
==문제상황==
==문제상황==
* 스프링부트 웹 시작시 오류 발생
* 스프링부트 웹 시작시 오류 발생
<source lang='verilog'>
<syntaxhighlight lang='verilog'>
2016-05-17 15:05:07.917 ERROR 11048 --- [          main] o.a.coyote.http11.Http11NioProtocol      : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]
2016-05-17 15:05:07.917 ERROR 11048 --- [          main] o.a.coyote.http11.Http11NioProtocol      : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]


16번째 줄: 16번째 줄:
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340) ~[tomcat-embed-core-8.0.33.jar:8.0.33]
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340) ~[tomcat-embed-core-8.0.33.jar:8.0.33]
... (생략)
... (생략)
</source>
</syntaxhighlight>
:→ 다른 프로그램이 8080 포트 사용중
:→ 다른 프로그램이 8080 포트 사용중



2020년 11월 2일 (월) 02:50 기준 최신판

1 개요[ | ]

Failed to start end point associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use: bind

2 문제상황[ | ]

  • 스프링부트 웹 시작시 오류 발생
2016-05-17 15:05:07.917 ERROR 11048 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Failed to start end point associated with ProtocolHandler ["http-nio-8080"]

java.net.BindException: Address already in use: bind
	at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_77]
	at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_77]
	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_77]
	at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340) ~[tomcat-embed-core-8.0.33.jar:8.0.33]
... (생략)
→ 다른 프로그램이 8080 포트 사용중

3 해결방안[ | ]

  • 해당 스프링부트 애플리케이션이 이미 실행중이면 중지
  • 다른 프로그램을 끄거나, 포트 변경
또는 스프링부트의 포트를 변경

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}