Skip to Content
avatar image
Former Member

Incompatible with interface com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome5


Hi Experts,

Good day!

First of all, sorry for the long title, don't know how to describe my issue.

Below, is a code snippet we used in our customized applications to send modified message to our SAP GDS system. Basically, we just feed the modified payload (which is a String type) to the "forward" method and the method does the rest.

We have reused this code in other j2ee applications and it always worked but when we're trying to utilize this again in a Web dynpro application, we're now getting this error:

Error:

class $Proxy1060:sap.com/is~gds~core~app@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@b22578c@alive incompatible with interface com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocalHome5:sap.com/gds~custom~custominterspecweb@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@36a56ee9@alive

Code snippet:

public boolean forward(String payload) {
boolean sent = false;

try {
BeanMessage5 message = new BeanMessage5(payload, (new myProxy()).messageSpecifier);
InitialContext initialContext = new InitialContext();

AbstractProxyInboundLocalHome5 home_std = (AbstractProxyInboundLocalHome5) initialContext.lookup("localejbs/TradeItemsInProxy");
AbstractProxyInboundLocal5 proxy_std = home_std.create();
proxy_std.invokeMethod("mITradeItemsIn", message);

sent = true;
}
catch (Exception ex) {
trace.errorT(ex.getMessage());
}

return sent;
}

private class myProxy extends com.sap.aii.proxy.xiruntime.core.AbstractProxy {
public void mITradeItemsIn(com.sap.xi.gDS._21.TradeItems_Type mTTradeItems) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException {
}

}

I'm completely clueless why it did not work since we just literally copied the code from the existing application we have to the webdynpro.

Could I use some help from you guys?

Thanks for the feedback.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 03, 2014 at 03:55 PM

    how you add dependency to those ejb and standard sap lib?

    Add comment
    10|10000 characters needed characters exceeded