Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » multithreading
multithreading [message #81658] Sun, 06 April 2008 15:09 Go to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi ,

I have problem here with recieveing an UI update for my table with check,
from asynchronous server thread call.
I got this Error line on my browser

======================================
Could not evaluate javascript response:

'undefined' is null or not an object

org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );
var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
wm.findWidgetById( "w37" );w.setItemMetrics( 0, 0, 0, 0, 77 );
w.setItemCount( 1 );w.setDefaultColumnWidth( 79 );
var w = wm.newWidget( "w54", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w37" ), 0' );
w.setTexts( [ "192.168.1.177" ] );w.update();var w = wm.findWidgetById(
"w39" );w.setVisibility( true );
var w = wm.findWidgetById( "w40" );w.setVisibility( true
);org.eclipse.swt.LabelUtil.setAlignment( wm.findWidgetById( "w41" ),
"right" );
qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.EventU til.resumeEventHandling();
org.eclipse.swt.FontSizeCalculation.measureStrings( [ [ 32927568,
"192.168.1.177", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans
Unicode", "sans-serif" ], 11, false, false, -1 ] ] );
=====================
Any suggestion to solve it

Regrads
Salwa
Re: multithreading [message #81736 is a reply to message #81658] Mon, 07 April 2008 07:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

could you please provide us a little snippet to reproduce the problem,
since it's difficult to work on a good guess basis?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Salwa [mailto:salwa.moh@gmail.com]
Bereitgestellt: Sonntag, 6. April 2008 17:10
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: multithreading
Betreff: multithreading


Hi ,

I have problem here with recieveing an UI update for my table with
check, from asynchronous server thread call.
I got this Error line on my browser

======================================
Could not evaluate javascript response:

'undefined' is null or not an object

org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" ); var
wm = org.eclipse.swt.WidgetManager.getInstance();var w =
wm.findWidgetById( "w37" );w.setItemMetrics( 0, 0, 0, 0, 77 );
w.setItemCount( 1 );w.setDefaultColumnWidth( 79 ); var w = wm.newWidget(
"w54", "", false, null, 'org.eclipse.swt.widgets.TableItem',
'wm.findWidgetById( "w37" ), 0' ); w.setTexts( [ "192.168.1.177" ]
);w.update();var w = wm.findWidgetById( "w39" );w.setVisibility( true );
var w = wm.findWidgetById( "w40" );w.setVisibility( true
);org.eclipse.swt.LabelUtil.setAlignment( wm.findWidgetById( "w41" ),
"right" );
qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.EventU til.resumeEv
entHandling();
org.eclipse.swt.FontSizeCalculation.measureStrings( [ [ 32927568,
"192.168.1.177", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida
Sans Unicode", "sans-serif" ], 11, false, false, -1 ] ] );
===================== Any suggestion to solve it

Regrads
Salwa
Re: multithreading [message #81779 is a reply to message #81736] Mon, 07 April 2008 10:54 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Sorry :(,

Actually my scenario is like this:
-I have a table on my splash screen , which need to be updated by the
server.
Therefore am using getDisplay().asyncExec(new Runnable() { on my update
method in the splash screen shell that is called by the server.

I guessed before that the problem is with mutlithreading in RAP,but I
think my problem is with check table, as when i removed the SWT.Check
everythings goes right.

And this is the exception am having

======================================
Could not evaluate javascript response:

'undefined' is null or not an object

org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );
var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
wm.findWidgetById( "w37" );w.setItemMetrics( 0, 0, 0, 0, 77 );
w.setItemCount( 1 );w.setDefaultColumnWidth( 79 );
var w = wm.newWidget( "w54", "", false, null,
'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w37" ), 0' );
w.setTexts( [ "192.168.1.177" ] );w.update();var w = wm.findWidgetById(
"w39" );w.setVisibility( true );
var w = wm.findWidgetById( "w40" );w.setVisibility( true
);org.eclipse.swt.LabelUtil.setAlignment( wm.findWidgetById( "w41" ),
"right" );
qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.EventU til.resumeEventHandling();
org.eclipse.swt.FontSizeCalculation.measureStrings( [ [ 32927568,
"192.168.1.177", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans
Unicode", "sans-serif" ], 11, false, false, -1 ] ] );
=====================
I hope that i makes things clear

Regards
Salwa
Re: multithreading [message #81794 is a reply to message #81779] Mon, 07 April 2008 12:54 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Salwa,

it looks like your probelm is the same as in this thread:
"Problem with TableViewer and SWT.CHECK"

Cheers,
Rüdiger


Salwa wrote:
> Sorry :(,
> Actually my scenario is like this:
> -I have a table on my splash screen , which need to be updated by the
> server.
> Therefore am using getDisplay().asyncExec(new Runnable() { on my update
> method in the splash screen shell that is called by the server.
> I guessed before that the problem is with mutlithreading in RAP,but I
> think my problem is with check table, as when i removed the SWT.Check
> everythings goes right.
>
> And this is the exception am having
> ======================================
> Could not evaluate javascript response:
>
> 'undefined' is null or not an object
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3" );
> var wm = org.eclipse.swt.WidgetManager.getInstance();var w =
> wm.findWidgetById( "w37" );w.setItemMetrics( 0, 0, 0, 0, 77 );
> w.setItemCount( 1 );w.setDefaultColumnWidth( 79 );
> var w = wm.newWidget( "w54", "", false, null,
> 'org.eclipse.swt.widgets.TableItem', 'wm.findWidgetById( "w37" ), 0' );
> w.setTexts( [ "192.168.1.177" ] );w.update();var w = wm.findWidgetById(
> "w39" );w.setVisibility( true );
> var w = wm.findWidgetById( "w40" );w.setVisibility( true
> );org.eclipse.swt.LabelUtil.setAlignment( wm.findWidgetById( "w41" ),
> "right" );
> qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.EventU til.resumeEventHandling();
>
> org.eclipse.swt.FontSizeCalculation.measureStrings( [ [ 32927568,
> "192.168.1.177", [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida
> Sans Unicode", "sans-serif" ], 11, false, false, -1 ] ] );
> =====================
> I hope that i makes things clear
>
> Regards Salwa
>
>
Previous Topic:how to populate WizardPage at view time?
Next Topic:call for help . setShowStatusLine seems not working outside the preWindowOpen
Goto Forum:
  


Current Time: Fri Apr 26 07:41:49 GMT 2024

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

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

Back to the top