Currently, I am working with a GAE application that utilizes a session for storing information. Alongside this, there is an Android app in place which interacts with the GAE by sending requests and subsequently using the session when receiving responses. Presently, I am attempting to create a JavaScript client that mimics the functionality of the Android app. This JavaScript client uses XMLHttpRequest to send Ajax requests (with CORS enabled) to the GAE application. Interestingly, while the first request executes without any issues, the second request encounters a NullPointerException when attempting to access an object stored in the session.
It's worth noting that both of these requests originate from the same page - one upon loading the page and another triggered by a user clicking a button.
Would anyone happen to have insights into what might be causing this issue?