Skip to Content
0
Former Member
Jan 20, 2010 at 05:34 PM

Cardinality Error from WD when calling an Standard Enterprise Service

16 Views

Hello,

I dont know why when I run my WD application that is calling the enterprise service "PurchaseOrderByIdQueryResponse_In" I am getting the following error:

java.lang.NullPointerException: Setting related objects to empty collection not allowed for mandatory target role 'Item' of model

class 'pe.com.minsur.wd_po_v7.ecc_purchaseorder002qr.PurchaseOrder' with cardinality 'ONE_TO_MANY'

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session ApplicationSession(id=dd04241105e511dfc4bd0017a477042a, name=pe.com.minsur.wd_po_v7.wdpov7_app.Wdpov7_App). The causing exception is nested.

Caused by: java.lang.NullPointerException: Setting related objects to empty collection not allowed for mandatory target role 'Item' of model class 'pe.com.minsur.wd_po_v7.ecc_purchaseorder002qr.PurchaseOrder' with cardinality 'ONE_TO_MANY'

at com.sap.tc.cm.base.model.BaseGenericModelClass.setRelatedModelObjectsInternal(BaseGenericModelClass.java:561)

I dont know if I have to add some code.

Please help

Thanks & Regards

SU

Edited by: soauniverse on Jan 21, 2010 2:30 PM