Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Could not evaluate javascript response(Could not evaluate javascript response)
Could not evaluate javascript response [message #900367] Mon, 06 August 2012 12:42 Go to next message
Eclipse UserFriend
Hello,

Our RAP application is built on RAP 1.4.2

We have a few users who are experiencing the following error:

Could not evaluate javascript response:
Error: TypeError: a is undefined

Script: var wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.findWidgetById( "w1619" );w.dispose();var w = wm.findWidgetById( "w1620" );w.dispose();var w = wm.findWidgetById( "w1621" );w.dispose();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "74" );var w = wm.findWidgetById( "w116" );w.setEnabled( true );var w = wm.findWidgetById( "w117" );w.setEnabled( true );var w = wm.findWidgetById( "w152" );w.setEnabled( true );var w =

......


fileName: https://<ip address>/app/isf?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-754676235
lineNumber: 170
Debug: off
Request: org.eclipse.swt.events.widgetSelected=w298&w1.cursorLocation.x=227&w1.cursorLocation.y=299&uiRoot=w1&requestCounter


This is an intermittent error which we cannot reproduce and I do not know how to debug this error.

Any pointers/help will be much appreciated.

Thanks,

Nuruddin
Re: Could not evaluate javascript response [message #900435 is a reply to message #900367] Tue, 07 August 2012 01:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
without a way to reproduce the issue we couldn't help much. You could
turn DEBUG client variant ON in order to get a little bit more
informative error message.
Best,
Ivan

On 8/6/2012 7:42 PM, Nuruddin Hakimjee wrote:
> Hello,
>
> Our RAP application is built on RAP 1.4.2
>
> We have a few users who are experiencing the following error:
>
> Could not evaluate javascript response:
> Error: TypeError: a is undefined
>
> Script: var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w1619" );w.dispose();var w = wm.findWidgetById(
> "w1620" );w.dispose();var w = wm.findWidgetById( "w1621"
> );w.dispose();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "74"
> );var w = wm.findWidgetById( "w116" );w.setEnabled( true );var w =
> wm.findWidgetById( "w117" );w.setEnabled( true );var w =
> wm.findWidgetById( "w152" );w.setEnabled( true );var w =
> .....
>
>
> fileName: https://<ip
> address>/app/isf?custom_service_handler=org.eclipse.rwt.internal.resources.JSLibraryServiceHandler&hash=H-754676235
> lineNumber: 170
> Debug: off
> Request:
> org.eclipse.swt.events.widgetSelected=w298&w1.cursorLocation.x=227&w1.cursorLocation.y=299&uiRoot=w1&requestCounter
>
>
> This is an intermittent error which we cannot reproduce and I do not
> know how to debug this error.
>
> Any pointers/help will be much appreciated.
>
> Thanks,
>
> Nuruddin

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Could not evaluate javascript response [message #901646 is a reply to message #900435] Mon, 13 August 2012 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Hello Ivan,

Thank you for the response. Is line number 170 referring to JSLibraryServiceHandler? And if so where would I find that file? Whenever the error occurs, it is always on line 170.

Thanks,

Nuruddin
Re: Could not evaluate javascript response [message #901672 is a reply to message #901646] Tue, 14 August 2012 01:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
JSLibraryServiceHandler was (removed in RAP 1.5) a service handler that
delivered the framework javascript library on the application start. The
error at line 170 is not in the JSLibraryServiceHandler file, but in the
javascript returned by it.
Best,
Ivan

On 8/13/2012 10:46 PM, Nuruddin Hakimjee wrote:
> Hello Ivan,
>
> Thank you for the response. Is line number 170 referring to
> JSLibraryServiceHandler? And if so where would I find that file?
> Whenever the error occurs, it is always on line 170.
>
> Thanks,
>
> Nuruddin

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Could not evaluate javascript response [message #903180 is a reply to message #901672] Wed, 22 August 2012 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Hello Ivan,

Sorry for the delayed response. I was able to figure out that the error is coming from the table.js but I have been unable to narrow it down any further.

How would I turn on debugging? I would need to do turn it on the production server as I am unable to duplicate this issue locally.

Thanks,

Nuruddin
Re: Could not evaluate javascript response [message #903679 is a reply to message #903180] Fri, 24 August 2012 17:03 Go to previous message
Eclipse UserFriend
Hi,

the only way to turn on debug mode is to set the system property
"org.eclipse.rwt.clientLibraryVariant" to "DEBUG".

Obviously, the crash happens in response to a selection event. It's
unlikely that it happens at random, there will be certain preconditions.
You could try to find the pattern behind the crashes. What user action
provokes the error? Clicking on a certain button, a table item? What
happens in the selection listeners in this case? Is a widget being
disposed that is part of the selection... something like this. If you
can find a suspicious pattern that might help to prepare a workaround.

It's easier to track down those kind of errors with the new protocol in
RAP 1.5.

HTH, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Workspace in RAP
Next Topic:Input masking on Text
Goto Forum:
  


Current Time: Wed Jul 23 13:46:26 EDT 2025

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

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

Back to the top