cancel
Showing results for 
Search instead for 
Did you mean: 

JCA Error

Former Member
0 Kudos

Experts,

I'm new to JCA. I was following the tutorial http://help.sap.com/saphelp_nw04/helpdata/en/b6/55e3952a902447847066a0df27b0d6/content.htm

I tried connecting R/3 BAPI using JCA, but i'm getting following error.

<b>java.lang.NoClassDefFoundError: com/sap/mdi/ObjectFactoryException

at com.sap.aii.proxy.framework.core.AbstractProxy$JcoProxyHelper.send(AbstractProxy.java:173)

at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:141)

at mypackage.MyProxy_PortType.bapi_Flight_Getlist(MyProxy_PortType.java:16)

at mypackage.MyMainClass.main(MyMainClass.java:80)

Exception in thread "main"</b>

Anyone can give me the solution.

Also If anyone have JCA related document and example workouts, send to my mail id subafriends@yahoo.com

Rewards will be given to answers.

Thanks,

Suba

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Did proxy generation give errors?

Are you trying to create an PDK application or is it a standalone test application? The classloader is unable to find certain classes required for execution.

Check the following step by step tutorials

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90fc8a14-a02c-2a10-5a91-82156109...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9d6132b0-0801-0010-86a1-d7308895...

Regards,

Prasanna Krishnamurthy

Former Member
0 Kudos

Prasanna,

Thanks for your answer.

I'm trying to do standalone test application only.

Thanks,

Suba

Answers (1)

Answers (1)

rupambhatta
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Suba,

Try adding com.sap.mdi_api.jar from plugins\com.sap.mdi\lib in your build path. This jar jas ObjectFactoryException class in it.

regards,

Rupam

monika_eggers
Active Participant
0 Kudos

I had the same problem and adding the com.sap.mdi*.jar helped, thank you.