Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
程序员文章站
2023-09-28 17:30:26
最近整合SSM框架,使用Jackson组件时,出现了问题,具体描述如下: 查找了一下资料,发现出现Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackso ......
最近整合ssm框架,使用jackson组件时,出现了问题,具体描述如下:
查找了一下资料,发现出现constructor threw exception; nested exception is java.lang.noclassdeffounderror: com/fasterxml/jackson/databind/exc/invaliddefinitionexception的根本原因在于jar包,我的ssm都是基于5.0.4版本的jar,导入的jackson的jar版本过低造成出现该异常。
现在就ok了。。。
推荐阅读
-
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
-
JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.JsonM
-
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException
-
JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.JsonM
-
nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper