Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Trouble with RAP & Spring
icon4.gif  Trouble with RAP & Spring [message #895555] Fri, 13 July 2012 10:10 Go to next message
Eclipse UserFriend
Hello,

I'm using http_//angelozerr.wordpress.com/about/eclipse_spring/ as starting point to learn RAP with Spring.

IDE: Eclipse Juno.

I got trouble on step 10 ( http_//angelozerr.wordpress.com/2012/04/16/eclipse_spring_step10/ ) while running RAP Client Mock Dao:

osgi> !SESSION 2012-07-16 13:09:43.178 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=ru_RU
Command-line arguments: -dev file:/home/sav/workspace_rap/.metadata/.plugins/org.eclipse.pde.core/RAP Client - Mock Dao/dev.properties -os linux -ws gtk -arch x86 -consoleLog -console -data /home/sav/workspace_rap/.metadata/.plugins/org.eclipse.rap.ui.launch/RAPClient-MockDao

!ENTRY org.eclipse.core.resources 2 10035 2012-07-16 13:09:59.551
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.datatools.enablement.oda.ws.ui 4 0 2012-07-16 13:09:59.905
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.datatools.enablement.oda.ws.ui.Activator.start() of bundle org.eclipse.datatools.enablement.oda.ws.ui.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1177)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.eclipse.swt.SWTError: Invalid thread access
at org.eclipse.ui.plugin.AbstractUIPlugin.createImageRegistry(AbstractUIPlugin.java:212)
at org.eclipse.ui.plugin.AbstractUIPlugin.getImageRegistry(AbstractUIPlugin.java:256)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImage(Activator.java:82)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImage(Activator.java:77)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImages(Activator.java:59)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.start(Activator.java:54)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 12 more
Root exception:
org.eclipse.swt.SWTError: Invalid thread access
at org.eclipse.ui.plugin.AbstractUIPlugin.createImageRegistry(AbstractUIPlugin.java:212)
at org.eclipse.ui.plugin.AbstractUIPlugin.getImageRegistry(AbstractUIPlugin.java:256)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImage(Activator.java:82)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImage(Activator.java:77)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.declareImages(Activator.java:59)
at org.eclipse.datatools.enablement.oda.ws.ui.Activator.start(Activator.java:54)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1177)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

...

org.eclipse.swt.SWTError: Not implemented [multiple displays]
at org.eclipse.swt.SWT.error(SWT.java:4387)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:757)
at org.eclipse.swt.widgets.Display.create(Display.java:898)
at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
at org.eclipse.swt.widgets.Display.<init>(Display.java:497)
at org.eclipse.swt.widgets.Display.<init>(Display.java:488)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:666)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at ru.webeffector.richclient.Application.start(Application.java:18)
at org.eclipse.rap.ui.internal.application.EntryPointApplicationWrapper.createUI(EntryPointApplicationWrapper.java:38)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)
at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)
at java.lang.Thread.run(Thread.java:662)
at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)

I will appreciate for your help.


[Updated on: Mon, 16 July 2012 05:41] by Moderator

Re: Trouble with RAP & Spring [message #895824 is a reply to message #895555] Mon, 16 July 2012 04:28 Go to previous messageGo to next message
Eclipse UserFriend
Angelo ( Angelo ZERR ),

can you give some comments ?

Is it possible to fix it ?
Re: Trouble with RAP &amp; Spring [message #896095 is a reply to message #895555] Tue, 17 July 2012 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Without studying the setup, I can only say that you get this error when
you try create a Display twice in the same session. Any suspicious "new
Display()" in your code?

Regards, Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Trouble with RAP &amp; Spring [message #896112 is a reply to message #896095] Tue, 17 July 2012 05:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,

Thanks for reply.

I built application as it was described in article without any own modifications.

Sample application was built on Eclipse Indigo.

Perhaps, there are differences between Eclipse Indigo & Juno ?

Regards,
Andrey

Re: Trouble with RAP &amp;amp; Spring [message #896361 is a reply to message #896112] Wed, 18 July 2012 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andrew,

> Perhaps, there are differences between Eclipse Indigo & Juno ?

One difference is that you have to add the new rwt.osgi bundle, but it
seems you already have this. Apart from this, I'm not aware of a
difference that could lead to this exception. It seems that Angelo's
example already uses the Juno version of RAP (1.5.0).

I'm afraid only Angelo can help you out, sorry...

Regards, Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Trouble with RAP &amp;amp; Spring [message #896536 is a reply to message #896361] Wed, 18 July 2012 14:27 Go to previous message
Eclipse UserFriend
Ralf,

anyway thanks for help.

I hope Angelo will give some feedback.

Regards,
Andrey
Previous Topic:Problem using RAP JFace with Apache Karaf and Felix
Next Topic:RedirectServlet and WAR
Goto Forum:
  


Current Time: Sat Jul 05 12:00:11 EDT 2025

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

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

Back to the top