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

Bug 328555

Summary: XSD Schema designer gives "java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.xsd.XSDPackage$Literals"
Product: [WebTools] WTP Source Editing Reporter: Udo Rader <udo.rader>
Component: wst.xsdAssignee: wst.xsd-triaged <wst.xsd-triaged>
Status: NEW --- QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Udo Rader CLA 2010-10-24 18:14:21 EDT
Build Identifier: 20100617-1415

Opening an XSD file with the XML Schema Desginer works only until Eclipse is restarted. 

After a restart and then trying to open the same XSD file again, a popup shows displaying "java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.xsd.XSDPackage$Literals"

The .log file for such a crash shows the following stack trace:


-----------CUT----------
!ENTRY org.eclipse.jface 4 2 2010-10-25 00:05:54.752
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.xsd.XSDPackage$Literals
	at org.eclipse.xsd.impl.XSDSchemaImpl.eStaticClass(XSDSchemaImpl.java:847)
	at org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.java:269)
	at org.eclipse.xsd.util.XSDSwitch.doSwitch(XSDSwitch.java:74)
	at org.eclipse.wst.xsd.ui.internal.adapters.XSDAdapterFactory.createAdapter(XSDAdapterFactory.java:136)
	at org.eclipse.emf.common.notify.impl.AdapterFactoryImpl.createAdapter(AdapterFactoryImpl.java:133)
	at org.eclipse.emf.common.notify.impl.AdapterFactoryImpl.adaptNew(AdapterFactoryImpl.java:107)
	at org.eclipse.emf.common.notify.impl.AdapterFactoryImpl.adapt(AdapterFactoryImpl.java:93)
	at org.eclipse.wst.xsd.ui.internal.adapters.XSDAdapterFactory.adapt(XSDAdapterFactory.java:151)
	at org.eclipse.wst.xsd.ui.internal.editor.InternalXSDMultiPageEditor.buildModel(InternalXSDMultiPageEditor.java:248)
	at org.eclipse.wst.xsd.ui.internal.adt.editor.ADTMultiPageEditor.createPages(ADTMultiPageEditor.java:173)
	at org.eclipse.wst.xsd.ui.internal.editor.InternalXSDMultiPageEditor.createPages(InternalXSDMultiPageEditor.java:568)
	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.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
	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:651)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
	at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:365)
-----------CUT----------


Reproducible: Always
Comment 1 Ed Merks CLA 2010-10-24 21:46:26 EDT
The WST folks need to look at this.
Comment 2 Keith Chong CLA 2010-11-05 10:40:11 EDT
This may be similar to bug 305973
Comment 3 Udo Rader CLA 2010-11-05 10:47:31 EDT
Hmm, I am not sure, I can open WSDL files without problems.

And in fact, I can open WSDL files without problems even after I have restarted eclipse.
Comment 4 Keith Chong CLA 2010-11-08 11:55:30 EST
Hi Udo, can you please attach your schema file?

What Linux version are you using?  Can you reproduce this on Windows?