Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » two dialogs in one method PROBLEM?!
two dialogs in one method PROBLEM?! [message #60455] Mon, 19 November 2007 12:03 Go to next message
Eclipse UserFriend
Originally posted by: benjamin.wolff.web.de

hi!

i'm experiencing a pretty annoying problem.

when i open 2 different dialogs during one method call the browser shows
the following error:

Could not evaluate javascript response:

TypeError: t has no properties

org.eclipse.swt.EventUtil.suspendEventHandling();var wm =
org.eclipse.swt.WidgetManager.getInstance();var t = wm.findWidgetById(
"w310" );t.setDefaultButton( null );wm.dispose( "w316" );wm.dispose(
"w315" );
...<output omitted>...



the exception which is thrown looks like this:



org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1480)
at org.eclipse.swt.SWT.error(SWT.java:1400)
at org.eclipse.swt.SWT.error(SWT.java:1371)
at
org.eclipse.rwt.internal.lifecycle.UICallBackManager.notifyU IThreadEnd(UICallBackManager.java:139)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.cleanUp(RWTL ifeCycle.java:136)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:93)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:59)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:178)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:170)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:135)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:82 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.access$0(RWTLifeCycleServiceHandlerSync.java:48)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync$1.service(RWTLifeCycleServiceHandlerSync.java:43)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:68 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)




this example code creates the error. it's the same behaviour if i use
other dialogs that pop up:

benachrichtigungButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent e) {
MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
}
});



any idea??
Re: two dialogs in one method PROBLEM?! [message #60935 is a reply to message #60455] Tue, 20 November 2007 08:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

which version do you use? This should be fixed in CVS-Head. See bugzilla
entry #206322.


Ciao
Frank


"Ben W." <benjamin.wolff@web.de> schrieb im Newsbeitrag
news:23829f955e840577ed0a6a891ce5c9a1$1@www.eclipse.org...
> hi!
>
> i'm experiencing a pretty annoying problem.
>
> when i open 2 different dialogs during one method call the browser shows
> the following error:
>
> Could not evaluate javascript response:
>
> TypeError: t has no properties
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var wm =
> org.eclipse.swt.WidgetManager.getInstance();var t = wm.findWidgetById(
> "w310" );t.setDefaultButton( null );wm.dispose( "w316" );wm.dispose(
> "w315" );
> ..<output omitted>...
>
>
>
> the exception which is thrown looks like this:
>
>
>
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:1480)
> at org.eclipse.swt.SWT.error(SWT.java:1400)
> at org.eclipse.swt.SWT.error(SWT.java:1371)
> at
> org.eclipse.rwt.internal.lifecycle.UICallBackManager.notifyU IThreadEnd(UICallBackManager.java:139)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.cleanUp(RWTL ifeCycle.java:136)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.execute(RWTL ifeCycle.java:93)
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$1.r un(LifeCycleServiceHandler.java:59)
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:178)
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:170)
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:135)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:82 )
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.access$0(RWTLifeCycleServiceHandlerSync.java:48)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync$1.service(RWTLifeCycleServiceHandlerSync.java:43)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleBlockControl$ ServiceHandlerProcessor.run(RWTLifeCycleBlockControl.java:68 )
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olRunnable.run(RWTLifeCycleThreadPool.java:38)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleThreadPool$Po olWorker.run(RWTLifeCycleThreadPool.java:66)
>
>
>
>
> this example code creates the error. it's the same behaviour if i use
> other dialogs that pop up:
>
> benachrichtigungButton.addSelectionListener(new SelectionAdapter(){
> public void widgetSelected(SelectionEvent e) {
> MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
> MessageDialog.openInformation(parentComp.getShell(), "test", "bla");
> }
> });
>
>
>
> any idea??
>
Re: two dialogs in one method PROBLEM?! [message #60959 is a reply to message #60935] Tue, 20 November 2007 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benjamin.wolff.web.de

hm, i use the target which is available on the RAP Update Site as
described here: http://www.eclipse.org/rap/downloads/

i already used CVS to get the demo.feature project. but could someone
explain how to use "cvs heads" and what are they?? :P

thx
Re: two dialogs in one method PROBLEM?! [message #61001 is a reply to message #60959] Tue, 20 November 2007 09:12 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi Ben,

simply checkout the latest RAP bundles from the eclipse CVS (where you
got the demo-feature-project from) and put them into your workspace next
to your own plugins. "CVS head" stands for "latest version" - stupid
geek slang :-)

Regards,
Stefan.

Ben W. schrieb:
> hm, i use the target which is available on the RAP Update Site as
> described here: http://www.eclipse.org/rap/downloads/
>
> i already used CVS to get the demo.feature project. but could someone
> explain how to use "cvs heads" and what are they?? :P
>
> thx
>
Re: two dialogs in one method PROBLEM?! [message #61054 is a reply to message #61001] Tue, 20 November 2007 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benjamin.wolff.web.de

ah ok.

so i assume the project automatically uses the plugins i checked out to my
workspace instead of the plugins from the target platform? are they
exported when i use the pde exporter (in the feature) to deploy the app?
are they updated automatically if changes in the cvs happen or do i have
to do this manually?

questions, questions and more questions =)))

thx for ur help ;P
Re: two dialogs in one method PROBLEM?! [message #61147 is a reply to message #61054] Tue, 20 November 2007 10:38 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Ben,

it's almost the same as having the plugins in your target platform.
Which plugin is used is specified in your launch configuration but
normally the workspace plugins are prefered. Changes from CVS are not
automatically merged but you just need to right-click the projects and
do Team > Update to get the latest version.

Greets
Benny

Ben W. wrote:
> ah ok.
>
> so i assume the project automatically uses the plugins i checked out to
> my workspace instead of the plugins from the target platform? are they
> exported when i use the pde exporter (in the feature) to deploy the app?
> are they updated automatically if changes in the cvs happen or do i have
> to do this manually?
> questions, questions and more questions =)))
>
> thx for ur help ;P
>
Re: two dialogs in one method PROBLEM?! [message #61170 is a reply to message #61147] Tue, 20 November 2007 11:36 Go to previous message
Eclipse UserFriend
Originally posted by: benjamin.wolff.web.de

it worked, the problem is gone, together with a few other problems =).
happy again :)
Previous Topic:Handle runtime exceptions
Next Topic:limitations of RAP compared to PDE
Goto Forum:
  


Current Time: Sun Oct 06 06:56:18 GMT 2024

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

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

Back to the top