[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Missing required bundle org.eclipse.ui.forms_0.0.0 (and ...views)

I must admit that the log entries are not helpful here. A bug should be filed for that alone.

Try clearing the configuration when you launch (via the Configuration tab in the launch config). Sometimes PDE gets confused when dependencies change (this warrants a bug too, but I think it's a known issue).

Try adding -debug to your command line (program argument, not VM arg).
This sometimes causes runtime to spit out more info about plug-in dependency issues, though if the launch config validated OK, it doesn't sound like that's the problem.


Also try -consoleLog, which directs log entries to the console, making them more visible.

Nick


Paul Keyser wrote:

Well, it'd be a strange bug indeed if it could detect that "I am now running from inside eclipse, so I will refuse to load the view; I am now running in a separate address-space, so I will allow the view to load." And my entire implementation of adding the ResNav is this, at line 32 in the createInitialLayout() method of my IPerspectiveFactory implementation:


        layout.addView(
            IPageLayout.ID_RES_NAV,
            IPageLayout.BOTTOM,
            0.7f, // because BOTTOM, ratio of the editor-area to this view
            IPageLayout.ID_EDITOR_AREA);

I think my implementation of IPerspectiveFactory as a whole must be correct since the perspective is avaiable at runtime, and operates correctly (has the other views, where I placed them) -- except in lacking the ResNav when launched from within eclipse -- and the ResNav view *IS* present when luanched as a product, or when the exported product is run.

The whole log file is at the end (anonymized by substituting biz.buz.bng), showing that the exception indeed takes place on line 32. All I learned from debugging through that is that, at ViewFactory.createView(line 151) the ViewRegistry returns null for the id "org.eclipse.ui.views.ResourceNavigator" ... no clue why!

Anyway, "Validate" (the button on the "plugins" tab ofthe launch-config, right?) says "no problems found".

It's just very confusing to have the RCP be so erratic in its behavior. As in my other note, to which you have kindly replied (though we no solution yet), the RCP seems to behave differently depending on how it's launched, which makes testing a real pain.

thanks,
Paul

!SESSION 2005-10-25 14:01:21.516 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -application biz.buz.bng.saw2.saw2 -pdelaunch
Command-line arguments: -application biz.buz.bng.saw2.saw2 -data C:\0-UIMA\eclipse\runtime-SAW-II_Application -dev file:C:/0-UIMA/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/SAW-II_Application/dev.properties -pdelaunch -os win32 -ws win32 -arch x86


!ENTRY org.eclipse.ui 4 4 2005-10-25 14:01:23.630
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView: org.eclipse.ui.PartInitException: Could not create view: org.eclipse.ui.views.ResourceNavigator


!ENTRY org.eclipse.ui 4 4 2005-10-25 14:01:23.650
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView: org.eclipse.ui.PartInitException: Could not create view: org.eclipse.ui.views.ResourceNavigator
!STACK 1
org.eclipse.ui.PartInitException: Could not create view: org.eclipse.ui.views.ResourceNavigator
at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.java:151)
at org.eclipse.ui.internal.LayoutHelper.createView(LayoutHelper.java:159)
at org.eclipse.ui.internal.PageLayout.createView(PageLayout.java:449)
at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:353)
at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:340)
at biz.buz.bng.saw2.QueryPerspectiveFactory.createInitialLayout(QueryPerspectiveFactory.java:32)


at org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Perspective.java:696)

at org.eclipse.ui.internal.Perspective.createPresentation(Perspective.java:230)

at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:127)
at org.eclipse.ui.internal.WorkbenchPage.createPerspective(WorkbenchPage.java:1375)


at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.java:2071)
at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:509)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:678)


at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Workbench.java:669)

at org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Workbench.java:1282)

at org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbench.java:1223)
at org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWindow(WorkbenchConfigurer.java:190)


at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:706)

at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at biz.buz.bng.saw2.Application.run(Application.java:22)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)


at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
!SUBENTRY 1 org.eclipse.ui 4 0 2005-10-25 14:01:23.650
!MESSAGE Could not create view: org.eclipse.ui.views.ResourceNavigator