Skip to Content
avatar image
Former Member

Error on executing a BAPI - Must not add role listener with role null

Hi all,

I have created a web dynpro application which starts a backend workflow. The workflow item is shown in the UWL. On click of the workitem a BAPI is executed. When i open the workitem this is the error i get:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: Must not add role listener with role null

    at com.sap.tc.cm.base.model.BaseGenericModelClass.registerRoleListener(BaseGenericModelClass.java:905)

    at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClass.registerRoleListener(ARFC2TypedModelClass.java:241)

    at com.sap.tc.webdynpro.progmodel.context.RelationElementList.<init>(ElementList.java:2135)

    at com.sap.tc.webdynpro.progmodel.context.DataNode.createRelationElementList(DataNode.java:271)

    at com.sap.tc.webdynpro.progmodel.context.DataNode.setElements(DataNode.java:243)

When i directly access the iview, the data is populated. But when i open the workitem, i get the error. Please help me with this.

Note: I re-imported a model after a structural change. If a restart of the J2EE engine could solve the issue, how is that when i access the iview the BAPI is executed.

Thanks.

Manoj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 15, 2013 at 07:14 AM

    Well, a server restart did resolve the issue.

    Add comment
    10|10000 characters needed characters exceeded