TIL

READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE

haedal-uni 2023. 11. 22. 23:33
728x90

채팅방을 열고 난 후 채팅을 시작하려고 하면 뜨는 에러

 

ERROR 32852 --- [nboundChannel-7] .WebSocketAnnotationMethodMessageHandler :

Unhandled exception from message handler method

 

org.springframework.messaging.MessageHandlingException: Unexpected handler method invocation error; nested exception is java.lang.NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE

 

Caused by: java.lang.NoSuchFieldError: READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE

 

 

 

검색을 해보니 jackson와 연관되어 있는 것 같았다.

https://github.com/FasterXML/jackson-databind/issues/3637

 

 

아래 글을 통해서 build.gradle에 코드를 넣고 실행했더니 해결되었다.   

implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.0'

 

https://stackoverflow.com/questions/76257484/kafka-json-consumer-error-java-lang-nosuchfielderror-read-unknown-enum-values-u

 

 

 

 

728x90