cancel
Showing results for 
Search instead for 
Did you mean: 

JCO.AbapEception NOT_FOUND NOT_FOUND

Former Member
0 Kudos

Hi

I am calling Sap's HR_ESS_WHO_PROG_PICT_URI from

our java web dynpro project. In our dev and qa environments

everything works great, but in production, I am getting 

JCO.AbapEception NOT_FOUND NOT_FOUND

exception.

When I debug this FM, I see that the debugger skips this
FM all together and I get the JCO.AbapException on the portal.
There is no dump found in ST22.

Any Idea?

Does this FM need a special role or authorization in R3?

regards
yuval

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

1. First I tried to reimport my RFC from R3 Dev. Nothing found.

2. Then I tried to reimport my RFC from R3 QA . I received

     a list of field descriptions that were modified in R3.

3. I reimported my RFC from QA and made sure the same
    field descriptions are copied back to R3 Dev.

4. I deployed the project. Everything turned out ok.

5. I assume the portal has no special exception for this kind

    of error where field descriptions differ, that is why I received

    a  NullPointerException NOT_FOUND, NOT_FOUND.

6.FYI.

Regards

Yuval

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

check the jco destination.

Former Member
0 Kudos

Hi John

I have also checkjed the jco destinations and tested

them. Everything seems ok.

Question: when I debug the portal I get a null pointer exception

on the model instance before I call the execute.

regards

yuval

junwu
Active Contributor
0 Kudos

what happened recently?

any change to the RFC?

Former Member
0 Kudos

Hi

No, the model dumps with NullPointerException in webdynpro

before I call the method 'execute'. It seems as though the

framework fails to create the object at runtime.

What is interesting is the fact that this has never happened

before (tested on three different environments).

regards

yuval

junwu
Active Contributor
0 Kudos

what's the detail error message?

Former Member
0 Kudos

Hi

JCO.AbapEception NOT_FOUND NOT_FOUND

exception

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

 

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

        at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getModelInstance(WDModelFactory.java:155)

        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass._associatedModel(DynamicRFCModelClass.java:203)

        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.associatedModelClassInfo(DynamicRFCModelClass.java:217)

        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.elementIndexForFrontendName(DynamicRFCModelClass.java:1359)

        at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsString(DynamicRFCModelClass.java:664)

  

Regards

junwu
Active Contributor
0 Kudos

can you post the code?

did you use the wizard to generated the code for model execution

Former Member
0 Kudos

let me just add that in a previous call to the model

I end my call with

input.disconnectifalive();

now:

hr_ess_who_Prog_get_Pict_Uri_Input input = new hr_ess_who_Prog_get_Pict_Uri_Input();

wdContext.nodehr_ess_who_Prog_get_Pict_Uri_Input().bind(input);

input.setPerNr(myPernr); // it is here that i get NullPointerException of input

input.execute();

wdContext.nodehr_ess_who_Prog_get_Pict_Uri_Output().invalidate();

nothing special aboutr this code...

former_member197348
Active Contributor
0 Kudos

Hello yuval,

I don't see any issue in the code.

And moreover it is working already in DEV and QA.

It seems to me that the issue might be with  RFC or JCos.

Can you please make sure the below two things?

  1. Check your JCos users in PROD system.
  2. Invalidate web Dynpro cache in Portal

System Administration ->System Configuration-> Web Dynpro Console

Goto Invalidate ARFC Cache ->Invalidation of ARFC Metadata Cache

Better to go option 2: Enter dictionary name.

Even if it does not solve your issue, it can at least provide more accurate error message.

Regards,

Siva

Former Member
0 Kudos

Hi Siva

Thank you for your help.

Unfortunately, this did not do the trick.

regards

Yuval

junwu
Active Contributor
0 Kudos

if possible, generate the code using wizard, don't manually do it.

former_member197348
Active Contributor
0 Kudos

Hello Yuval,

I assume that there is no change in error message too.

I assume you are using the same JCos and users in QA and PROD.

Can you please try to login with the JCo users to ECC and run the RFC to see whether they are authorized to execute the RFC or not?

Thanks,

Siva

Former Member
0 Kudos

Hi,

This could be due to RFC library. Is the RFC library patch level same on all the systems? If not, please download the latest RFC patch level on PROD. Also, check the below links where this was already discussed:

http://scn.sap.com/thread/2020712

Hope this help.

BR,

Balajii

Former Member
0 Kudos

Hi

We compared the patch levels and discovered that prod and qa have

the same level.

Any idea?

Regards

Yuval