cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Model Error

Former Member
0 Kudos

hi,

In my webdynpro application I need to call RFC

So I created a model and called the required RFcs.

It was working fine.

When I had to call some more RFCs in the same application I reimported the model and added the Rfc's After reimporting When I deploy my application It is giving the following exception

<b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.apl.teset.reports.Reports' in scope APPLICATION_SCOPE with instanceId 'null'

failed to create or init instance of model 'com.apl.teset.reports.Reports' in scope APPLICATION_SCOPE with instanceId 'null'

[Ljava.lang.StackTraceElement;@42ad5d3b

</b>

What is the reason ?

Please help me to solve this issue?

Thanks in advance.

shami.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

After reimporting your model do u restart the J2ee engine or not?

Once reimport the model u need to restart the server and only u have to do the rebuild the application.

It displaying the error the instance is not created in your applcation.

Are you use the new Rfc's in your applcaition or not?

Or otherwise do those new rfc import serparately and try reimport into your existing appliation.

Try this

thanks,

Lohi.

Former Member
0 Kudos

hi,

Thanks for your immediate response.

I created a new webdynpro application and created a new model and imported the same rfc,restarted the server ,still it gives the same error.

"<b>failed to create or init instance of model 'com.apl.searchrfc.Searchrfcdemomodel' in scope APPLICATION_SCOPE with instanceId 'null' "</b>

Please help me to solve this issue.

Thanks in advance

Shami.

Former Member
0 Kudos

Hi,

Have you used that JCO name preoviously or thistime only the first time.

check your JCO names once if you pong them once those will show u success or not.

Or otheroptions use another Jco names and try once.

Thanks,

Lohi.

Former Member
0 Kudos

hi,

I have used the same Jco name previously for calling some other RFC .It is working fine.

But when I use it for that particular rfc it shows exception.

Should I create another JCo for tthat RFC alone ?

Because it should not affect the other rfcs, they are working fine.

please give me a good solution.

Thanks in advance,

Shami

Former Member
0 Kudos

Hello,

I have encounted the similar problem.

Can anybody give us a solution?

Regards,

Biqiang

Former Member
0 Kudos

Hello,

I solved this problem by just rebuild the project, and the deploy and run the application again. Everything is OK now.

You can try it.

Regards,

Biqiang