Org/apache/commons/lang/exception/nestableruntimeexception Error

Source: Internet
Author: User

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.