Values.lazy(Jersey 2.5.1)上的NoSuchMethodError

Values.lazy(Jersey 2.5.1)上的NoSuchMethodError,第1张

Values.lazy(Jersey 2.5.1)上的NoSuchMethodError

根据JERSEY-2394中提供的信息,您的类路径包含以下库:

rw-rr- 1 root root 94774 Feb 10 12:02 cxf-rt-databinding-jaxb-2.3.2.jarrw-rr- 1 root root 341446 Feb 10 12:02 cxf-rt-frontend-jaxws-2.3.2.jarrw-rr- 1 root root 20020 Feb 10 12:02 jackson-jaxrs-base-2.2.3.jarrw-rr- 1 root root 15243 Feb 10 12:02 jackson-jaxrs-json-provider-2.2.3.jarrw-rr- 1 root root 25985 Feb 10 12:02 jackson-module-jaxb-annotations-2.2.3.jarrw-rr- 1 root root 50034 Feb 10 12:02 jackson-module-jsonSchema-2.1.0.jarrw-rr- 1 root root 79309 Feb 10 12:02 javax.json-1.0.2.jarrw-rr- 1 root root 19754 Feb 10 12:02 javax.json-api-1.0.jarrw-rr- 1 root root 876610 Feb 10 12:02 jaxb-impl-2.1.13.jarrw-rr- 1 root root 226915 Feb 10 12:02 jaxen-1.1.1.jarrw-rr- 1 root root 159742 Feb 10 14:02 jersey-client-2.5.1.jarrw-rr- 1 root root 700399 Feb 10 14:02 jersey-common-2.5.1.jarrw-rr- 1 root root 15684 Feb 10 14:02 jersey-container-servlet-2.5.1.jarrw-rr- 1 root root 52593 Feb 10 12:02 jersey-container-servlet-core-2.1.jarrw-rr- 1 root root 6412 Feb 10 14:02 jersey-media-json-processing-2.5.1.jarrw-rr- 1 root root 63067 Feb 10 12:02 jersey-media-multipart-2.1.jarrw-rr- 1 root root 828016 Feb 10 14:02 jersey-server-2.5.1.jarrw-rr- 1 root root 86540 Feb 10 12:02 json4s-ast_2.10-3.2.4.jarrw-rr- 1 root root 568890 Feb 10 12:02 json4s-core_2.10-3.2.4.jarrw-rr- 1 root root 74565 Feb 10 12:02 json4s-ext_2.10-3.2.4.jarrw-rr- 1 root root 39952 Feb 10 12:02 json4s-jackson_2.10-3.2.4.jarrw-rr- 1 root root 68734 Feb 10 12:02 json4s-native_2.10-3.2.4.jarrw-rr- 1 root root 7814 Feb 10 12:02 jsonp-jaxrs-1.0.jarrw-rr- 1 root root 121047 Feb 10 12:02 swagger-jaxrs_2.10-1.3.2.jarrw-rr- 1 root root 45719 Feb 10 12:02 swagger-jersey2-jaxrs_2.10-1.3.2.jar

您有2个版本不同于2.5.1-

jersey-media-multipart-2.1.jar
和的Jersey jar
jersey-container-servlet-core-2.1.jar
。后者会导致您遇到问题。stacktrace中的行与以下想法相对应:使用2.1版本的jersey
servlet核心而不是2.5.1(请参阅2.1中的WebComponent)。解决方法是删除旧的jar。



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5026716.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存