could not evaluate javascript response: Invalid characters? [message #546403] |
Mon, 12 July 2010 16:16  |
Eclipse User |
|
|
|
Hi all experts,
I wrote a RAP application and deployed it to tomcat running on a Linux OS.
The problem is that when I restart the service and try to start a new sesssion, The IE explorer get the error message that "could not evaluate javascript response: Invalid characters"
The problem cannot be reproduced every time when restart the service.
When this problem occurs, I reopen a new IE explorer, and it works fine.
I saved the error page and tracked the source code of the html file, finding that the parameter of charset might be probably wrong:
"<meta http-equiv="Content-Type" content="text/html;charset=unicode" />".
The parameter "charset" there was set to "unicode" while in cases the application runs well it is set to "UTF-8".
Could you please have a glance on this problem?
Thanks and Best Regards!
|
|
|
Re: could not evaluate javascript response: Invalid characters? [message #546410 is a reply to message #546403] |
Mon, 12 July 2010 16:35   |
Eclipse User |
|
|
|
Hi,
it sounds like this bug:
298181: [encoding problem] encoding of the initial html page is not
specified, and thus is not always utf-8
https://bugs.eclipse.org/bugs/show_bug.cgi?id=298181
which has been fixed in RAP 1.3M5 and backported to maintenance branch
1.2.2.
Which version of RAP are you using?
Best,
Ivan
On 07/12/2010 7:16 PM, lyp wrote:
> Hi all experts,
>
> I wrote a RAP application and deployed it to tomcat running on a Linux
> OS.
>
> The problem is that when I restart the service and try to start a new
> sesssion, The IE explorer get the error message that "could not
> evaluate javascript response: Invalid characters"
> The problem cannot be reproduced every time when restart the service.
> When this problem occurs, I reopen a new IE explorer, and it works fine.
>
> I saved the error page and tracked the source code of the html file,
> finding that the parameter of charset might be probably wrong:
> "<meta http-equiv="Content-Type" content="text/html;charset=unicode" />".
>
> The parameter "charset" there was set to "unicode" while in cases the
> application runs well it is set to "UTF-8".
>
> Could you please have a glance on this problem?
>
> Thanks and Best Regards!
>
|
|
|
|
Re: could not evaluate javascript response: Invalid characters? [message #546496 is a reply to message #546476] |
Tue, 13 July 2010 06:54   |
Eclipse User |
|
|
|
For the needs of bug 298181 only JSLibraryServiceHandler has been
updated, yes.
If you still have problems after the patch, please feel free to open a
separate bug with a snippet to reproduce it.
Best,
Ivan
On 07/13/2010 5:39 AM, lyp wrote:
> Thanks a lot, Ivan
> The RAP version I am using is 1.2.0
>
> I will use this patch and try to verify it.
> And only update the class of JSLibraryServiceHandler.java?
> RWTDelegate.java is not need to update?
>
> Best Regards!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03666 seconds