• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uncaught SyntaxError: Unexpected token <

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic