cancel
Showing results for 
Search instead for 
Did you mean: 

Re: java.lang.NoClassDefFoundError: com/sap/mdi/ddtypes/DDObject

Former Member
0 Kudos

Hi,

I have an iView that makes a R/3-connection and receives a result-table. I can get the metadata of the table

IRecordMetaData meta = structure.retrieveMetaData();

and I can ask the metadata about the column-count and column-names

for (int i = 0; i < meta.getColumnCount(); i++) {

String columnName = meta.getColumnName(i);

}

but asking for the column-type

meta.getColumnType(i);

raises the error "java.lang.NoClassDefFoundError: com/sap/mdi/ddtypes/DDObject"

Does anyone have any idea?

Thanks and Regards

Padmaja

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You could do either of the following two things.

1. Add SAPmdi.jar to Portal-INF->lib folder of your par project.

2. add the following line: "reference service:eisconnector library:com.sap.mdi" to the reference.txt file

PS: Please reward points if the problem is resolved.

Message was edited by: Prakash Singh

Former Member
0 Kudos

Hi,

Thanks for the response. I added the SAPmdi.jar into Portal-INF->lib and also added reference "service:eisconnector library:com.sap.mdi" into portalapp.xml file but it gives me the error "couldn't find the portal application com.sap.mdi".

How different is reference.txt file from portalappp.xml.

Thanks and Regards

Padmaja

Former Member
0 Kudos

Hi Padmaja,

Don't add it to the portalapp.xml. <b>I never told you to add it to the portlapp.xml.</b> If you are going to <b>add the SAPmdi.jar to portal-info->lib directory then you don't need to add the line in reference.txt</b>. Reference.txt is a global file for storing all the references to the library being used by portal. Test your code without adding it to your portlapp.xml and it will work.

Prakash.

h

Former Member
0 Kudos

Hi,

I get the error "Java.lang.NoClassDefFoundError:com/sap/mdi/ddtypes/DDObject" even now. Is there any problem with the JCA in my portal.

Thanks and Regards

Padmaja

Former Member
0 Kudos

DDObject is part of SAPmdi.jar. Can you tell me what version of portal do you have? Can you send me your project at singhpra@yahoo.com.

Former Member
0 Kudos

Hi,

My portal version is EP6 SP2. I will send my par file to your id.

Thanks and Regards

Padmaja