Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351552

Summary: Resolve shared bundle in sub project
Product: z_Archived Reporter: Nathan Burgherr <nathan.burgherr>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Andreas.Hoegger, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Nathan Burgherr CLA 2011-07-08 07:51:31 EDT
Build Identifier: M20110210-1200

If you have a project which is shown as a subproject in the scout view, then you can't select a form under the form node of this subproject. 

The problem is that no shared project can be found on the dummy parent node.
java.lang.NullPointerException
	at org.eclipse.scout.sdk.workspace.type.TypeFilters$11.accept(TypeFilters.java:172)
	at org.eclipse.scout.sdk.workspace.type.TypeFilters$25.accept(TypeFilters.java:360)
	at org.eclipse.scout.sdk.internal.workspace.typecache.TypeHierarchy.getAllSubtypes(TypeHierarchy.java:162)
	at org.eclipse.scout.sdk.internal.workspace.typecache.PrimaryTypeTypeHierarchy.getAllSubtypes(PrimaryTypeTypeHierarchy.java:49)
	at org.eclipse.scout.sdk.internal.workspace.typecache.TypeHierarchy.getAllSubtypes(TypeHierarchy.java:153)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.collectIconNames(ScoutProjectIcons.java:131)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.cache(ScoutProjectIcons.java:101)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.getIcons(ScoutProjectIcons.java:77)
	at org.eclipse.scout.sdk.ui.fields.proposal.ScoutProposalUtility.getBCIconProposalsImpl(ScoutProposalUtility.java:363)
	at org.eclipse.scout.sdk.ui.fields.proposal.ScoutProposalUtility.getScoutIconProposals(ScoutProposalUtility.java:354)
	at org.eclipse.scout.sdk.ui.internal.view.properties.presenter.single.IconPresenter.init(IconPresenter.java:95)
	at org.eclipse.scout.sdk.ui.view.properties.presenter.single.AbstractMethodPresenter.setMethod(AbstractMethodPresenter.java:178)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.JdtTypePropertyPart.createConfigMethodPresenter(JdtTypePropertyPart.java:295)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.JdtTypePropertyPart.createSections(JdtTypePropertyPart.java:173)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.FormPropertyPart.createSections(FormPropertyPart.java:55)
	at org.eclipse.scout.sdk.ui.view.properties.part.AbstractSectionBasedPart.createPart(AbstractSectionBasedPart.java:82)
	at org.eclipse.scout.sdk.ui.internal.view.properties.ScoutPropertyView.handleSelectionChanged(ScoutPropertyView.java:128)
	at org.eclipse.scout.sdk.ui.internal.view.properties.ScoutPropertyView$P_SelectionListener.selectionChanged(ScoutPropertyView.java:196)
	at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
	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.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
	at org.eclipse.ui.internal.WindowPartSelectionTracker$2.selectionChanged(WindowPartSelectionTracker.java:47)
	at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
	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.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
	at org.eclipse.ui.internal.PagePartSelectionTracker$2.selectionChanged(PagePartSelectionTracker.java:55)
	at org.eclipse.scout.sdk.ui.internal.view.outline.ScoutExplorerPart$P_OutlineSelectionProvider.setSelectionWithoutLock(ScoutExplorerPart.java:459)
	at org.eclipse.scout.sdk.ui.internal.view.outline.ScoutExplorerPart$P_OutlineSelectionProvider.selectionChanged(ScoutExplorerPart.java:469)
	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
	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:2162)
	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1190)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1220)
	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: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:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
08.07.2011 13:37:06.262 ERROR org.eclipse.scout.sdk.ui org.eclipse.scout.sdk.ui.internal.view.properties.ScoutPropertyView.handleSelectionChanged(ScoutPropertyView.java:156)
	error during create property pages for [CTIDialErrorTitleForm (Telefon)]
java.lang.NullPointerException
	at org.eclipse.scout.sdk.workspace.type.TypeFilters$11.accept(TypeFilters.java:172)
	at org.eclipse.scout.sdk.workspace.type.TypeFilters$25.accept(TypeFilters.java:360)
	at org.eclipse.scout.sdk.internal.workspace.typecache.TypeHierarchy.getAllSubtypes(TypeHierarchy.java:162)
	at org.eclipse.scout.sdk.internal.workspace.typecache.PrimaryTypeTypeHierarchy.getAllSubtypes(PrimaryTypeTypeHierarchy.java:49)
	at org.eclipse.scout.sdk.internal.workspace.typecache.TypeHierarchy.getAllSubtypes(TypeHierarchy.java:153)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.collectIconNames(ScoutProjectIcons.java:131)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.cache(ScoutProjectIcons.java:101)
	at org.eclipse.scout.sdk.internal.workspace.ScoutProjectIcons.getIcons(ScoutProjectIcons.java:77)
	at org.eclipse.scout.sdk.ui.fields.proposal.ScoutProposalUtility.getBCIconProposalsImpl(ScoutProposalUtility.java:363)
	at org.eclipse.scout.sdk.ui.fields.proposal.ScoutProposalUtility.getScoutIconProposals(ScoutProposalUtility.java:354)
	at org.eclipse.scout.sdk.ui.internal.view.properties.presenter.single.IconPresenter.init(IconPresenter.java:95)
	at org.eclipse.scout.sdk.ui.view.properties.presenter.single.AbstractMethodPresenter.setMethod(AbstractMethodPresenter.java:178)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.JdtTypePropertyPart.createConfigMethodPresenter(JdtTypePropertyPart.java:295)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.JdtTypePropertyPart.createSections(JdtTypePropertyPart.java:173)
	at org.eclipse.scout.sdk.ui.view.properties.part.singlepage.FormPropertyPart.createSections(FormPropertyPart.java:55)
	at org.eclipse.scout.sdk.ui.view.properties.part.AbstractSectionBasedPart.createPart(AbstractSectionBasedPart.java:82)
	at org.eclipse.scout.sdk.ui.internal.view.properties.ScoutPropertyView.handleSelectionChanged(ScoutPropertyView.java:128)
	at org.eclipse.scout.sdk.ui.internal.view.properties.ScoutPropertyView$P_SelectionListener.selectionChanged(ScoutPropertyView.java:196)
	at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
	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.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
	at org.eclipse.ui.internal.WindowPartSelectionTracker$2.selectionChanged(WindowPartSelectionTracker.java:47)
	at org.eclipse.ui.internal.AbstractPartSelectionTracker$2.run(AbstractPartSelectionTracker.java:142)
	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.AbstractPartSelectionTracker.firePostSelection(AbstractPartSelectionTracker.java:140)
	at org.eclipse.ui.internal.PagePartSelectionTracker$2.selectionChanged(PagePartSelectionTracker.java:55)
	at org.eclipse.scout.sdk.ui.internal.view.outline.ScoutExplorerPart$P_OutlineSelectionProvider.setSelectionWithoutLock(ScoutExplorerPart.java:459)
	at org.eclipse.scout.sdk.ui.internal.view.outline.ScoutExplorerPart$P_OutlineSelectionProvider.selectionChanged(ScoutExplorerPart.java:469)
	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
	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:2162)
	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1190)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1220)
	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: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:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)

Reproducible: Always

Steps to Reproduce:
1. Create a project which requires the client plugin
2. Go to the scout view and create a form in this created project. 
3. Select this form under the Forms node.
Comment 1 Andreas Hoegger CLA 2011-07-14 04:37:29 EDT
In case a scout project does not contain a shared bundle the icon provider of the parent project is taken if available.
Solved for turn and Indigo RC1
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:53:24 EDT
shipped with scout 3.7.1