Error

5 views
Skip to first unread message

Behnil

unread,
Dec 8, 2009, 1:03:06 PM12/8/09
to vogella
Hi guys,

when I create a simple RCP project, all is OK. I can run it (it's only
a window with one opened editor). But the problems becomes when I
create .product file a try to lunch from it like in tutorial:

http://www.vogella.de/articles/RichClientPlatform/article.html

I get an error like this:

!SESSION 2009-12-08 18:54:39.495
-----------------------------------------------
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.zcu.kiv.bundleViewer.product
Command-line arguments: -product cz.zcu.kiv.bundleViewer.product -
data D:\Eclipse\Workspace/../runtime-prdl.product -dev file:D:/Eclipse/
Workspace/.metadata/.plugins/org.eclipse.pde.core/prdl.product/
dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.ui 4 0 2009-12-08 18:54:41.553
!MESSAGE Unable to create editor ID
cz.zcu.kiv.bundleViewer.editor.bundlesEditor: The editor class could
not be instantiated. This usually indicates a missing no-arg
constructor or that the editor's class name was mistyped in
plugin.xml.
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/ui/views/properties/
IPropertySheetEntry
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension
(RegistryStrategyOSGI.java:170)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension
(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension
(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension
(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension
(WorkbenchPlugin.java:259)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor
(EditorDescriptor.java:235)
at org.eclipse.ui.internal.EditorManager.createPart
(EditorManager.java:845)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:606)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible
(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select
(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select
(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart
(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:
1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:778)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:638)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2854)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:
2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:
2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2701)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2685)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2668)
at cz.zcu.kiv.bundleViewer.ApplicationWorkbenchAdvisor.postStartup
(ApplicationWorkbenchAdvisor.java:54)
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.zcu.kiv.bundleViewer.Application.start(Application.java:26)
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)
... 62 more

But my class Represented editor has a no-arg constructor. Even when I
run it without .product file, it run correctly. Please, help me:'(

Behnil

unread,
Dec 10, 2009, 8:09:52 AM12/10/09
to vogella
Nobody has an idea? I found out that this problem has to do wit GEF
framework. There are two cases:

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.

Lars Vogel

unread,
Dec 10, 2009, 1:47:11 PM12/10/09
to vog...@googlegroups.com
Hi,

please see: http://www.vogella.de/faq.html#ineedhelp

Best regards, Lars

2009/12/10 Behnil <beh...@centrum.cz>:
> --
>
> You received this message because you are subscribed to the Google Groups "vogella" group.
> To post to this group, send email to vog...@googlegroups.com.
> To unsubscribe from this group, send email to vogella+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vogella?hl=en.
>
>
>



--
Lars
http://www.vogella.de - Tutorials about Java, Eclipse and Web programming
http://www.twitter.com/vogella - Lars on Twitter
Reply all
Reply to author
Forward
0 new messages