Skip to Content
0
Former Member
May 18, 2005 at 12:16 PM

Java inbound Proxy: Error invoking method

45 Views

Hi Group,

i have problems to call my inbound java proxy. When i test my scenario, i get always the

error message:

ErrorCode: GENERAL ErrorText:

com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method miTestProxyOutb of proxy bean $Proxy189:

com.sap.aii.messaging.mo.xmb.XMBParty:

com.sap.aii.proxy.xiruntime.core.XmlInboundException:

Error invoking method miTestProxyOutb of proxy bean $Proxy189:

com.sap.aii.messaging.mo.xmb.XMBParty ErrorStack:

The scenario looks like that:

SAP/R3->XI3->Java Proxy

For that i hava a simple function module on a sap/r3 with one request "I_REQUEST" and one response

"E_RESPONSE" parameter.

Further i have a own created synchruonus inbound message interface "mi_test_proxy_outb" with one request "I_REQUEST" and

one response "E_RESPONSE" parameter.

I've created from the message interface the java proxy and created a new EJB module project.

The class MiTestProxyOutb_PortTypeBean does have some commentars like following extract:

/**

  • @ejbHome <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4}>

  • @ejbRemote <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4}>

  • @ejbLocal <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4}>

  • @ejbLocalHome <{com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4}>

  • @stateless

*/

I've added this informations in the ejb-jar.xml like following extract:

<ejb-jar>

<description>EJB JAR description</description>

<display-name>EJB JAR</display-name>

<enterprise-beans>

<session>

<ejb-name>MiTestProxyOutb_PortTypeBean</ejb-name>

<home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundHome4</home>

<remote>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundRemote4</remote>

<local-home>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome4</local-home>

<local>com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4</local>

<ejb-class>de.test.testos.MiTestProxyOutb_PortTypeBean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

</enterprise-beans>

</ejb-jar>

The implementation class MiTestProxyOutb_PortTypeImpl does have only one method: "miBmwProxyOutb".

Here is the extract:

public class MiTestProxyOutb_PortTypeImpl extends

com.sap.aii.proxy.xiruntime.core.AbstractProxy

implements MiTestProxyOutb_PortType{

public de.axentiv.sAPGPS.DtTestProxyResp_Type

miTestProxyOutb(de.axentiv.sAPGPS.DtTestProxyReq_Type

mtTestProxyReq) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException

{

try{

de.axentiv.sAPGPS.DtTestProxyResp_Type test = new

de.axentiv.sAPGPS.DtTestProxyResp_Type();

test.setERESPONSE("Hello World");

return test;

}

catch(Exception ex){

throw new RuntimeException();

}

}

}

With that additions, i've generated my jar File and ear File.

The deployment on the WAS640 finished successfully.

I've registered the Proxy on the JPR also successfully.

Can anyone tell me or give me a hint what i've did wrong?

Any hint would be very apreciated.

Greetings,

Sigi