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

Bug 316430

Summary: Editing xsd file by external tool -> NPE in org.eclipse.xsd.util.XSDConstants.lookupQualifier
Product: [WebTools] WTP Source Editing Reporter: Lysathor <lysathor>
Component: wst.xsdAssignee: wst.xsd-triaged <wst.xsd-triaged>
Status: NEW --- QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3 CC: keith.chong.ca, konstantin
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=211556
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258570
Whiteboard:

Description Lysathor CLA 2010-06-10 04:54:03 EDT
First of all about this bug report:
I do not know what to select in "product" or "component". Neither Eclipse nor Galileo nor XSD nor WST is not an option.
If you know that to select, please corret it.

What steps will reproduce the problem?
1. I edited a xsd file
2. I integrated it to my source revision control 
3. I got the exception


-- Error Details --
Date: Thu Jun 10 10:36:39 CEST 2010
Message: Problems occurred when invoking code from plug-in: "org.eclipse.ui.views.properties.tabbed".
Severity: Error
Product: Eclipse 1.2.2.20100122-1337 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.ui.views.properties.tabbed
Session Data:
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product


Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.xsd.util.XSDConstants.lookupQualifier(XSDConstants.java:1433)
	at org.eclipse.xsd.impl.XSDNamedComponentImpl.getQName(XSDNamedComponentImpl.java:654)
	at org.eclipse.wst.xsd.ui.internal.common.properties.sections.XSDComplexTypeSection.fillTypesCombo(XSDComplexTypeSection.java:405)
	at org.eclipse.wst.xsd.ui.internal.common.properties.sections.XSDComplexTypeSection.refresh(XSDComplexTypeSection.java:173)
	at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:217)
	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.ui.views.properties.tabbed.TabContents.refresh(TabContents.java:220)
	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.refresh(TabbedPropertySheetPage.java:749)
	at org.eclipse.wst.xsd.ui.internal.editor.XSDTabbedPropertySheetPage$InternalNodeAdapter.notifyChanged(XSDTabbedPropertySheetPage.java:152)
	at org.eclipse.wst.xsd.ui.internal.util.ModelReconcileAdapter.notifyListeners(ModelReconcileAdapter.java:54)
	at org.eclipse.wst.xsd.ui.internal.util.ModelReconcileAdapter.notifyChanged(ModelReconcileAdapter.java:66)
	at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:238)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:340)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:178)
	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:163)
	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.nodesReplaced(AbstractStructuredModel.java:152)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:596)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1195)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1975)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2415)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.set(BasicStructuredDocument.java:2927)
	at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.handleFileContentChanged(ResourceTextFileBuffer.java:512)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer$2.execute(ResourceFileBuffer.java:151)
	at org.eclipse.core.internal.filebuffers.ResourceFileBuffer$SafeFileChange.run(ResourceFileBuffer.java:86)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
	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)
Comment 1 Steffen Pingel CLA 2010-06-10 14:58:06 EDT
Moving to webtools.
Comment 2 Valentin Baciu CLA 2010-07-20 16:01:34 EDT
Likely similar to bug 211556 and bug 258570.