Skip to Content

BAPI_Flight_GetList throwing error

Hello Everyone,

I am connecting SUP with SAP as backend.

I am calling BAPI_FLIGHT_GETLIST.

I have created the application in SUP.

I have created the MBO, workflow and have successfully deployed it.

After starting MDS and simulator connection to the server is successful.

However on retrieval of data from SAP i.e. call from BAPI it is throwing java.lang.NoClassDefFoundError.

Could anyone please come up with some suggestions to resolve the same.

I am following the tutorial

Connect, Create, Consume, and Control an SAP Mobile App using SUP

at URL

http://www.youtube.com/watch?v=njizTXT_i00


Thanks & Regards,

Pooja

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    May 21, 2012 at 08:32 AM

    Hi,

    Usually when you get a NoClassDefFoundError the error includes the name of the class it cannot find... can you try to see if you can see more of the error trace?

    Perhaps you have neglected to include the SAP JCo JAR files that are used to connect to the backend at runtime?

    More info on the class that cannot be found will help to diagnose this issue better.

    Hope this helps,

    Simon

    Add comment
    10|10000 characters needed characters exceeded

    • Hey Simon,

      Could you help me with the following error msg.

      I am presuming this to be the error msg.

      org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl$DescriptorCacheImpl]Get descriptor for: com.sybase.uep.admin.configuration.entity.Prop found: com.sybase.uep.admin.configuration.entity.descriptors.PropDescriptor@70bc290a; descriptor for class: [null]; xml name: null

  • avatar image
    Former Member
    May 21, 2012 at 08:38 AM

    Hello Pooja,

    if you are trying out in blackberry,Please see if there is a generated class corresponding the MBO name or the bapi name,if not regenerate the code.

    regards

    kaushik

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Kaushik,

      Thanks for replying.

      I tried to generate the code but doing this made the entire application errorneous.

      I had to rebuilt the entire application in accordance to the procedure given in the tutorial.

      Could you please help.

      Regards

      PoojaM

  • May 21, 2012 at 09:06 AM

    Hi Pooja,

    Already following steps are done or not otherwise check it one's below of the steps in your landscape.


    Download files from http://service.sap.com/connectors.

    Please follow below steps:

    a. Copy librfc32.dll and sapjcorfc.dll to the C:\Windows\System32/

    b. Copy librfc32.dll and sapjcorfc.dll to C:\Sybase\UnwiredPlatform\JDK1.6.0_16\bin

    c.Copy sapjco.jar to C:\Sybase\UnwiredPlatform\Unwired_Workspace\Eclipse\sybase_workspace\mobile\eclipse\plugins

    \com.sybase.uep.com.sap.mw.jco<version>\lib .

    d.Copy sapjco.jar to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib\3rdparty\

    e. Copy librfc32.dll and sapjcorfc.dll to <SUP Installationroot>\Servers\UnwiredServer\lib

    Thanks,

    Syam.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Syam,

      thanks for replying

      I have already copied the files in the said locations.

      However just wanted to confirm that (d) and (e) are to be pasted on server locations right?

      If yes I have done all the aforesaid and I am still facing the same problem viz; classdefnotfounderror.

      Could u plz help.

      Regards

      Pooja