Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » (no subject)
(no subject) [message #673510] Mon, 23 May 2011 22:12 Go to next message
Eclipse UserFriend
Originally posted by: Roy Benjamin

in Helios, doing GMF dev, I'm getting a most odd cast exception during init.

at: 122 in org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl

// Obtain or create and register package XMLNamespacePackageImpl
theXMLNamespacePackage =
(XMLNamespacePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI)
instanceof XMLNamespacePackageImpl ?
EPackage.Registry.INSTANCE.get(eNS_URI) : new XMLNamespacePackageImpl());

Not sure what to do about this one....

Thanks
Roy



java.lang.ClassCastException:
org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespaceFactoryImpl
incompatible with org.eclipse.stp.sca.csa.namespace.NamespaceFactory
at
org.eclipse.stp.sca.csa.namespace.impl.NamespaceFactoryImpl.init(NamespaceFactoryImpl.java:47)
at
org.eclipse.stp.sca.csa.namespace.NamespaceFactory.<clinit>(NamespaceFactory.java:33)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at
org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.<init>(NamespacePackageImpl.java:113)
at
org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.init(NamespacePackageImpl.java:149)
at
org.eclipse.stp.sca.csa.namespace.NamespacePackage.<clinit>(NamespacePackage.java:228)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at
org.eclipse.stp.sca.csa.impl.CsaPackageImpl.init(CsaPackageImpl.java:983)
at org.eclipse.stp.sca.csa.CsaPackage.<clinit>(CsaPackage.java:227)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.eclipse.stp.sca.csa.util.CsaSwitch.<init>(CsaSwitch.java:53)
at
org.eclipse.stp.sca.csa.util.CsaAdapterFactory$1.<init>(CsaAdapterFactory.java:80)
at
org.eclipse.stp.sca.csa.util.CsaAdapterFactory.<init>(CsaAdapterFactory.java:80)
at
org.eclipse.stp.sca.csa.provider.CsaItemProviderAdapterFactory.<init>(CsaItemProviderAdapterFactory.java:91)
at
org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.fillItemProviderFactories(CsaDiagramEditorPlugin.java:105)
at
org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.createAdapterFactory(CsaDiagramEditorPlugin.java:97)
at
org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.start(CsaDiagramEditorPlugin.java:72)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
at java.security.AccessController.doPrivileged(AccessController.java:251)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
at
org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:390)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at
org.eclipse.gmf.runtime.common.core.service.Service$ProviderDescriptor.getProvider(Service.java:159)
at
org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService$ProviderDescriptor.provides(EditPartService.java:96)
at
org.eclipse.gmf.runtime.common.core.service.Service.safeProvides(Service.java:860)
at
org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.getUncachedProviders(ExecutionStrategy.java:89)
at
org.eclipse.gmf.runtime.common.core.service.Service.getProviders(Service.java:563)
at
org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:68)
at
org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:652)
at
org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.execute(EditPartService.java:217)
at
org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.createRootEditPart(EditPartService.java:249)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.configureGraphicalViewer(DiagramEditor.java:831)
at
com.nordgren.trading.clessar.diagram.part.ClessarDiagramEditor.configureGraphicalViewer(CassandraDiagramEditor.java:285)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createGraphicalViewer(DiagramEditor.java:806)
at
org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:171)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createPartControl(DiagramEditor.java:1580)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:328)
at
org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1510)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
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:1254)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
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:2860)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
at
com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.openEditor(OpenKeyspaceHandler.java:151)
at
com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.execute(OpenKeyspaceHandler.java:237)
at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at
org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
at
org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
at
org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
CassandraDiagramEditorPlugin.createImageRegistry()
(no subject) [message #673712 is a reply to message #673510] Tue, 24 May 2011 13:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
Roy,

It sounds like the STP project has conflicting package registration with
the one provided by EMF's core. Maybe you should avoid installing it or
avoid ncluding it in your runtime. You should report the problem to
them as well.


Roy Benjamin wrote:
> in Helios, doing GMF dev, I'm getting a most odd cast exception during
> init.
>
> at: 122 in
> org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl
>
> // Obtain or create and register package XMLNamespacePackageImpl
> theXMLNamespacePackage =
> (XMLNamespacePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI)
> instanceof XMLNamespacePackageImpl ?
> EPackage.Registry.INSTANCE.get(eNS_URI) : new XMLNamespacePackageImpl());
>
> Not sure what to do about this one....
>
> Thanks
> Roy
>
>
>
> java.lang.ClassCastException:
> org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespaceFactoryImpl
> incompatible with org.eclipse.stp.sca.csa.namespace.NamespaceFactory
> at
> org.eclipse.stp.sca.csa.namespace.impl.NamespaceFactoryImpl.init(NamespaceFactoryImpl.java:47)
>
> at
> org.eclipse.stp.sca.csa.namespace.NamespaceFactory.<clinit>(NamespaceFactory.java:33)
>
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
> at
> org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.<init>(NamespacePackageImpl.java:113)
>
> at
> org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.init(NamespacePackageImpl.java:149)
>
> at
> org.eclipse.stp.sca.csa.namespace.NamespacePackage.<clinit>(NamespacePackage.java:228)
>
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
> at
> org.eclipse.stp.sca.csa.impl.CsaPackageImpl.init(CsaPackageImpl.java:983)
> at org.eclipse.stp.sca.csa.CsaPackage.<clinit>(CsaPackage.java:227)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
> at org.eclipse.stp.sca.csa.util.CsaSwitch.<init>(CsaSwitch.java:53)
> at
> org.eclipse.stp.sca.csa.util.CsaAdapterFactory$1.<init>(CsaAdapterFactory.java:80)
>
> at
> org.eclipse.stp.sca.csa.util.CsaAdapterFactory.<init>(CsaAdapterFactory.java:80)
>
> at
> org.eclipse.stp.sca.csa.provider.CsaItemProviderAdapterFactory.<init>(CsaItemProviderAdapterFactory.java:91)
>
> at
> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.fillItemProviderFactories(CsaDiagramEditorPlugin.java:105)
>
> at
> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.createAdapterFactory(CsaDiagramEditorPlugin.java:97)
>
> at
> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.start(CsaDiagramEditorPlugin.java:72)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
>
> at
> java.security.AccessController.doPrivileged(AccessController.java:251)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:390)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>
> at
> org.eclipse.gmf.runtime.common.core.service.Service$ProviderDescriptor.getProvider(Service.java:159)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService$ProviderDescriptor.provides(EditPartService.java:96)
>
> at
> org.eclipse.gmf.runtime.common.core.service.Service.safeProvides(Service.java:860)
>
> at
> org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.getUncachedProviders(ExecutionStrategy.java:89)
>
> at
> org.eclipse.gmf.runtime.common.core.service.Service.getProviders(Service.java:563)
>
> at
> org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:68)
>
> at
> org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:652)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.execute(EditPartService.java:217)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.createRootEditPart(EditPartService.java:249)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.configureGraphicalViewer(DiagramEditor.java:831)
>
> at
> com.nordgren.trading.clessar.diagram.part.ClessarDiagramEditor.configureGraphicalViewer(CassandraDiagramEditor.java:285)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createGraphicalViewer(DiagramEditor.java:806)
>
> at
> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:171)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createPartControl(DiagramEditor.java:1580)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:328)
>
> at
> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1510)
>
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
>
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>
> 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:1254)
>
> at
> org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
> 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:2860)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
>
> at
> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
> at
> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
> at
> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
> at
> com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.openEditor(OpenKeyspaceHandler.java:151)
>
> at
> com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.execute(OpenKeyspaceHandler.java:237)
>
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
>
> at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
>
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
>
> at
> org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
>
> at
> org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
>
> at
> org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
>
> at
> org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>
> 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:369)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>
> at java.lang.reflect.Method.invoke(Method.java:599)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
> CassandraDiagramEditorPlugin.createImageRegistry()


