• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uncaught SyntaxError: Unexpected token <

 
Andrey Hohlov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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 <
__gwtInstallCode
$ tryInstall
onReadyStateChange
(anonymous function)
apply
entry0
(anonymous function)

I understand that some part of the code can not upload, resulting script is not true.
Can I somehow catch this error?
 
Maneesh Godbole
Saloon Keeper
Posts: 11178
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Andrey Hohlov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Also, can you copy paste the full stack trace?

This is full stack trace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic