This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Uncaught SyntaxError: Unexpected token <

 
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?
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Boost this thread!