on 07-25-2007 1:41 PM
I created an XI Adapter Module as per the SAP examples and deployed it to an XI server. However I get the error:
java.lang.ClassCastException: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHomern
tat com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:261)rn
tat com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)rn
tat com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:174)rn
The Adapter Module Framework can not cast the interface classes to the expected class types. I am sure my EJB definitions are right because they follow the examples where I declare the Interfaces in the package com.sap.aii.af.mp.module. My EJB "implements SessionBean, Module" so where to the unexpected class types come from.
Has anyone had this same problem? Could it be a class not found problem or some other error that is not a really a Casting problem? Is the Adapter Module Framework broken?
Any help appreciated.
Thanks,
Doug
Check whether you have included all the jar files mentioned in the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for you response.
The structure of my ear is like this:
C:Dokumente und EinstellungendcDesktopsnapconsult.com~adptmods>dir
Datenträger in Laufwerk C: ist Lokaler Datenträger
Volumeseriennummer: B892-517E
Verzeichnis von C:Dokumente und EinstellungendcDesktopsnapconsult.com~adptmods
26.07.2007 08:48 <DIR> .
26.07.2007 08:48 <DIR> ..
25.07.2007 12:07 10.763 aii_af_mp.jar
25.07.2007 12:07 42.644 aii_af_ms_api.jar
25.07.2007 12:07 138.045 aii_af_trace.jar
25.07.2007 12:07 46.725 commons-codec-1.3.jar
26.07.2007 08:48 <DIR> META-INF
25.07.2007 12:07 3.768 snapconsult.com~ejbeans.jar
25.07.2007 12:07 1.555 src.zip
6 Datei(en) 243.500 Bytes
3 Verzeichnis(se), 52.208.599.040 Bytes frei
C:Dokumente und EinstellungendcDesktopsnapconsult.com~adptmods>dir META-INF
Datenträger in Laufwerk C: ist Lokaler Datenträger
Volumeseriennummer: B892-517E
Verzeichnis von C:Dokumente und EinstellungendcDesktopsnapconsult.com~adptmodsMETA-INF
26.07.2007 08:48 <DIR> .
26.07.2007 08:48 <DIR> ..
25.07.2007 12:07 246 application-j2ee-engine.xml
25.07.2007 12:07 357 application.xml
25.07.2007 12:07 170 MANIFEST.MF
25.07.2007 12:07 669 SAP_MANIFEST.MF
25.07.2007 12:07 408 sda-dd.xml
5 Datei(en) 1.850 Bytes
2 Verzeichnis(se), 52.208.599.040 Bytes frei
C:Dokumente und EinstellungendcDesktopsnapconsult.com~adptmods>
Therefore the required libs aii_af_mp.jar and aii_af_ms_api.jar are in the ear. The module does nothing apart from add a Hello World attachment as per the examples.
I will try to set this up on a different XI server to see if the XI installation is the problem.
Thanks again,
Doug
Thanks a lot guys.
The problem seams to be the handling of the libs which I do not fully understand. However I was missing the lib definitions in the file: application-j2ee-engine and also should not have been packing all the libs in the ear. (Why this produced a casting error I do not know.)
I now have a casting problem inside the process method:
Message msg = (Message) inputModuleData.getPrincipalData();
inputModuleData.getPrincipalData() returns a com.sap.aii.messaging.mo.MessageContext
but I can debug this easier, so I will close this issue.
Thanks again,
Doug
see posts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.