Skip to Content
avatar image
Former Member

java code

hi experts,

I am a fresher. And am currently facing a problem regarding compilation of a java code.

In my code there are two imports :

1.import com.sap.aii.axis.transport.io.Recorder;

2.import com.sap.aii.axis.transport.io.RecorderManager;

and i dont know in which jar will i find these classes.

Due to this reason the code giving error at this point..

""Recorder recorder = RecorderManager.getInstance().getRecorder();""

Please suggest what should be done.

Thanks,

Shreya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 21, 2011 at 08:44 AM

    >

    > hi experts,

    > I am a fresher. And am currently facing a problem regarding compilation of a java code.

    > In my code there are two imports :

    > 1.import com.sap.aii.axis.transport.io.Recorder;

    > 2.import com.sap.aii.axis.transport.io.RecorderManager;

    > and i dont know in which jar will i find these classes.

    > Due to this reason the code giving error at this point..

    > ""Recorder recorder = RecorderManager.getInstance().getRecorder();""

    > Please suggest what should be done.

    > Thanks,

    > Shreya

    Hi, In your PI have you the axis soap adapter?

    Check this link:

    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm

    Edited by: spantaleoni on Jan 21, 2011 9:45 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Shreya,

      did you resolve your Problem by now?

      I know it's more than a Year by now but me and others are still having the same problems...

      I'm following the same tutorial as you do with exactly the same problem.

      @Stefan: Btw. Not being a "Java fresher" I think that such comments are NOT helpful at all. 😭

      We're using SAP NW PI 7.1 EHP 1.

      I'm developing on NWDS 7.1 EHP 1.

      The classes in question are located at

      <drive>:\usr\sap\<sid>\<main instance>\j2ee\cluster\bin\ext\com.sap.aii.af.axis.lib\lib\com.sap.aii.af.axis.lib_api.jar

      You'll recognize that NWDS (Eclipse) is not able to read this jar file. However, if you unzip and re-zip it using e.g. 7Zip, the Jar File will work (for Eclipse...) and you'll be able to compile your Code.

      However, when deploying the jar file with the com.sap.aii.af.axisproviderlib.sda I ran into a NoClassDefFoundError (java.lang.NoClassDefFoundError: com/sap/aii/axis/transport/io/RecorderInputStream ...). That's where I'm stuck at the moment.

      I'll try to exchange the com.sap.aii.af.axis.lib_api.jar on our PI Server. I'll report if that helps.

      Hope that helps 😉

      Greez Markus

      EDIT: replacing the jar with a "repaired" version did NOT fix the problem 😔