File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes Uncaught SyntaxError: Unexpected token < Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Uncaught SyntaxError: Unexpected token <" Watch "Uncaught SyntaxError: Unexpected token <" New topic

Uncaught SyntaxError: Unexpected token <

Andrey Hohlov

Joined: Jan 30, 2012
Posts: 4
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 <
$ tryInstall
(anonymous function)
(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

Joined: Jul 26, 2007
Posts: 10733

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?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Andrey Hohlov

Joined: Jan 30, 2012
Posts: 4
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.
jQuery in Action, 3rd edition
subject: Uncaught SyntaxError: Unexpected token <
It's not a secret anymore!