Note:
A while ago in Java, because it is a small plug-in, so the operation is dependent on the previous project works, where the JSON conversion, the map to the JSON string, this should be a very simple code, the code is completed, the local IED test through, the following upgrade deployment to the test environment, Found that the test does not pass, always prompted this error:
Org/apache/commons/lang/exception/nestableruntimeexception See this problem first thought is the lack of reliance on the jar, after looking at the environment on the project inside the jar, found that the need for the jar are in, Because of the use of json-lib, so the need to rely on the package is nothing more than Apache common under a few jars Commons-beanutils-1.8.3.jar
Commons-collections-3.2.1.jar
Commons-compress-1.8.1.jar Commons-logging-1.1.1.jar
Ezmorph-1.0.6.jar
Json-lib-2.3-jdk15.jar
Commons-lang3-3.3.jar (need to be replaced with a low version Commons-lang-2.6.jar)
After looking at the original problem is on the Commons-lang3-3.3.jar, Commons-lang3-3.3.jar provides org/apache/commons/lang3/, this is a new version. because Json-lib conversion is a lower version of the Commons-lang, so replace it with a lower version of Commons-lang-2.6.jar.
In summary, this problem arises because of the unfamiliar version of the common package. Many times the jar version is different, resulting in a different directory and the functionality provided.