Ed Merks
Professional Support: https://www.macromodeling.com/
(no subject) [message #673803 is a reply to message #673712] Tue, 24 May 2011 19:24 Go to previous message
Eclipse UserFriend
Originally posted by: Roy Benjamin

On 5/24/2011 6:49 AM, Ed Merks wrote:
> Roy,
>
> It sounds like the STP project has conflicting package registration with
> the one provided by EMF's core. Maybe you should avoid installing it or
> avoid ncluding it in your runtime. You should report the problem to them
> as well.
>

Thank you Ed!

Roy



>
> Roy Benjamin wrote:
>> in Helios, doing GMF dev, I'm getting a most odd cast exception during
>> init.
>>
>> at: 122 in
>> org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespacePackageImpl
>>
>> // Obtain or create and register package XMLNamespacePackageImpl
>> theXMLNamespacePackage =
>> (XMLNamespacePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI)
>> instanceof XMLNamespacePackageImpl ?
>> EPackage.Registry.INSTANCE.get(eNS_URI) : new XMLNamespacePackageImpl());
>>
>> Not sure what to do about this one....
>>
>> Thanks
>> Roy
>>
>>
>>
>> java.lang.ClassCastException:
>> org.eclipse.emf.ecore.xml.namespace.impl.XMLNamespaceFactoryImpl
>> incompatible with org.eclipse.stp.sca.csa.namespace.NamespaceFactory
>> at
>> org.eclipse.stp.sca.csa.namespace.impl.NamespaceFactoryImpl.init(NamespaceFactoryImpl.java:47)
>>
>> at
>> org.eclipse.stp.sca.csa.namespace.NamespaceFactory.<clinit>(NamespaceFactory.java:33)
>>
>> at java.lang.J9VMInternals.initializeImpl(Native Method)
>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
>> at
>> org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.<init>(NamespacePackageImpl.java:113)
>>
>> at
>> org.eclipse.stp.sca.csa.namespace.impl.NamespacePackageImpl.init(NamespacePackageImpl.java:149)
>>
>> at
>> org.eclipse.stp.sca.csa.namespace.NamespacePackage.<clinit>(NamespacePackage.java:228)
>>
>> at java.lang.J9VMInternals.initializeImpl(Native Method)
>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
>> at
>> org.eclipse.stp.sca.csa.impl.CsaPackageImpl.init(CsaPackageImpl.java:983)
>> at org.eclipse.stp.sca.csa.CsaPackage.<clinit>(CsaPackage.java:227)
>> at java.lang.J9VMInternals.initializeImpl(Native Method)
>> at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
>> at org.eclipse.stp.sca.csa.util.CsaSwitch.<init>(CsaSwitch.java:53)
>> at
>> org.eclipse.stp.sca.csa.util.CsaAdapterFactory$1.<init>(CsaAdapterFactory.java:80)
>>
>> at
>> org.eclipse.stp.sca.csa.util.CsaAdapterFactory.<init>(CsaAdapterFactory.java:80)
>>
>> at
>> org.eclipse.stp.sca.csa.provider.CsaItemProviderAdapterFactory.<init>(CsaItemProviderAdapterFactory.java:91)
>>
>> at
>> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.fillItemProviderFactories(CsaDiagramEditorPlugin.java:105)
>>
>> at
>> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.createAdapterFactory(CsaDiagramEditorPlugin.java:97)
>>
>> at
>> org.eclipse.stp.sca.csa.diagram.part.CsaDiagramEditorPlugin.start(CsaDiagramEditorPlugin.java:72)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
>>
>> at java.security.AccessController.doPrivileged(AccessController.java:251)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
>>
>> at
>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:453)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:390)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:103)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:338)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:232)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1197)
>>
>> at
>> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
>>
>> at
>> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
>>
>> at
>> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>>
>> at
>> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.Service$ProviderDescriptor.getProvider(Service.java:159)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService$ProviderDescriptor.provides(EditPartService.java:96)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.Service.safeProvides(Service.java:860)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.getUncachedProviders(ExecutionStrategy.java:89)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.Service.getProviders(Service.java:563)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.ExecutionStrategy$1.execute(ExecutionStrategy.java:68)
>>
>> at
>> org.eclipse.gmf.runtime.common.core.service.Service.execute(Service.java:652)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.execute(EditPartService.java:217)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.createRootEditPart(EditPartService.java:249)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.configureGraphicalViewer(DiagramEditor.java:831)
>>
>> at
>> com.nordgren.trading.clessar.diagram.part.ClessarDiagramEditor.configureGraphicalViewer(CassandraDiagramEditor.java:285)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createGraphicalViewer(DiagramEditor.java:806)
>>
>> at
>> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:171)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.createPartControl(DiagramEditor.java:1580)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:328)
>>
>> at
>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1510)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
>>
>> 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:1254)
>>
>> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
>> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
>> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
>> at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
>> 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:2860)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
>> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
>> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
>> at
>> com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.openEditor(OpenKeyspaceHandler.java:151)
>>
>> at
>> com.ebay.trading.cassandra.handlers.OpenKeyspaceHandler.execute(OpenKeyspaceHandler.java:237)
>>
>> at
>> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
>>
>> at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
>> at
>> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
>>
>> at
>> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
>>
>> at
>> org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
>>
>> at
>> org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
>>
>> at
>> org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
>>
>> at
>> org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
>>
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
>> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>>
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>
>> 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:369)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>
>> at java.lang.reflect.Method.invoke(Method.java:599)
>> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
>> CassandraDiagramEditorPlugin.createImageRegistry()
Previous Topic:Delete Element - also delete Table in MySQL
Next Topic:Display editor within node
Goto Forum:
  


Current Time: Sat Dec 14 08:21:30 GMT 2024

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

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

Back to the top