Skip to Content
author's profile photo Former Member
Former Member

Java inbound Proxy: Error invoking method

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 07, 2005 at 01:33 PM

    Is the problem solved?

    Otherwise let me know the string, how you registered the proxy.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.