I have a gwt application with a many menus. Runs on tomkat.
After loading the main page of the application I kill the session by session manager or clean my browser cache.
After that, I try to go on a menu item to create any form and getting an error message in the browser console:
Uncaught SyntaxError: Unexpected token <
I understand that some part of the code can not upload, resulting script is not true.
Can I somehow catch this error?
I am not really sure I understand your question. Can you please rephrase?
What is you kill the session by session manager?
Do you mean to say you load the app, clear the browser cache, the app page is still visible, and then you try to access the menu and run into this exception?
Also, can you copy paste the full stack trace?
Kill session through session manager - imitation of session timeout(invalidate). Ie on next request to server I need to get StatusCodeException and do a redirect to login page. But before the next request is necessary to open some form to be requested. But after invalidate of session some part of the code can not upload and I get an error.