Could not initialize class com.amazonaws.partitions.PartitionsLoader

后端 未结 3 1965
[愿得一人]
[愿得一人] 2020-12-19 07:13

Using Eclipse Mars .I have already added aws java sdk 1.11.123 through install software from help.Now when i run Tomcat Server 7 I get this error:

May 02, 2017

3条回答
  •  Happy的楠姐
    2020-12-19 07:24

    java.lang.NoSuchFieldError: ALLOW_FINAL_FIELDS_AS_MUTATORS

    This makes it sound like you're picking up an old version of Jackson from somewhere. PartitionsLoader references MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS while initializing a static member field. If the version of MapperFeature that you pick up at runtime does not have this field, the resulting exception will cause the class initialization process for PartitionsLoader to fail. Subsequent attempts to reference the class will then throw the exception you're seeing.

    ALLOW_FINAL_FIELDS_AS_MUTATORS was added in version 2.2. Which version are you picking up?

提交回复
热议问题