cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Development || sample Adapter

Former Member
0 Kudos

Hi there,

I try to develop an own XI Adapter and want to use the sample adapter as starting point.

If I try to adjust the manifest files and xml files like:

Specification-Title: com.MYCOMPANY.aii.af.tc.ra

Specification-Vendor: MYCOMPANY.com

Implementation-Vendor-Id: MYCOMPANY.com

and so on the adapter doesn't work anymore... the only hint I have is a zipException some seconds[60?] after deployment. The deployment itself works fine...

"java.util.zip.ZipException: The system cannot find the path specified"

Any ideas how to get this work??

Warm regards,

Christian

Message was edited by: Christian Frölich

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Christian,

How to use Ant to build .rar files and where can i get that.I trying to develop an adapter.I have already used the sample adapter.Can u give some details regarding Ant.

Regards,

Gowtham K.

Former Member
0 Kudos

Hi there,

there it is:

http://ant.apache.org/

Ant is delivered with Eclipse 3.1....

Hava fun!

Christian

Former Member
0 Kudos

Hi again,

it has something to do with the

stopMCF() Method of the SPIManagedConnectionFactory.

Here is the trace:

java.util.zip.ZipException: The system cannot find the path specified

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:112)

at java.util.jar.JarFile.<init>(JarFile.java:127)

at java.util.jar.JarFile.<init>(JarFile.java:65)

at com.sap.engine.boot.JarFilter.open(JarFilter.java:98)

at com.sap.engine.frame.core.load.res.JarResource.openJar(JarResource.java:416)

at com.sap.engine.frame.core.load.res.JarResource.getClassInfo(JarResource.java:130)

at com.sap.engine.frame.core.load.res.MultipleResource.getClassInfo(MultipleResource.java:56)

at com.sap.engine.frame.core.load.ResourceLoader.loadLocalClass(ResourceLoader.java:249)

at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java:143)

at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:353)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at com.ecs.aii.af.tc.adapter.ra.SPIManagedConnectionFactory.stopMCF(Unknown Source)

at com.ecs.aii.af.tc.adapter.ra.SPIManagedConnectionFactory.finalize(Unknown Source)

at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)

at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)

at java.lang.ref.Finalizer.access$100(Finalizer.java:14)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

It would be great if somebody could give me a hint!!

With best regards,

Christian

Former Member
0 Kudos

Hi Christian,

i am also a beginner of Adapter Development. I'm learning and writing code now.

For your problem, i think, you just changed the Meta file and XML description. These files must match the structure or hierachy or names in the Java source codes.

So, you had better to let the IDE to generate the Meta file for you, rather than changing them manuelly.

I hope this will help. Good Luck!! ^^

Xiang

Former Member
0 Kudos

Hi Xiang,

thank you for your answer!

I develop with the eclipse 3.1 IDE now. I'm building my .sda file with ant. Is there a better way to that? Does the SAP Netweaver Developer Studio offer a project type for adapters?? How do you create the SAP_Manifest?

Regards,

Christian

Former Member
0 Kudos

Hello Christian,

i'm using the SAP NetWeaver Developer Studio. It is also based on an eclipse with SAP developed plugins and features.

For an adapter, i learned from an experienced developer, we can just create a normal java project in SAP NW Studio. He did in this way and built an adapter, which is already certified by SAP.

For the Manifest, when you finish your project and want to deliver them as jar file,then the IDE will generate the manifest for you (Maybe i am wrong, i'm not 100% sure. Because i don't go so further. If it is wrong, please tell me. I'll be very appriaciated for that.). You know, the sda file is just the jar file, nothing else.

Regards,

Xiang

Former Member
0 Kudos

By the way, do you know someting about the VERSION_ID?

Please check my question here (copy it in the search forum):

"Question about VERSION_ID "

Thanks a lot in advance!

Message was edited by: Xiang Zhang