cancel
Showing results for 
Search instead for 
Did you mean: 

RFC -> Java Proxy (Synchronous) invoking method

Former Member
0 Kudos

Hi,

I have problems to call my inbound java proxy.

My scenario consist of send RFC -> Java Proxy (Synchronous)

Proxy this registered

http://hcp095.intra.csc.es:50100/ProxyServer/register?ns=http://csc.es/xi/rca&interface=Z_RCA_SCS&be...

ejb-jar.xml:

<ejb-jar>

<description>EJB JAR description</description>

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

<enterprise-beans>

<session>

<ejb-name>ZRCASCS_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>es.csc.xi.rca.ZRCASCS_PortTypeBean</ejb-class>

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

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

</session>

</enterprise-beans>

</ejb-jar>

-


Class Impl:

package es.csc.xi.rca;

public class ZRCASCS_PortTypeImpl extends AbstractProxy implements ZRCASCS_PortType {

public ZRCASCSResponse_Type zRCASCS(ZRCASCS_Type parameters) throws ZRCASCSException_Message_Exception, SystemFaultException, ApplicationFaultException{

//throw new RuntimeException();

Rca_ws a = new Rca_ws();

return a.zRCASCS(parameters);

}

-


Error: XI_Monitor

<SAP:Category>XIAdapterFramework</SAP:Category>

<SAP:Code area="MESSAGE">GENERAL</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method zRCASCS of proxy bean $Proxy305: cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method zRCASCS of proxy bean $Proxy305: cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

-


Error: defaultTrace

#hcp095.intra.csc_XID_19271950#ANGUZMAN#ec20b7f019f611de98340011259e6830#

SAPEngine_Application_Thread[impl:3]_36##0#0#Error##Plain##

#com.sap.aii.proxy.xiruntime.core.XmlProxyException: Error invoking method zRCASCS of proxy bean $Proxy366:

cannot assign instance of com.sap.guid.GUID to field com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl.guid

of type com.sap.guid.IGUID in instance of com.sap.aii.proxy.xiruntime.core.MessageSpecifierImpl

at com.sap.aii.proxy.xiruntime.core.XmlProxyJ2EE.call(XmlProxyJ2EE.java:192)

at com.sap.aii.proxy.xiruntime.core.XmlProxy$ProxyBeanCaller.call(XmlProxy.java:225)

at com.sap.aii.proxy.xiruntime.core.XmlProxy.processRequest(XmlProxy.java:194)

at com.sap.aii.proxy.xiruntime.core.XmlInbound.processRequestMessage(XmlInbound.java:126)

at com.sap.aii.proxy.xiruntime.core.XmlInbound.processMessage(XmlInbound.java:83)

at com.sap.aii.proxy.xiruntime.sbeans.JPRBean.onMessage(JPRBean.java:158)

at com.sap.aii.proxy.xiruntime.sbeans.JPRLocalLocalObjectImpl0_0.onMessage(JPRLocalLocalObjectImpl0_0.java:175)

at com.sap.aii.af.ra.ms.impl.ServicesImpl.deliver(ServicesImpl.java:276)

at com.sap.aii.adapter.xi.ms.XIEventHandler.onDeliver(XIEventHandler.java:1049)

at com.sap.aii.af.ra.ms.impl.core.queue.RequestConsumer.onMessage(RequestConsumer.java:119)

at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:850)

at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(AccessController.java:180)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

If somebody can help me.

Thank you very much

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved!!!

to assign library references to the project application-j2eeengine.xml

com.sap.aii.proxy.xiruntime

com.sap.aii.messaging.runtime

com.sap.xi.util.misc

com.sap.guid