Forum Stats

  • 3,838,564 Users
  • 2,262,383 Discussions
  • 7,900,687 Comments

Discussions

Oracle ADF search Form random Issue

Vijay2020
Vijay2020 Member Posts: 17 Red Ribbon
edited Jun 28, 2022 4:31AM in JDeveloper and ADF

Hi All,

We are using a ADF application developed using Jdeveloper 12.2.1.4.0 Version. We are having one search form, which will display result according to the input parameters and userId(Passing value through custom query listener). On some random scenarios we are not getting the results even through the user is having a access. Eg. We are searching one data and navigating to one form from search page. Instead of clicking go back button for navigation to search form if we click browser back button then the issue is happening. We are not getting data while searching.

We have added some test messages which will display in the popup while clicking on search button. when the data is not coming at that time the popup is also not displaying. no response from the page at that time.

In the log, we can see the below message :

[AdminServer] [WARNING] [ADF_FACES-30174] [oracle.adfinternal.view.faces.monitoring.UserActivityInfoUtils] [host: XXX] [nwaddr: XXX] [tid: [ACTIVE].ExecuteThread: '84' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: XXX] [ecid: d0d51b0e-9cb7-4965-b5a1-c09c46d9940b-00002a75,0] [APP: em] [partition-name: DOMAIN] [DSID: 0000O6^ohndEWNNqyGzW6G1YhJ4F00000A] [tenant-name: GLOBAL] [TARGET: /XXX/XXX/AdminServer/em] [TARGET_TYPE: j2ee_application] [LOG_FILE: /XX/XXX/oracle/config/domains/chp_domain/servers/AdminServer/logs/AdminServer-diagnostic.log] An invalid or null contextId was provided when logging userActivity information for the previous request.

Kindly help me on fixing this issue.

Thanks & Regards,

Vijay

Tagged:

Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,585 Red Diamond

    Don't use the browser back button in AJAX based applications. ADF uses AJAX (partial rendering) a lot. ADF doesn't like the browser back button as it removes data from the internal browser stack that the framework does not know about. You see the old page, but ADF doesn't know about the navigation and the buttons are not working on the page you see.


    There are some things (I don't call them solutions as they have their drawbacks) like https://andrejusb.blogspot.com/2011/07/how-to-handle-web-browser-buttons-in.html and http://www.abhinandanpanda.com/2014/06/adf-browser-back-button-with-bounded.html

    If you google for 'adf browser back' you'll find more.


    Timo

  • Vijay2020
    Vijay2020 Member Posts: 17 Red Ribbon

    Hi Timo,

    Thanks for sharing the details. We will check those suggested links for the fix.

    Thanks & Regards,

    Vijay

  • Vijay2020
    Vijay2020 Member Posts: 17 Red Ribbon

    Hi Timo,

    We tried with suggested links but its not working for us. We are still facing search issue. Its a very random issue and whenever the issue happened we are not seeing any messages in the weblogic server log file also.When we are facing the search issue, we can see that the search button custom query listener is also not working. We tried printing some values while clicking on search button. Whenever search form is working we are seeing the print messages but when search is not working then the print messages are also not there. So we guess, At some point of time browser loses its connection with server but we are not sure on how to fix this issue.

    Thanks & Regards,

    Vijay

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 38,585 Red Diamond

    As I said, browser back button isn't easy to handle. It's easier to simply don't allow it :)


    Timo

  • dvohra21
    dvohra21 Member Posts: 14,618 Gold Crown

    The example is not using proper back navigation:

    We are searching one data and navigating to one form from search page. Instead of clicking go back button for navigation to search form if we click browser back button then the issue is happening. We are not getting data while searching.

    Is the following interpretation ok? If so, why click back button?

    1. User searches for data in Search form
    2. Search result is displayed
    3. User clicks on a form link in the search result
    4. The form page is displayed
    5. User clicks on the configured back navigation to go back to search result page and navigation is ok
    6. If user clicks on the browser back button to go back to search result page navigation is not ok
  • Vijay2020
    Vijay2020 Member Posts: 17 Red Ribbon

    Hi @dvohra21 ,

    Thanks for your reply. Actually it was one of the scenario where the search is not working. Even if we are not clicking the back button, we are facing the same issue. We are not sure on what is causing the issue. But on Random scenario, the users are facing the issue. When the search is not working, if we logout and login again then its working.

    Thanks & Regards,

    Vijay