facebook

Exception when saving in html or jsp editor

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • #257173 Reply

    augustientje
    Member

    Hi,

    Occasionally, when I try to save a file in the MyEclipse HTML or JSP editor I get a dialog saying save failed. However, the safe actually hasn’t failed at all. Nevertheless, the dialog is quite annoying the say the least.

    I did a fresh install of Eclipse 3.2 and MyEclipse 5.0GA. After installing MyEclipse I restarted with the -clean option. The auto update of Eclipse (which I turned on) automatically downloaded the MyEclipse 5.01 update, which I agreed to install. I’m also using the recommended start-up parameters (-Xmx etc). The only other plug-in I installed is the resource bundle editor plug-in. I’m running on Debian Linux.

    In the log the following exception appears multiple times:

    !ENTRY org.eclipse.ui 4 4 2006-08-18 18:23:44.679
    !MESSAGE Save Failed

    !ENTRY org.eclipse.ui 2 0 2006-08-18 18:23:44.679
    !MESSAGE Save Failed
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.setEditorDocumentRoot(DesignEditSystem.java:114)
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
    at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
    at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.doSave(WebDesignerMultiPageEditor.java:464)
    at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:131)
    at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:252)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:258)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1360)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2978)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2991)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1341)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1121)
    at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:655)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2082)
    at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:637)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1434)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3796)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5245)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1133)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1427)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2838)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #257222 Reply

    Riyad Kalla
    Member

    This bug is exactly why we did the 5.0.1 release so fast after 5.0, can you try restarting using -clean again or a new workspace (File > Switch Workspace) and see if you can reproduce the error with a clean workspace?

    #257278 Reply

    henk
    Member

    Riyad,

    I just got the same dialog when saving a jsf file. Save Failed:null. I’m on a different platform though: Win XP SP2, Java 5.0 U6, Eclipse 3.2, MyEclipse 5.01 and Subversive 1.02. The file did seem to be saved, but all JSF EL validation stopped working. After a while, other validations (e.g. java or tags) stopped working too.

    I started up with the -clean option (in fact I always started up with -clean since I forgot to remove it after the initial restart). In my log I find basically the same exception as the poster above, but I’ll print them here in the hope it might be of some help:

    !ENTRY org.eclipse.ui 4 4 2006-08-21 23:36:13.512
    !MESSAGE Save Failed

    !ENTRY org.eclipse.ui 2 0 2006-08-21 23:36:13.512
    !MESSAGE Save Failed
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:226)
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
    at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
    at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.doSave(WebDesignerMultiPageEditor.java:464)
    at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:131)
    at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:252)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:258)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1360)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2978)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2991)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1923)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    !ENTRY org.eclipse.ui 4 4 2006-08-21 23:36:28.715
    !MESSAGE Save Failed

    !ENTRY org.eclipse.ui 2 0 2006-08-21 23:36:28.715
    !MESSAGE Save Failed
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:226)
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
    at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
    at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.doSave(WebDesignerMultiPageEditor.java:464)
    at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:131)
    at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:252)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:258)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1360)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2978)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2991)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1923)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    !ENTRY org.eclipse.ui 4 4 2006-08-21 23:36:36.277
    !MESSAGE Save Failed

    !ENTRY org.eclipse.ui 2 0 2006-08-21 23:36:36.277
    !MESSAGE Save Failed
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.webdesigner3.src.SourceEditSystem.getSourceDocument(SourceEditSystem.java:226)
    at com.genuitec.eclipse.webdesigner3.design.DesignEditSystem.synchronize(DesignEditSystem.java:165)
    at com.genuitec.eclipse.webdesigner3.AbstractEditSystem.setSynchronized(AbstractEditSystem.java:24)
    at com.genuitec.eclipse.webdesigner3.WebDesigner3.setSynchronized(WebDesigner3.java:83)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.checkSynchronization(WebDesignerMultiPageEditor.java:577)
    at com.genuitec.eclipse.webdesigner3.editors.WebDesignerMultiPageEditor.doSave(WebDesignerMultiPageEditor.java:464)
    at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:131)
    at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:252)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
    at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:760)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2283)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:258)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1360)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2978)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2991)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1923)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #257279 Reply

    Riyad Kalla
    Member

    Henk,
    Is this reproducable or very random and once it happens are things broken, or no other side effects are noticed if you keep working?

    #257295 Reply

    henk
    Member

    It’s reproducable in the way that I get the dialog every time I save said file. If I completely close the file, open it again and then save it, I get the same dialog. It doesn’t happen with some other files I tried. When I keep on working, must ‘editor stuff’ just stops working. Aside from the validations, auto-completion in tags also doesn’t work anymore. E.g. if I remove the </f:view> tag and try to let auto complete create it again by entereng </[ctrl+space], then I just get the message “Content assist not available at the current location”.

    One possible other side effect I noticed (but I’m not sure if it’s related), is that in a file I created right after the file that keeps giving me the safe failed dialog, I don’t see any warnings for errors in the EL anymore. Auto-completion in JSF EL still works, and errors in tags are flagged. This other file has the exact same content as the failing file.

    #257298 Reply

    Riyad Kalla
    Member

    If you create a new project does it continue? If you create a new workspace (File> Switch Workspace) does it continue? Trying to nail down how to make this happen on our end consistently.

    #257299 Reply

    henk
    Member

    Well, if I just create a new file (in the same directory as the other file) it already doesn’t continue in that other file. It seems to stick to this one file.

    I created a new web project, created two files in them, one a .jsp and one a .jsf. Tried to safe them a couple of times, made changes, saved again, etc, but I did not see the dialog.

    I remember btw that during lunch today, one of my co-workers (who’s the only other person also on MyEclipse 5.01) complained about some dialog popping up. There was no time for me to look at this, but it might have been the same problem. I’ll ask about this tomorrow.

    #257308 Reply

    Riyad Kalla
    Member

    I’m trying to find a set of steps that reproduce this on my end too, that’s what I need in order to file this to make sure it gets fixed ASAP, otherwise the devs have way to much to do right now to hunt if I file a vague bug. Any help in finding a set of steps is much appreciated henk.

    #257313 Reply

    Riyad Kalla
    Member
    #257315 Reply

    henk
    Member

    I understand this completely. Any bug that can be reproduced can usually be fixed easily, I really know this all too well from my own projects.

    I do think that an actual exception given by users classifies this as a little more than just a vague bug, since it gives some ‘proof’ that the bug actually happened and gives some pointers as where to look for. I shall do my best to find a series of steps that lead to this. The other time I simply created a new file, entered some text, and hit safe. It happend then. Maybe it’s some race condition? These are usually quite hard to reproduce 🙁

    #257316 Reply

    Riyad Kalla
    Member

    Ok so this bug was original found (consistently) on Mac and that is why we shipped 5.0.1 so quickly after 5.0, to fix that issue. I reopened the bug and added everyone’s comments to it, I’ll keep check for reproducable sitautions on my end. I am thinking a race condition as well cause it’s so random.

    #257347 Reply

    arjan.tijms
    Member

    Riyad,

    I’m experiencing the exact same problem and the exact same exceptions turns up in my log. In my case it happens quite frequently to a lot of different files. I’ve seen it happening on simple HTML files with only 4 lines in it, on a complex jsp file (.jsp), on a jsf file (.jsf) and even on a tag definition file (.tag). It’s very hard to reproduce. A restart fixes the problem, but after a while it starts happening again on seemingly random files. The only thing that is reproducable is that it does happen all the time.

    Something I noticed that the others didn’t report is that after an editor goes beserk, there is a hidden file created following the pattern: .[file in question]_wd3_init.html. “file in question” refers to the file the editor fails on. This hidden file is created in the same directory as the original file. It’s not deleted by Eclipse, not even after I close the editor or restart Eclipse.

    As fas as the race condition theory goed, I’m running on a dual core AMD X2 3800+. Perhaps that’s why I’m seeing this problem more often? (if the others aren’t using dual cpu’s).
    One other thing is that I’m on Java 6 beta 2.

    This is my complete info:

    *** Date: Tue Aug 22 10:20:00 CEST 2006

    *** System properties:
    OS=Linux
    OS version=2.6.15-1-k7-smp
    Java version=1.6.0-beta2

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -launcher
    /home/arjan/programs/eclipse/eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    e4001e
    -clean
    -vm
    /home/arjan/programs/eclipse/jre/bin/java

    I start up Eclipse with: eclipse -clean -vmargs -Xms128m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=256M

    #257376 Reply

    Scott Anderson
    Participant

    One other thing is that I’m on Java 6 beta 2.

    Arjan, we’ve seen stability problems with Sun’s JDK’s with every new release. Java 6 is no different, unfortunately. Can you please set up to run Eclipse with JDK 1.5.0_08 instead of Java 6? You can do that by adding a commandline option to your shortcut like:
    eclipse.exe -vm <path-to-jdk-1.5.0>\bin\javaw.exe

    Please note that you can still add Java 6 as an “Installed JDK” in Eclipse and target it to your projects even though you’re not using it to run Eclipse.

    #257379 Reply

    arjan.tijms
    Member

    @support-scott wrote:

    Arjan, we’ve seen stability problems with Sun’s JDK’s with every new release. Java 6 is no different, unfortunately.

    I suspected that, yet Eclipse 3.1/MyEclipse 4.X has been running extremely stable with Java 6.

    Can you please set up to run Eclipse with JDK 1.5.0_08 instead of Java 6? You can do that by adding a commandline option to your shortcut like:
    eclipse.exe -vm <path-to-jdk-1.5.0>\bin\javaw.exe

    I’ll try switching to JDK 1.5_08 and see if that cures the problem or makes it less frequent. Since the other people who have reported this problem do not seem to be running Java 6, it might not be the cause. If it makes the problem occur less frequent, it may be a good thing for you to test with Java 6 since of course you guys actually want to see the problem during a debugging session.

    Btw, one other simple method of easily switching the JDK is creating a symlink called JRE inside the eclipse directory which targets the required JDK.

    #257400 Reply

    augustientje
    Member

    I’m still having this problem and it’s starting to driving me a bit nuts. Of course I could always downgrade everything to Eclipse 3.1/MyEclipse 4 again, but I’d rather keep using at least Eclipse 3.2.

    It may be too early to ask, but is there already an ETA set for a fix to this problem?

Viewing 15 posts - 1 through 15 (of 32 total)
Reply To: Exception when saving in html or jsp editor

You must be logged in to post in the forum log in