대머리개발자

jsonMarshaller must be non-null when serializationFormat is JSON. 본문

개발이야기/예외

jsonMarshaller must be non-null when serializationFormat is JSON.

대머리개발자 2023. 1. 31. 08:43
728x90

메시지 proto 하나 수정했는데

 

java.lang.IllegalArgumentException
: jsonMarshaller must be non-null when serializationFormat is JSON.

 

다른 곳에서 삽질 할 뻔 했다. 휴~

 

message ScopeMapping {
  string scope_id=1;
  string client_id=2;

  common.ExecuteEventType executeEvent=30;
  int32 code = 31;
  string message = 32;
  repeated ScopeMapping list=33;
  int32 list_count=34;
}

 

문제의 원인은 변수 네이밍이다. mapping_list을 단순 list로 했더니.. 그래 늘 풀네임으로 그냥 가자!!

서버는 잘 기동 되었으나 gRpc 모든 요청에 오류가 발생

 

 

 

 

728x90