Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » could not evaluate javascript response: Invalid characters?(rap Invalid characters charset=unicode)
could not evaluate javascript response: Invalid characters? [message #546403] Mon, 12 July 2010 16:16 Go to next message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
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 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 #546476 is a reply to message #546410] Tue, 13 July 2010 02:39 Go to previous messageGo to next message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
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!
Re: could not evaluate javascript response: Invalid characters? [message #546496 is a reply to message #546476] Tue, 13 July 2010 06:54 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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!
Re: could not evaluate javascript response: Invalid characters? [message #546635 is a reply to message #546496] Tue, 13 July 2010 15:23 Go to previous messageGo to next message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
Thanks Ivan.

I am sorry to say that my RAP application still has the problem after using the patch.
Re: could not evaluate javascript response: Invalid characters? [message #547332 is a reply to message #546635] Fri, 16 July 2010 10:16 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi,

did you apply the patch yourself or did you try out the 1.2.2 release?

Regards,
Ben

lyp wrote:
> Thanks Ivan.
>
> I am sorry to say that my RAP application still has the problem after
> using the patch.


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: could not evaluate javascript response: Invalid characters? [message #547333 is a reply to message #547332] Fri, 16 July 2010 10:50 Go to previous message
lyp  is currently offline lyp Friend
Messages: 17
Registered: July 2010
Junior Member
Hi Benjamin,
Yes, I apply the patch myself.
The RAP version I am using is 1.2.0.
and I have not try to use the 1.2.2 release.
You mean the problem is solved in RAP 1.2.2 and RAP1.3.
I will try to check it in RAP1.3

Best Regards
Previous Topic:[Display].timerExec() not executed when expected (as RCP does)
Next Topic:Seems like the UICallBack mechanism get broken
Goto Forum:
  


Current Time: Tue Apr 23 13:00:04 GMT 2024

Powered by FUDForum. Page generated in 0.03402 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top