Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PartInitException when running RCP application outside of Eclipse (Plugin missing on export)
PartInitException when running RCP application outside of Eclipse (Plugin missing on export) [message #515455] Thu, 18 February 2010 14:41 Go to next message
Eclipse UserFriend
Hi,

I have a bit of a frustrating situation. I have an RCP application that runs perfectly fine from within Eclipse. When I export it, two of my views don't show up and I get a PartInitException. The plugin with the views is in the dependencies of the product I'm exporting so I don't understand why I'm getting this issue.


Exception

!ENTRY org.eclipse.ui 4 4 2010-02-18 14:26:30.375
!MESSAGE Exception in org.eclipse.ui.internal.FolderLayout.addView(String): org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.contribution.visualiser.views.Visualiser
!STACK 1
org.eclipse.ui.PartInitException: View descriptor not found: org.eclipse.contribution.visualiser.views.Visualiser
at org.eclipse.ui.internal.FolderLayout.addView(FolderLayout.ja va:75)
at rcpapp.Perspective.createInitialLayout(Perspective.java:39)
at org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Pers pective.java:817)
at org.eclipse.ui.internal.Perspective.createPresentation(Persp ective.java:271)
at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:157)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createPerspective(Workbench3xImplementation.java:55)
at org.eclipse.ui.internal.WorkbenchPage.createPerspective(Work benchPage.java:1666)
at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.jav a:2447)
at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:564)
at org.eclipse.ui.internal.tweaklets.Workbench3xImplementation. createWorkbenchPage(Workbench3xImplementation.java:39)
at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:758)
at org.eclipse.ui.internal.Workbench$21.runWithException(Workbe nch.java:1045)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at rcpapp.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!SUBENTRY 1 org.eclipse.ui 4 0 2010-02-18 14:26:30.375
!MESSAGE View descriptor not found: org.eclipse.contribution.visualiser.views.Visualiser


Code

IFolderLayout flayout = layout.createFolder( FI_LEFT, IPageLayout.BOTTOM, 0.75f, editorAreaId );

flayout.addView("org.eclipse.ui.views.ContentOutline");
flayout.addView("org.eclipse.contribution.visualiser.views.Visualiser ");
flayout.addView("org.eclipse.contribution.visualiser.views.Menu ");

It's just the two visualiser views that don't add. I tried to add the plugin to the configuration plugin list as well since I saw one post about that. But then the exported application doesn't run at all, I get a java.lang.IllegalStateException.

Thanks!

[Updated on: Thu, 18 February 2010 16:53] by Moderator

Re: PartInitException when running RCP application outside of Eclipse [message #515461 is a reply to message #515455] Thu, 18 February 2010 14:49 Go to previous messageGo to next message
Eclipse UserFriend
I should also mention the preferences for that plugin are not there either, so it's like it's just not getting included on export, even though it's in the dependency list.
Re: PartInitException when running RCP application outside of Eclipse [message #515481 is a reply to message #515461] Thu, 18 February 2010 17:06 Go to previous message
Eclipse UserFriend
I FINALLY figured it out after trying everything.

I hadn't correctly configured what needed to be included on the binary build of the plugin that was missing. On the build tab of plugin.xml, I hadn't checked under binary build, the icons folder (needed for views) and the plugin.xml file to include.

They are included when running from Eclipse, so it gets confusing when it doesn't run on the RCP app.

Anyways, hope this helps someone else Smile
Previous Topic:Product export - osgi.bundle missing
Next Topic:Extension details do not get filled automatically
Goto Forum:
  


Current Time: Fri Jun 20 04:17:55 EDT 2025

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

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

Back to the top