Skip to Content
0
Former Member
May 27, 2005 at 10:34 AM

Need help interpreting an RFC Web dynpro exception

21 Views

Hi,

The following code shows how I set the content of a wdp model:


Z_Zmm_Tax_Calc2_Input TaxCode2 = new Z_Zmm_Tax_Calc2_Input();
wdContext.nodeZ_ZMM_TAX_CALC2().bind(TaxCode2);

TaxCode2.addItems(new Zzz_Tax_Calc());

It's the last line of the code that causes the exception

When executing the model I get the following.

Error stacktrace:

java.lang.ClassCastException: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCException: The Relation must reference ModelClass instances of Type , not of !

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.checkRelatedModelObject(DynamicRFCModelClass.java:727)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.addRelatedModelObject(DynamicRFCModelClass.java:802)

at com.alum.miromodel.Z_Zmm_Tax_Calc2_Input.addItems(Z_Zmm_Tax_Calc2_Input.java:170)

at com.alum.miro.Cust.initTaxCalc2(Cust.java:911)

Can anyone tell me what it means?

BR

Olof Tronnberg