Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » No layout registered with default id(I encounter a java.lang.IllegalArgumentException when running a simple RAP application.)
No layout registered with default id [message #544792] Mon, 05 July 2010 14:21 Go to next message
Ionut is currently offline IonutFriend
Messages: 4
Registered: July 2010
Junior Member
Hello,

I am trying to run a simple (i.e. hello world) RAP application which contains a view with a label.
When I try to run the application I am encountering the following error:

osgi> 2010-07-05 16:56:31.593:INFO:org.mortbay.log:Logging to STDERRorg.mortbay.log via org.mortbay.log.Slf4jLog
2010-07-05 16:56:31.671:INFO::jetty-6.1.x
2010-07-05 16:56:32.140:INFO::Started SelectChannelConnector@0.0.0.0:1532
!SESSION 2010-07-05 16:56:30.421 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -dev file:D:/work/eclipse_workspaces/.metadata/.plugins/org.eclipse.pde.core/Cat Shelter Manager/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console -consolelog

!ENTRY org.eclipse.rap.ui 4 0 2010-07-05 16:56:48.781
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: no layout registered with default id (LayoutRegistry.DEFAULT_LAYOUT_ID) or no layout activated over branding extension.
	at org.eclipse.rap.ui.interactiondesign.layout.ElementBuilder.<init>(ElementBuilder.java:96)
	at org.eclipse.rap.internal.design.example.builder.DummyBuilder.<init>(DummyBuilder.java:23)
	at org.eclipse.rap.internal.design.example.managers.CoolBarManager.<init>(CoolBarManager.java:140)
	at org.eclipse.rap.internal.design.example.business.BusinessPresentationFactory.createCoolBarManager(BusinessPresentationFactory.java:31)
	at org.eclipse.ui.internal.WorkbenchWindow.createCoolBarManager2(WorkbenchWindow.java:3742)
	at org.eclipse.jface.window.ApplicationWindow.addCoolBar(ApplicationWindow.java:288)
	at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:347)
	at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation.createWorkbenchWindow(Workbench3xImplementation.java:29)
	at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workbench.java:1676)
	at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:1674)
	at org.eclipse.ui.internal.Workbench$16.runWithException(Workbench.java:954)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
	at org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExceptions(StartupThreading.java:55)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:952)
	at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1799)
	at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1735)
	at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:188)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:790)
	at org.eclipse.ui.internal.Workbench$25.runWithException(Workbench.java:1341)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:32)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:110)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1336)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2315)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2206)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.jface.internal.databinding.realmadapter.RealmAdapter.run(RealmAdapter.java:44)
	at org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault(RealmAdapterHook.java:48)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:427)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at catshelter.CatEntrypoint.createUI(CatEntrypoint.java:18)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:244)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:113)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)


I am running RAP version 1.3 on Eclipse Helios. I have successfully ran the org.eclipse.rap.demo application so I don't think it is a problem with the RAP installation. Does anyone have an advice for this issue?

