threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/dyuproject/protostuff/MapSchema$MessageFactory] with root cause

时间:2021-07-07 03:14:20

错误记录

前几天朋友问我一个错误,顺便记录一下,关于redis 工具类,protostuff序列化报错。

threw exception [Handler processing failed; nested exception is
java.lang.NoClassDefFoundError:
com/dyuproject/protostuff/MapSchema$MessageFactory] with root cause

NoClassDefFoundError 这种问题大部分是缺少 jar/依赖 产生的。

其实,如果采用maven方式引入protostuff的话,是不会出现问题的,大部分是采用非maven,少引入jar包导致的

序列化-protostuff-所依赖所有jar包

threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/dyuproject/protostuff/MapSchema$MessageFactory] with root cause

下载地址