java.lang.NoSuchFieldException: DEFAULT_PARAM

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

      The project is struts 2.3.15.3 this version, package useful to struts2-json-plugin-2.3.15.3.jar the jar project. When the log4j log level to error, no problem. When the log level to debug, there will be java.lang.NoSuchFieldException: DEFAULT_PARAM... But the project still can run normally.

      But I know, my project configuration is correct. Later Baidu once, so this is a problem with this version of bug, in the org.apache.struts2.json.JSONResult class is not the DEFAULT_PARAM attribute.
Are interested can look at the open source, will understand, but this does not affect the use of abnormal information. If you want to remove the abnormal information, can find the source code, copy, create themselves the same classes in the project, the path and name are the same, then public static final String DEFAULT_PARAM = " plus class; status" OK; this property.

       Later in the struts website to see, the latest version of Struts2 is 2.3.16. Decisive download, introduction to the project, not the exception, looks like the new version has solved this problem.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Marsh at February 17, 2014 - 8:14 AM