Problem with running RCP with GEF editor [message #502668] |
Wed, 09 December 2009 11:04 |
Jan Krakora Messages: 477 Registered: December 2009 Location: Prague |
Senior Member |
|
|
Hi guys,
I have a simple RCP application including only one plugin. It's a editor extends GraphicalEditor. I open it in ApplicationWorkbenchAdvisor like this:
public void postStartup() {
// TODO Auto-generated method stub
super.postStartup();
try {
IWorkbenchPage page = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
page.openEditor(new MyInput("kokot"), MyEditor.ID,
false);
} catch (Exception e) {
e.printStackTrace();
}
}
When I try it run by clicking on the launch button in Overview page in plugin.xml editor, it's OK. There is a window with blank opened editor.
But when I create .product for this plugin, try it run, it crashes and I get error message like this:
!SESSION 2009-12-09 10:55:01.381 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
Framework arguments: -product cz.behnil.pokus.product
Command-line arguments: -product cz.behnil.pokus.product -data D:\Eclipse\Workspace/../runtime-Debilek.product -dev file:D:/Eclipse/Workspace/.metadata/.plugins/org.eclipse.pde.core/Debilek.product/dev.properties -os win32 -ws win32 -arch x86 -consoleLog
!ENTRY org.eclipse.osgi 4 0 2009-12-09 10:55:03.206
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/ui/views/properties/IPropertySheetEntry
at cz.behnil.pokus.ApplicationWorkbenchAdvisor.postStartup(ApplicationWorkbenchAdvisor.java:34)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2343)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
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(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at cz.behnil.pokus.Application.start(Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.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(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.ClassNotFoundException: org.eclipse.ui.views.properties.IPropertySheetEntry
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 21 more
Please, help me
|
|
|
Re: Problem with running RCP with GEF editor [message #502766 is a reply to message #502668] |
Wed, 09 December 2009 16:18 |
Eclipse User |
|
|
|
Originally posted by: rjl.third-monday.com
Well, you're definitely missing an eclipse plugin in some dependency
list: org/eclipse/ui/views/properties/IPropertySheetEntry . I'm
guessing the plugin is org.eclipse.ui.views .
But you don't mention how you run the application after you create the
..product file. Do you run it the same as before or run the new product
definition or do you export it first or?
On 12/09/2009 05:04 AM, behnil@centrum.cz wrote:
> Hi guys,
>
> I have a simple RCP application including only one plugin. It's a editor
> extends GraphicalEditor. I open it in ApplicationWorkbenchAdvisor like
> this:
>
> public void postStartup() {
> // TODO Auto-generated method stub
> super.postStartup();
> try {
> IWorkbenchPage page = PlatformUI.getWorkbench()
> .getActiveWorkbenchWindow().getActivePage();
> page.openEditor(new MyInput("kokot"), MyEditor.ID,
> false);
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
>
> When I try it run by clicking on the launch button in Overview page in
> plugin.xml editor, it's OK. There is a window with blank opened editor.
> But when I create .product for this plugin, try it run, it crashes and I
> get error message like this:
>
> !SESSION 2009-12-09 10:55:01.381
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_17
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
> Framework arguments: -product cz.behnil.pokus.product
> Command-line arguments: -product cz.behnil.pokus.product -data
> D:\Eclipse\Workspace/../runtime-Debilek.product -dev
> file:D:/Eclipse/Workspace/.metadata/.plugins/org.eclipse.pde .core/Debilek.product/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog
>
> !ENTRY org.eclipse.osgi 4 0 2009-12-09 10:55:03.206
> !MESSAGE Application error
> !STACK 1
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/views/properties/IPropertySheetEntry
> at
> cz.behnil.pokus.ApplicationWorkbenchAdvisor.postStartup(Appl icationWorkbenchAdvisor.java:34)
>
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2343)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
(snip)
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.ui.views.properties.IPropertySheetEntry
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:494)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> ... 21 more
>
> Please, help me :(
|
|
|
Re: Problem with running RCP with GEF editor [message #502838 is a reply to message #502668] |
Wed, 09 December 2009 20:46 |
Shawn Spiars Messages: 22 Registered: July 2009 |
Junior Member |
|
|
Try this:
1) Open the "Run Configurations..." dialog
2) Create a new "Eclipse Application" launch configuration
3) Select "Run a Product" and select your product in the combo box
4) From the "Plug-ins" tab select the "Deselect All" button, then select
your workspace plug-in, then select "Add Required Plug-ins"
5) You may need to manually select the missing plug-in that contains the
class org/eclipse/ui/views/properties/IPropertySheetEntry
I hope this helps.
Shawn Spiars
behnil@centrum.cz wrote:
> Hi guys,
>
> I have a simple RCP application including only one plugin. It's a editor
> extends GraphicalEditor. I open it in ApplicationWorkbenchAdvisor like
> this:
>
> public void postStartup() {
> // TODO Auto-generated method stub
> super.postStartup();
> try {
> IWorkbenchPage page = PlatformUI.getWorkbench()
> .getActiveWorkbenchWindow().getActivePage();
> page.openEditor(new MyInput("kokot"), MyEditor.ID,
> false);
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
>
> When I try it run by clicking on the launch button in Overview page in
> plugin.xml editor, it's OK. There is a window with blank opened editor.
> But when I create .product for this plugin, try it run, it crashes and I
> get error message like this:
>
> !SESSION 2009-12-09 10:55:01.381
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_17
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=cs_CZ
> Framework arguments: -product cz.behnil.pokus.product
> Command-line arguments: -product cz.behnil.pokus.product -data
> D:\Eclipse\Workspace/../runtime-Debilek.product -dev
> file:D:/Eclipse/Workspace/.metadata/.plugins/org.eclipse.pde .core/Debilek.product/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog
>
> !ENTRY org.eclipse.osgi 4 0 2009-12-09 10:55:03.206
> !MESSAGE Application error
> !STACK 1
> java.lang.NoClassDefFoundError:
> org/eclipse/ui/views/properties/IPropertySheetEntry
> at
> cz.behnil.pokus.ApplicationWorkbenchAdvisor.postStartup(Appl icationWorkbenchAdvisor.java:34)
>
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2343)
> 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 cz.behnil.pokus.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)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.ui.views.properties.IPropertySheetEntry
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:494)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:398)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> ... 21 more
>
> Please, help me :(
|
|
|
|
|
Re: Problem with running RCP with GEF editor [message #503330 is a reply to message #503314] |
Fri, 11 December 2009 22:30 |
Eclipse User |
|
|
|
Originally posted by: rjl.third-monday.com
This is a problem (I believe) with the delta pack. I had the same sort
of problem (and worse) when I installed the delta pack either in the
main eclipse directory structure in the 'dropins' folder.
Remove the delta pack plugins/features if you can. You'll also have to
remove references to them in your
$home/.eclipse/org.eclipse.platform_3_5_0_xxxx. Honestly, I just
removed that entire directory structure (starting from
org.eclipse.platform_3_5_0_xxx).
Look at these bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=248578
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278086
r
On 12/11/2009 12:42 PM, behnil@centrum.cz wrote:
> Well, I'll describe the problem more detailed. There are two situations:
>
> 1) When I use a target platform with this settings
> - deltapack added as local folder
> - Eclipse RCP SDK & GEF SDK (both of them added as software sites)
>
> then I have 181 plugins available (90 from the deltapack and 91 from
> software sites). And what is important, there is the
> org.eclipse.ui.views plugin among them.
> I this case, all works perfect.
>
> 2) When I use a target platform with this settings
> - deltapack added as local folder
> - Eclipse RCP SDK & GEF SDK (both of them downloaded from their official
> sites and added as local folder)
>
> then I have 158 plugins available and there isn't the
> org.eclipse.ui.views plugin among them!
> When I run my product now, it crashes with the error above.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds