MuleSoft · SAP Connector
java.lang.NoClassDefFoundError: com/sap/conn/idoc/IDocMetaDataUnavailableException
Short answer
This SAP Connector error means the SAP IDoc JAR was not loaded when you tested the connection or deployed the app. Add the IDoc library in the Required Libraries section of the connector configuration.
VerifiedLast verified
01Error text
java.lang.NoClassDefFoundError: com/sap/conn/idoc/IDocMetaDataUnavailableException02Likely causes
- The required SAP IDoc dependency is not loaded when testing the connection or deploying.
03How to fix it
- In the connector's global configuration, find the Required Libraries section.
- Click Configure next to the dependency marked with a red exclamation icon and select the file.
- The dependency is added to the classpath automatically; test the connection again.
04Fix it with AI
Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.
I'm getting this error in MuleSoft Anypoint (SAP Connector):
java.lang.NoClassDefFoundError: com/sap/conn/idoc/IDocMetaDataUnavailableException
What it usually means: This SAP Connector error means the SAP IDoc JAR was not loaded when you tested the connection or deployed the app. Add the IDoc library in the Required Libraries section of the connector configuration.
Likely causes:
- The required SAP IDoc dependency is not loaded when testing the connection or deploying.
Fix steps that usually work:
1. In the connector's global configuration, find the Required Libraries section.
2. Click Configure next to the dependency marked with a red exclamation icon and select the file.
3. The dependency is added to the classpath automatically; test the connection again.
Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/mulesoft/sap-noclassdeffounderror-idocmetadataunavailableexceptionNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
05Official documentation
→Related errors
- java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoTraceListenerThis SAP Connector error means the SAP JCo JAR was not loaded when you tested the connection or deployed the app. Add the JCo library in the Required Libraries section of the connector configuration.
- IDOC_ERROR_METADATA_UNAVAILABLE: The meta data for the IDoc type is unavailableIDOC_ERROR_METADATA_UNAVAILABLE in the SAP Connector means the RFC destination does not support Unicode, so IDoc metadata can't be read. Configure Unicode support for the destination in transaction SM59.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft pay estimates