Support Article
IllegalStateException: The following session is not valid
SA-53386
Summary
User is able to log in to the iOS application. However, when performing any action, the user is logged out of the application.
Error Messages
|ERROR||[HTTP ClientStore Request] Incorrect HTTP response status: 401
[WebContainer : 18] [ ] [ ] [ ] (web.impl.WebStandardImpl) ERROR - 127.0.0.1: Unhandled error in ETier invocation
java.lang.IllegalStateException: The following session is not valid! 4qLgYPSjjAt2ObctjzyfzNK
Steps to Reproduce
- Log in to the application.
- Perform an action.
Root Cause
The allowDirectCommunication JSON flag was set to false.
The application referred to IBM WebSphere Application Server (WAS) authentication and Lightweight Third Party Authentication (LTPA) token was used. Out-of-the-box Pega Mobile Client does not support LTPA token.
Resolution
The allowDirectCommunication flag configuration is based on access group settings. The 'Access group requires a connection for portions of the application' checkbox is located in the Advanced tab of the access group in the Offline configuration section.
As a local-change, check the 'Access group requires a connection for portions of the application' option.
Published October 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.