Community
Participate
Working Groups
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
The WST folks need to look at this.
This may be similar to bug 305973
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.
Hi Udo, can you please attach your schema file? What Linux version are you using? Can you reproduce this on Windows?