Thank you,
Ionut.
Re: No layout registered with default id [message #544941 is a reply to message #544792] Tue, 06 July 2010 07:18 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

could you post the plugin.xml of your example project?

Ralf

Ionut wrote:
> Hello,
>
> I am trying to run a simple (i.e. hello world) RAP application which
> contains a view with a label.
> When I try to run the application I am encountering the following error:
>
> osgi> 2010-07-05 16:56:31.593:INFO:org.mortbay.log:Logging to
> STDERRorg.mortbay.log via org.mortbay.log.Slf4jLog
> 2010-07-05 16:56:31.671:INFO::jetty-6.1.x
> 2010-07-05 16:56:32.140:INFO::Started SelectChannelConnector@0.0.0.0:1532
> !SESSION 2010-07-05 16:56:30.421
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_20
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -dev
> file:D:/work/eclipse_workspaces/.metadata/.plugins/org.eclip se.pde.core/Cat
> Shelter Manager/dev.properties -os win32 -ws win32 -arch x86 -consoleLog
> -console -consolelog
>
> !ENTRY org.eclipse.rap.ui 4 0 2010-07-05 16:56:48.781
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.IllegalArgumentException: no layout registered with default id
> (LayoutRegistry.DEFAULT_LAYOUT_ID) or no layout activated over branding
> extension.
> at
> org.eclipse.rap.ui.interactiondesign.layout.ElementBuilder.<init >(ElementBuilder.java:96)
>
> at
> org.eclipse.rap.internal.design.example.builder.DummyBuilder . <init>(DummyBuilder.java:23)
>
> at
> org.eclipse.rap.internal.design.example.managers.CoolBarMana ger. <init>(CoolBarManager.java:140)
>
> at
> org.eclipse.rap.internal.design.example.business.BusinessPre sentationFactory.createCoolBarManager(BusinessPresentationFa ctory.java:31)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.createCoolBarManager 2(WorkbenchWindow.java:3742)
>
> at
> org.eclipse.jface.window.ApplicationWindow.addCoolBar(Applic ationWindow.java:288)
>
> at
> org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:347)
> at
> org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:29)
>
> at
> org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1676)
> at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:1 674)
> at
> org.eclipse.ui.internal.Workbench$16.runWithException(Workbe nch.java:954)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:187)
> at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
> at
> org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExc eptions(StartupThreading.java:55)
>
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:952)
>
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1799)
>
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1735)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:188)
>
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:790)
>
> at
> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1341)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
>
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:187)
> at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
> at
> org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
>
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1336)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2315)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 06)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.jface.internal.databinding.realmadapter.RealmAda pter.run(RealmAdapter.java:44)
>
> at
> org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault( RealmAdapterHook.java:48)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:427)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
> at catshelter.CatEntrypoint.createUI(CatEntrypoint.java:18)
> at
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:244)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:113)
>
> at java.lang.Thread.run(Unknown Source)
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.jav a:102)
>
> I am running RAP version 1.3 on Eclipse Helios. I have successfully ran
> the org.eclipse.rap.demo application so I don't think it is a problem
> with the RAP installation. Does anyone have an advice for this issue?
>
> Thank you,
> Ionut.
Re: No layout registered with default id [message #544999 is a reply to message #544792] Tue, 06 July 2010 10:26 Go to previous messageGo to next message
Ionut is currently offline IonutFriend
Messages: 4
Registered: July 2010
Junior Member
Hello,

Here is the plugin.xml code:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.rap.ui.entrypoint">
      <entrypoint
            class="catshelter.CatEntrypoint"
            id="catshelter.entrypoint1"
            parameter="cats">
      </entrypoint>
   </extension>
   <extension
         point="org.eclipse.ui.perspectives">
      <perspective
            class="catshelter.CatManagerPerspective"
            id="catshelter.perspective1"
            name="Main Perspective">
      </perspective>
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <view
            class="catshelter.CatShelterView"
            id="catshelter.view1"
            name="CatShelter"
            restorable="true">
      </view>
   </extension>

</plugin>


I am following the Chapter 4 of the book Eclipse Rich Ajax Platform from FirstPress.

Thank you for your help,
Ionut.
Re: No layout registered with default id [message #545020 is a reply to message #544999] Tue, 06 July 2010 12:39 Go to previous messageGo to next message
Ionut is currently offline IonutFriend
Messages: 4
Registered: July 2010
Junior Member
Hello,

I have also tried following the HelloWorld example from http:// help.eclipse.org/helios/index.jsp?topic=/org.eclipse.rap.hel p/help/html/getting-started/launcher.html and I received the same error at runtime.

I have found bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=311156 on Bugzilla which seems related to my issue but there are no updates to this bug.
Re: No layout registered with default id [message #545149 is a reply to message #544792] Tue, 06 July 2010 18:57 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
Hi,
did you switched the presentation with the preferences? If yes please
delete your browser cookies and try to reload the application.

If not, please file a bug at bugzilla. It would be good if you can
provide a sample project (with launch config) to reproduce the error.

Thanks.

Regards Holger

On 2010-07-05 16:21:08 +0200, Ionut <judge4life@playful.com> said:

> Hello,
>
> I am trying to run a simple (i.e. hello world) RAP application which
> contains a view with a label.
> When I try to run the application I am encountering the following error:
>
> osgi> 2010-07-05 16:56:31.593:INFO:org.mortbay.log:Logging to
> STDERRorg.mortbay.log via org.mortbay.log.Slf4jLog
> 2010-07-05 16:56:31.671:INFO::jetty-6.1.x
> 2010-07-05 16:56:32.140:INFO::Started SelectChannelConnector@0.0.0.0:1532
> !SESSION 2010-07-05 16:56:30.421
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_20
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -dev
> file:D:/work/eclipse_workspaces/.metadata/.plugins/org.eclip se.pde.core/Cat
> Shelter Manager/dev.properties -os win32 -ws win32 -arch x86
> -consoleLog -console -consolelog
>
> !ENTRY org.eclipse.rap.ui 4 0 2010-07-05 16:56:48.781
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.IllegalArgumentException: no layout registered with default
> id (LayoutRegistry.DEFAULT_LAYOUT_ID) or no layout activated over
> branding extension.
> at
> org.eclipse.rap.ui.interactiondesign.layout.ElementBuilder.<init >(ElementBuilder.java:96)
at
>
> org.eclipse.rap.internal.design.example.builder.DummyBuilder . <init>(DummyBuilder.java:23)
at
>
> org.eclipse.rap.internal.design.example.managers.CoolBarMana ger. <init>(CoolBarManager.java:140)
at
>
> org.eclipse.rap.internal.design.example.business.BusinessPre sentationFactory.createCoolBarManager(BusinessPresentationFa ctory.java:31)
at
>
> org.eclipse.ui.internal.WorkbenchWindow.createCoolBarManager 2(WorkbenchWindow.java:3742)
at
>
> org.eclipse.jface.window.ApplicationWindow.addCoolBar(Applic ationWindow.java:288)
at
>
> org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:347)
> at
> org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchWindow(Workbench3xImplementation.java:29)
at
>
> org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1676)
> at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:1 674)
> at org.eclipse.ui.internal.Workbench$16.runWithException(Workbe nch.java:954)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at
>
> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:187)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
> at
> org.eclipse.ui.internal.StartupThreading.runWithWorkbenchExc eptions(StartupThreading.java:55)
at
>
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:952)
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1799)
at
>
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1735)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:188)
at
>
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:790)
at
>
> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1341)
> at
> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:32)
at
>
> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:187)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:1019)
> at
> org.eclipse.ui.internal.StartupThreading.runWithoutException s(StartupThreading.java:110)
at
>
> org.eclipse.ui.internal.Workbench.init(Workbench.java:1336)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2315)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 06)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
>
> org.eclipse.jface.internal.databinding.realmadapter.RealmAda pter.run(RealmAdapter.java:44)
at
>
> org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault( RealmAdapterHook.java:48)
at
>
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:427)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
> at catshelter.CatEntrypoint.createUI(CatEntrypoint.java:18)
> at
> org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at
>
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:244)
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:113)
at
>
> java.lang.Thread.run(Unknown Source)
> at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.jav a:102)
>
> I am running RAP version 1.3 on Eclipse Helios. I have successfully ran
> the org.eclipse.rap.demo application so I don't think it is a problem
> with the RAP installation. Does anyone have an advice for this issue?
>
> Thank you,
> Ionut.


