XML editor Crashes [message #80116] |
Fri, 04 March 2005 07:07  |
Eclipse User |
|
|
|
Originally posted by: ps_kishore.yahoo.com
Hi all,
I have started to use WTP for the last one week. When I try to open
a xml file using the editor "XML Source Page Editor" I get the following
error message
"
An excpetion occured while opening the resource
Reason:Editor could not be initialized.
".
My Session Data is:
-------------------
eclipse.buildId=I20050219-1500
java.version=1.5.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: vmargs -Xmx256m
Command-line arguments: -os win32 -ws win32 -arch x86 -clean vmargs
-Xmx256m
I opened the Error Log and found the following exception trace
------------------------------------------------------------ ------
org.eclipse.wst.sse.ui.util.Assert$AssertionFailedException: Editing
document must be an IStructuredDocument
at org.eclipse.wst.sse.ui.util.Assert.isTrue(Assert.java:163)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(Struc turedTextEditor.java:1295)
at
org.eclipse.ui.texteditor.AbstractTextEditor$16.run(Abstract TextEditor.java:2284)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:344)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:289)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2026)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:2302)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:2329)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredT extEditor.java:1909)
at
org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:822)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:901)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:654)
at
org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:640)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2312)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2244)
at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage .java:2236)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2222)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2217)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:299)
at
org.eclipse.ui.internal.ide.actions.OpenWorkspaceFileAction. run(OpenWorkspaceFileAction.java:104)
at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:244)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:220)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler. java:182)
at
org.eclipse.ui.internal.commands.LegacyHandlerWrapper.execut e(LegacyHandlerWrapper.java:107)
at org.eclipse.core.commands.Command.execute(Command.java:260)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:418)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:698)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:741)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(Work benchKeyboard.java:453)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent (WorkbenchKeyboard.java:229)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:783 )
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:866)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:851)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:879)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:875)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1181)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3121)
at org.eclipse.swt.widgets.Tree.WM_CHAR(Tree.java:2345)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3024 )
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:2305)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3480 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:16 19)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2539)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:228)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:333)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:150)
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.core.launcher.Main.invokeFramework(Main.java:268 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
|
|
|
Re: XML editor Crashes [message #80672 is a reply to message #80116] |
Sun, 06 March 2005 11:56  |
Eclipse User |
|
|
|
On Fri, 4 Mar 2005 12:07:27 +0000 (UTC), Kishore kumar <ps_kishore@yahoo.com> wrote:
> I have started to use WTP for the last one week. When I try to open a xml file using the editor "XML Source Page
> Editor" I get the following error message
> "
> An excpetion occured while opening the resource
> Reason:Editor could not be initialized.
>[...]
> org.eclipse.wst.sse.ui.util.Assert$AssertionFailedException: Editing document must be an IStructuredDocument
This should have been "fixed" in M3. Please confirm you are using M3 (and, perhaps, there's some issues with installing "over" pre-exisiting versions, you might have to start fresh?).
I say "fixed" in quotes because the main problem only partially fixed. You should no longer get the assert failure, but if its a file named build.xml, or has a <project> tag, it still won't work quite right -- it'll look like plain text editor.
Please re-post with any further findings you have, and we'll go from there. Or, alternatively, if you confirm you are using a clean M3 install, and still see the problem, please open a bug with a sample of your file.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.28595 seconds