cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for....

pradeep_kumar5
Active Participant
0 Kudos

Hi Experts,

Iam using adaptive webservice model, for this when i run the application it shows the below exception,

Connection IO Exception. Check nested exception for details. (Connection Exception; nested exception is:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'RequisitionItems' of model class 'com.sap.demo.sampleapplication.wd.models.samplemodel.RequisitionGetitems' with cardinality 'ONE' maintained).

[EXCEPTION]

com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Connection IO Exception. Check nested exception for details. (Connection Exception; nested exception is:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'RequisitionItems' of model class 'com.sap.demo.sampleapplication.wd.models.samplemodel.RequisitionGetitems' with cardinality 'ONE' maintained).

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.serializeRequest(SOAPTransportBinding.java:1705)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.writeSOAPRequestMessage(SOAPTransportBinding.java:257)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1280)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:960)

at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:915)

at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:76)

at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:73)

Thanks in advance

Regards,

Pradeep Kumar G

Accepted Solutions (0)

Answers (2)

Answers (2)

pradeep_kumar5
Active Participant
0 Kudos

Thanks abhinav,

but i can't understand what is myModel indicates in the below code?

Request_EmployeeManagementLocal_updateEmployee reqMod =

new Request_EmployeeManagementLocal_updateEmployee(myModel);

//Check empl model class will be there , create an object for that

Employee objEmpl=new Employee(myModel);

regards,

Pradeep Kumar

Abhinav_Sharma
Contributor
0 Kudos

Hi Pradeep,

myModel indicates the instance of the model that has been created. In your case it should be your case.

Can you paste your code, how your are calling webservice here?

Cheers

Abhinav

pradeep_kumar5
Active Participant
0 Kudos

Hai abhinav,

Thanks for reply,

Detailed description of my scenario:

Iam using Adaptive webservice model for accessing some data based on some input values.

In web service navigator it is working fine. when i give any input values based on that input the output records are available.

But when i used it in webdynpro java, it gives an exception and asks for manadatory input values but actually in that webservice there are no mandatory input values, ok i provided that input values based on that exception, then it gives the below exception

Connection IO Exception. Check nested exception for details. (Connection Exception; nested exception is:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'RequisitionItems' of model class 'com.sap.demo.sampleapplication.wd.models.samplemodel.RequisitionGetitems' with cardinality 'ONE' maintained).

[EXCEPTION]

com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Connection IO Exception. Check nested exception for details. (Connection Exception; nested exception is:

com.sap.tc.cm.base.exception.BaseModelRuntimeException: No object for mandatory target role 'RequisitionItems' of model class 'com.sap.demo.sampleapplication.wd.models.samplemodel.RequisitionGetitems' with cardinality 'ONE' maintained).

I used the code in the link you have mentioned, but it cannot solved my problem. Same exception is occurring.

Share whether you have any idea on this..

Regards,

Pradeep Kumar

Abhinav_Sharma
Contributor
0 Kudos

Hi Pradeep,

It seems like some cardinality issue to me.

It looks like there is no object available for the mandatory item. You can create the elements and then try

Refer this [link|;

Cheers

Abhinav