SAP Knowledge Base Article - Preview

3320706 - How to browse the Classloader Hierarchy in Commerce Cloud and trouble shoot classes/resources related issues via Groovy Script

Symptom

JAVA ClassLoader is hierarchical in loading a class into memory. Whenever a request is raised to load a class, it delegates it to the parent classloader. This is how uniqueness is maintained in the runtime environment. If the parent class loader doesn’t find the class then the class loader itself tries to load the class. Commerce has a multi-layer ClassLoader Hierarchy as shown below:

sometimes you might encounter low level java class related error e.g. ClassNotFoundException, NoClassDefFoundError, class conflict, Class cast exception or API incompatibility issue which are caused by wrong java classes or resources like XML are being loaded.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

Commerce, Commerce Cloud

Product

SAP Commerce Cloud all versions ; SAP Commerce all versions

Keywords

Commerce, ClassLoader, ClassNotFoundException, NoClassDefFoundError , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.