cannot save a JSP file
Status: Pre-Alpha
Brought to you by:
l950637
Fresh install if Eclipse 3.0 and SolarEclipse 0.4.1. I
can open a JSP in the JSP editor and the syntax is
colored appropriately. If I attempt to save the file, I
get the following error: Save failed:
org.eclipse.ui.texteditor.AbstractTextEditor.createSaveOperation(Z)Lo
There might be more, but that's all I can see in the
dialog.
Logged In: YES
user_id=662712
I get the same error with Eclipse 3.0 and SE0.4.1 on Windows
2000 (pro) SP3. This makes SolarEclipse just about useless,
really.
Logged In: YES
user_id=662712
Checking the .log file gives the following stacktrace:
!ENTRY org.eclipse.ui 2 0 Jul 07, 2004 12:51:33.609
!MESSAGE Save Failed
!STACK 0
java.lang.NoSuchMethodError:
org.eclipse.ui.texteditor.AbstractTextEditor.createSaveOperation(Z)Lorg/eclipse/ui/actions/WorkspaceModifyOperation;
at
net.sf.solareclipse.editor.I18NTextEditor.doSave(I18NTextEditor.java:65)
at
org.eclipse.ui.internal.EditorManager$12.run(EditorManager.java:1160)
at
org.eclipse.ui.internal.EditorManager$10.run(EditorManager.java:1015)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:303)
at
org.eclipse.jface.operation.ModalContext.run(ModalContext.java:253)
at
org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:588)
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:585)
at
org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:1653)
at
org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager.java:1021)
at
org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1165)
at
org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2539)
at
org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2551)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at
org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:141)
at
org.eclipse.ui.internal.commands.Command.execute(Command.java:132)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:889)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:930)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:548)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:496)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:261)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at
org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at
org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at
org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at
org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at
org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at
org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)
at
org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1467)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Logged In: NO
What I have been doing is you can do 'Save As' on your
jsp/xml file and then replace the old one.
Saving this way works (even though it is HIGHLY annoying).
Logged In: YES
user_id=1080534
I had the same problem with CSS and XML files as well
Logged In: YES
user_id=906644
Same thing happens with xml files with Eclipse 3.0 and
SolarEclipse 0.4.1
Logged In: YES
user_id=1095823
Looks as though
performSaveOperation(createSaveOperation(false),
progressMonitor);
in I18NTextEditor
should change to
updateState(getEditorInput());
validateState(getEditorInput());
performSave(false, progressMonitor);
- Taken from latest AbstractTextEditor
see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java?rev=1.140&content-type=text/vnd.viewcvs-markup
I haven't got solareclipse set up properly to be able to
test this at the moment but perhaps someone else would like
to give it a go?
Logged In: YES
user_id=1093599
I have the same problem. the full message text is:
Save
failed:org.eclipse.ui.TextEditor.AbstractTextEditor.createSaveOperation
(Z)Lorg/eclipse/ui/actions/WorkspaceModifyOperation
Logged In: YES
user_id=61769
I have a patch but I cannot figure out how to add it to this
bug?
Logged In: YES
user_id=823008
I've tried to compile this plugin manually, but I didn't
succeed because of dependencies on deprecated API's.
Worse, having SolarEclipse installed it's impossible to save
xml files, even with other editors than SolarEclipse. Just
having it installed screws up my installation.
Logged In: YES
user_id=61769
This bug has been fixed in ServerEclipse, a branch of the
un-supported SolarEclipse platform that supports Eclipse
3.0. Please un-install SolarEclipse and download the latest
version of ServerEclipse from:
http://servereclipse.sourceforge.net/