eclipse-modisco / org.eclipse.modisco

Eclipse Public License 2.0
0 stars 0 forks source link

Impossible to have an usable customization project #125

Closed eclipse-modisco-bot closed 2 days ago

eclipse-modisco-bot commented 2 days ago

| --- | --- | | Bugzilla Link | 303046 | | Status | CLOSED INVALID | | Importance | P3 normal | | Reported | Feb 17, 2010 06:48 EDT | | Modified | Sep 22, 2010 05:32 EDT | | Version | 0.8.0 | | Reporter | Gabriel BARBIER |

Description

Hello,

Using a customization project installed as a plug-in (it is a MoDisco example), I have import it into my workspace as a project.\ After that, I have started modifications of existing facets and created a new uiCustom model with queries.\ It works fine, and I am able to see them into MoDisco views (Query Sets view, etc.). When I open a model with ModelBrowser, I am also able to select the new customization.\ However, when I select a customized element, I get a lot of errors !!! As much as the model contains instances of customized elements !!!!

It could come from the fact that I have two bundles with same IDs in my eclipse, one as a plug-in and one as a project.

Regards\ Gabriel

eclipse-modisco-bot commented 2 days ago

By Gabriel BARBIER on Feb 17, 2010 06:48

org.osgi.framework.BundleException: Error converting plugin at D:\Modelplex\validation\eclipse\configuration\org.eclipse.osgi\bundles\649\1\bundlefile.\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.generateManifest(EclipseStorageHook.java:446)\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest0(EclipseStorageHook.java:423)\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getGeneratedManifest(EclipseStorageHook.java:393)\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.createCachedManifest(EclipseStorageHook.java:388)\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.getManifest(EclipseStorageHook.java:507)\ at org.eclipse.osgi.internal.baseadaptor.BaseStorage.loadManifest(BaseStorage.java:302)\ at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:82)\ at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:922)\ at org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:838)\ at java.security.AccessController.doPrivileged(Native Method)\ at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:889)\ at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:833)\ at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:167)\ at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:161)\ at org.eclipse.gmt.modisco.infra.query.core.Activator.installBundle(Activator.java:101)\ at org.eclipse.gmt.modisco.infra.query.core.java.JavaModelQueryFactory.create(JavaModelQueryFactory.java:100)\ at org.eclipse.gmt.modisco.infra.query.core.ModelQuerySetCatalog.getModelQueryImpl(ModelQuerySetCatalog.java:172)\ at org.eclipse.gmt.modisco.infra.browser.util.QueryUtil.basicEvaluate(QueryUtil.java:31)\ at org.eclipse.gmt.modisco.infra.browser.customization.CustomizationEngine.getValue(CustomizationEngine.java:1079)\ at org.eclipse.gmt.modisco.infra.browser.customization.CustomizationEngine.getIcon(CustomizationEngine.java:766)\ at org.eclipse.gmt.modisco.infra.browser.customization.CustomizationEngine.getIcon(CustomizationEngine.java:759)\ at org.eclipse.gmt.modisco.infra.browser.customization.CustomizationEngine.getTypeIcon(CustomizationEngine.java:743)\ at org.eclipse.gmt.modisco.infra.browser.core.ModelElementItem.getImageFor(ModelElementItem.java:577)\ at org.eclipse.gmt.modisco.infra.browser.core.ModelElementItem.getImage(ModelElementItem.java:534)\ at org.eclipse.gmt.modisco.infra.browser.editors.BrowserLabelProvider.getImage(BrowserLabelProvider.java:48)\ at org.eclipse.jface.viewers.WrappedViewerLabelProvider.getImage(WrappedViewerLabelProvider.java:117)\ at org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:165)\ at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:145)\ at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:932)\ at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.core.runtime.Platform.run(Platform.java:888)\ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)\ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)\ at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:1012)\ at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:481)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.core.runtime.Platform.run(Platform.java:888)\ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)\ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)\ at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2111)\ at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:827)\ at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:802)\ at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)\ at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)\ at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:639)\ at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1490)\ at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:828)\ at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)\ at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392)\ at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)\ at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353)\ at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)\ at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)\ at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1634)\ at org.eclipse.gmt.modisco.infra.browser.editors.EcoreBrowser$MetaclassListViewerSelectionChangedListener.selectionChanged(EcoreBrowser.java:1127)\ at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)\ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\ at org.eclipse.core.runtime.Platform.run(Platform.java:888)\ at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)\ at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)\ at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)\ at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)\ at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)\ at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)\ at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)\ at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)\ at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)\ at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\ at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)\ at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)\ at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)\ at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)\ at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)\ 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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)\ 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)\ Caused by: org.eclipse.osgi.service.pluginconversion.PluginConversionException: Could not find a META-INF/MANIFEST.MF, plugin.xml or a fragment.xml in D:\Modelplex\validation\eclipse\configuration\org.eclipse.osgi\bundles\649\1\bundlefile.\ at org.eclipse.core.runtime.internal.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:107)\ at org.eclipse.core.runtime.internal.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:707)\ at org.eclipse.core.runtime.internal.adaptor.EclipseStorageHook.generateManifest(EclipseStorageHook.java:443) ... 91 more

eclipse-modisco-bot commented 2 days ago

By Gabriel BARBIER on Feb 17, 2010 09:02

I made a second test, with only one customization project. And it fails at the same place, with the same error.

What I tried to: change the icon of a model element based on a condition (result of my query).

eclipse-modisco-bot commented 2 days ago

By Gabriel BARBIER on Feb 17, 2010 10:28

I was not able to reproduce the bug after a reinstallation of MoDisco.

It could have been a failure in dependencies between MoDisco plug-ins.