Skip to Content
Former Member
Jun 03, 2014 at 09:01 AM

Incompatible with interface


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:


class $ incompatible with interface

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) {

return sent;

private class myProxy extends {
public void mITradeItemsIn( mTTradeItems) throws, {


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.