Service failing with 'java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils' error

Hi Team

There is a flow service which has a custom java service in it. The service has been working fine but has stopped working and is throwing below exception on running it:

Exception in thread “EventReportRunner_0” java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.amway.integration.wm.logging.report.EventReportHTMLFormatter.formatReport(EventReportHTMLFormatter.java:21)
at com.amway.integration.wm.logging.batch.EventReporter$EventReportRunner.run(EventReporter.java:280)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 2 more

Upon reloading the package, the service is returning output for a while and is again throwing the above exception after a while. Restart did not help too. commons-lang.jar and commons-lang-2.6.0.jar are the jars present. The same service is working fine on other servers with same configuration… Could you please let me know what could be the issue and why is it working for a while on reloading the package

Hi Experts

Any help on the query please? The issue is still happening.

Hi,

Where have you place the apache commons jar?
Is it corrupt?
Do you see it listed in the About section of the IS.

If you moved it without restarting the IS, the classpath was not updated.

Best Regards,

Thank you for the reply. The issue is now resolved. commons-lang3-3.4.jar was placed after which we do not see the error.