cancel
Showing results for 
Search instead for 
Did you mean: 

failed to create or init instance of model

former_member185879
Active Contributor
0 Kudos

Hello All,

i am facing an issue in Web Dynpro Component.

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model SalesModel in scope APPLICATION_SCOPE with instanceId 'null' .

Searched in SDN and got the followings like:

1. Increase Jco Pool Size

2. SP should be 16.

3. Check abap dumps.

My Server is SP19 and NWDS 7.0.14.

Jco i have kept like, 200, 100, 500, 1000.

No Dumps in ABAP system.

Can anyone suggest me what i need to do for the same. I tried all the above but it doesn't work for me.

Regards

Nizamudeen SM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member185879
Active Contributor
0 Kudos

Issue with RFC. Only it is solved, it started working for me.

Thanks a lot for your inputs.

Regards

Nizamudeen SM

former_member185879
Active Contributor
0 Kudos

Issue with RFC. Only it is solved, it started working for me.

Thanks a lot for your inputs.

Regards

Nizamudeen SM

Former Member
0 Kudos

Hi Nizam,

Try disconnecting the model object after usage of model object.

in finnaly{} block i.e after try and catch.

XXXModel objModel =

(XXXXModel)WDModelFactory.getModelInstance(XXXXModel.class);

objModel.disconnectIfAlive();

Or else try changing the scope to TASK_SCOPE.

Expand the model from the project->NWDS->WD pres ->Model ->XX_Input object

Right click +Edit ->Go to properties Tab -> change the property "modelinstance_default scope" to TASK_SCOPE.

Regards,

Lavanya.G

former_member185879
Active Contributor
0 Kudos

Hi Lavanya,

1. After executing each RFC's i have used disconnectIfAlive();

2. I have changed from APPLICATION_SCOPE to TASK_SCOPE. Now also i am getting the same error.

I will try the code in final() method.

But the error trace also displays like:

Caused by: com.sap.tc.webdynpro.progmodel.model.api.WDModelException: failed to create instance of model 'com.arteriatech.sf.salesrfcmodel.model.SalesModel'

at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getNewModelInstance(WDModelFactory.java:392)

at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getOrCreateModelInstanceFromScopeMaintainer(WDModelFactory.java:329)

... 49 more

Caused by: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND

Can you give some more inputs on the same.

Regards

Nizamudeen SM

p330068
Active Contributor
0 Kudos

Hi Nizamudeen,

Please haev a loot at below threads for similar issues :

Check the JCO used for your model in content administration >> web dynpro and test the JCO destination. Also verify your code all the steps you have used for executing RFC or not.

Hope it will helps

Regards

Arun

former_member192152
Active Participant
0 Kudos

Check the access permissions of the key system used to configure the METADATA of JCOs. And restart your WebAS.

regards,

Angelo