cancel
Showing results for 
Search instead for 
Did you mean: 

java code

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

>

> 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

Former Member
0 Kudos

hi,

I am trying to use the axis soap adapter.

Thats the point where am facing this problem. Am not being able to compile the code.

Please suggest.

Thanks

shreya

Former Member
0 Kudos

Hi All,

We are implementing the functionality mentioned in the blog - /people/alessandro.guarneri/blog/2011/01/10/soap-fault-in-sap-pi-hijack-it

and the code we have taken from- http://wiki.sdn.sap.com/wiki/display/Snippets/TolerantHttpSenderAxisHandler.

But we are facing the problem while compiling the code.

the below packages are not recognized by the compiler -

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

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

I have imported the all the required JARS from standard AXIS package ( AXIS1.4-src.zip) as mentioned in the blog.

axis.jar , common-loggin and wsdl 1.4. stil the above mentioned imports are not recognized.

I am using the JAVA compiler JDK 1.6.

Please let me know am I using the correct jar or which jar files I should be using for these two packages (as these are SAP specific imports).

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

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

Thanks

Shreya

stefan_grube
Active Contributor
0 Kudos

When you have an issue with this blog, you should address Alessandro Guarneri directly.

He should mention in the blog, where the libraries are found.

Most of the PI blogs are not complete, some of them are simply wrong.

There is no quality control for the blogs. You need a lot of experience to use a blog.

I recommend to not use any blog code, when you are a "Java fresher".

You will be responsible for it, when your code fails.

Former Member
0 Kudos

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