• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Duplicate
  • drb
  • Reporter: teck
  • September 07, 2010
  • 0
  • Watchers: 0
  • July 27, 2012
  • September 07, 2010

Attachments

Description

Use the attached tc-config.xml and try to open the configuration editor in the eclipse plugin. For me that results in the NPE below. I’m not even sure if this specific tc-config.xml is to blame. Using the default one I get the same error.

This was with eclipse 3.6 (I20100608-0911) and Terracotta 3.3.0.r15922_v20100716 eclipse plugin

java.lang.NullPointerException at org.terracotta.dso.editors.xmlbeans.XmlObjectHolderHelper.isRequired(XmlObjectHolderHelper.java:187) at org.terracotta.dso.editors.xmlbeans.XmlObjectHolderHelper.isSet(XmlObjectHolderHelper.java:200) at org.terracotta.dso.editors.xmlbeans.XmlStringField.isSet(XmlStringField.java:106) at org.terracotta.dso.editors.xmlbeans.XmlStringField.stringValue(XmlStringField.java:98) at org.terracotta.dso.editors.xmlbeans.XmlStringField.setup(XmlStringField.java:87) at org.terracotta.dso.editors.ClientsPanel$Layout.setup(ClientsPanel.java:148) at org.terracotta.dso.editors.ClientsPanel.updateChildren(ClientsPanel.java:104) at org.terracotta.dso.editors.ClientsPanel.setup(ClientsPanel.java:117) at org.terracotta.dso.editors.ConfigurationEditor.initPanels(ConfigurationEditor.java:487) at org.terracotta.dso.editors.ConfigurationEditor.createPages(ConfigurationEditor.java:278) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348) 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:2682) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:747) at org.terracotta.dso.TcPlugin.openConfigurationEditor(TcPlugin.java:1635) at org.terracotta.dso.actions.ShowConfigEditorAction.run(ShowConfigEditorAction.java:43) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

Comments

Gary Keim 2010-09-07

The latest nightly build has the fix.