general java
[spring boot] XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used 해결하기
'김용환'
2015. 9. 30. 16:45
spring boot 1.3.0에서 undertow 서블릿 컨테이너를 실행하면 아래와 같이 websocket관련 warn로그가 발생한다.
[2015-09-30 16:27:23.266] boot - 33938 WARN [restartedMain] --- jsr: UT026009: XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used
[2015-09-30 16:27:23.369] boot - 33938 WARN [restartedMain] --- jsr: UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
해당 로그를 발생하게 하는 클래스가 JsrWebSocketLogger임을 확인한다.
@LogMessage(level = Logger.Level.WARN) @Message(id = 26009, value = "XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used")
void
xnioWorkerWasNull();
spring-boot의 undertow starter에 websocket jsr 라이브러리를 dependency하고 있다.
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-websockets-jsr</artifactId>
</dependency>
websocket jsr을 dependency lib 에서 exclude하니. 더 이상 warn로그는 발생하지 않았다.
compile("org.springframework.boot:spring-boot-starter-undertow") {
exclude group: 'io.undertow', module: 'undertow-websockets-jsr'
}