- The freemarker integration with springMVC reports the following error.
Warning: Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘freemarkerConfig’ defined in class path resource [springmvc.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: DEFAULT_INCOMPATIBLE_IMPROVEMENTS - Solution:
- replace the original freemarker version with the latest version.
Reference address address.http://stackoverflow.com/questions/40650970/java-lang-nosuchfielderror-default-incompatible-improvements; - freemarker Download URL: http://freemarker.org/freemarkerdownload.html
Similar Posts:
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans’ defined in class path resource
- [Solved] Could not initialize class org.jetbrains.jps.builders.JpsBuildBundle
- Spring Error: Bean instantiation via factory method failed StackOverflowError
- [Solved] freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
- java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log
- [How to Solve] Hive: Unsupported major.minor version 51.0
- [Solved] Java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
- Request processing failed; nested exception is java.lang.NullPointerException
- Failed to deserialize — local class incompatible: stream classdesc serialVersionUID [Solved]