Hi All,
Currently, I am working on a Warehouse Mobile Application customization. The requirement is that if any error occurs during the container closing process, the session should be logged out and the user should be redirected to the login page.
For this, I am working with the ProcessGuideExceptionHandler class, which handles errors in the Warehouse Mobile Application. When an error occurs, I am changing the mode and step to redirect the user to the login page.
The redirection to the login page is working as expected, but I am facing an issue when trying to log in again.
During debugging, I observed the following behavior:
- After the error occurs, the session is redirected to the login page.
- When I enter the username and password for the first time, the container is not retaining the entered username and password.
- It proceeds to validate the username and password, but since the values are empty, it builds the login page again.
- When I enter the username and password for the second time, the values are stored in the container correctly.
- It then validates the username and password successfully.
- After successful validation, the mode is changed from Login to Menu.
Additionally, if I enter an incorrect username or password, the process method is called and the execution flow appears to be correct. However, instead of handling the invalid credentials properly, it returns a "Root element is missing" error.
So, the main issues I am currently facing are:
- Username and password are not retained in the container during the first login attempt after redirecting from the error-handling process.
- When incorrect credentials are entered, the execution flow is correct, but it results in a "Root element is missing" error.
Could anyone please advise on what might be causing these issues or suggest the correct approach to reset the session and redirect the user to the login page?

Report
All responses (
Answers (