cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDef-Error when trying to connect to SAP MDM Repos. in Java Mapping

Former Member
0 Kudos

Hey,

I'm coding a Java Mapping for SAP PI 7.1, which reads binary data (jpeg) from a file-share and stores it to SAP MDM.

Afterwards I create a XML OutputStream to update Linkage-Information in MDM between Material and associated Pictures.

I tested the hole scenario in Eclipse - everything worked fine without any errors.

I stored the jar (including the mdm libs) in SAP PI and tested the whole scenario again. Curiously I receive a "NoClassDefFound"-Exception with the following trace:

LinkageError during appliction Java mapping de/ibsolution/de/connectionTestMDM

java.lang.NoClassDefFoundError: com/sapportals/connector/connection/ConnectionFailedException

...

This message seems to be very strange to me, because I don't use a sapportals-library in my sourcecode.

Is there a way to store the mdm-libraries in PI in another way?

Do you have an suggestions how to solve this issues

Thank you,

Daniel

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

3 things;

1. Try to do a complete cache refresh and check if the mapping is active

2. 755302 refer that note. it might be JDK incompatibility issue

3. Do a restart of the server - this has seen to take away that problem instantly