--
-----------------------------------------

http://eclipsesource.com

http://twitter.com/eclipsesource
Re: No layout registered with default id [message #545196 is a reply to message #545149] Wed, 07 July 2010 06:32 Go to previous messageGo to next message
Ionut is currently offline IonutFriend
Messages: 4
Registered: July 2010
Junior Member
Hello,

Can you please tell me where can I check if the presentation with the preferences is switched?

Thank you,
Ionut.
Re: No layout registered with default id [message #545211 is a reply to message #545196] Wed, 07 July 2010 07:38 Go to previous messageGo to next message
Holger Staudacher is currently offline Holger StaudacherFriend
Messages: 166
Registered: July 2009
Senior Member
You can do this only manualy within the preferences page. So, I gues
you didn't do this. Did you start your application with the bundle
org.eclipse.rap.design.example?

Regards Holger

On 2010-07-07 08:32:09 +0200, Ionut <judge4life@playful.com> said:

> Hello,
>
> Can you please tell me where can I check if the presentation with the
> preferences is switched?
>
> Thank you,
> Ionut.


--
-----------------------------------------

http://eclipsesource.com

http://twitter.com/eclipsesource
Re: No layout registered with default id [message #550895 is a reply to message #544792] Wed, 04 August 2010 15:08 Go to previous message
Miro Mising name is currently offline Miro Mising nameFriend
Messages: 5
Registered: August 2010
Junior Member
Hi,

Open Run Configuration of your RAP application and then select the Bundles tab. Unselect the rap.demo bundles. This should fix your problem.

Cheers,
Miro
Previous Topic:Menu not showin Radio or Check option.
Next Topic:Disabling select row in table on mouse right click
Goto Forum:
  


Current Time: Mon Oct 07 05:32:16 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