For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 1 reply, 2 voices, and was last updated 21 years, 1 month ago by
Greg.
-
AuthorPosts
-
Frits JalvinghMemberHello,
If I have a changed struts-config.xml and I try to do a “save all” I get a messagebox saying “Save All Failed:null”. The log has the following exceptions:
!ENTRY org.eclipse.ui 2 0 Sep 23, 2004 11:46:42.955
!MESSAGE Save All Failed
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.struts.editor.modeler.model.StrutsActivity.getPath(Unknown Source)
at com.genuitec.eclipse.struts.editor.modeler.model.StrutsActivity.toXML(Unknown Source)
at com.genuitec.eclipse.struts.editor.modeler.model.StrutsConfigDiagram.toXML(Unknown Source)
at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.createMex(Unknown Source)
at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.doSave(Unknown Source)
at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.doSave(Unknown Source)
at org.eclipse.ui.internal.EditorManager$11.run(EditorManager.java:1103)
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.saveAll(EditorManager.java:1123)
at org.eclipse.ui.internal.EditorManager.saveAll(EditorManager.java:1047)
at org.eclipse.ui.internal.WorkbenchPage.saveAllEditors(WorkbenchPage.java:2528)
at org.eclipse.ui.internal.SaveAllAction.run(SaveAllAction.java:118)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2595)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2298)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)Doing a normal save on the struts file does work IF you make a small change to the file again. It seems like the exception clears the “changed” flag “a bit” because after this exception the “save” menu item is disabled but the file name still has the ‘*’ changed indicator…
September 23, 2004 at 9:08 am #215821
GregMemberWe noticed that same issue and already have a fix for it in the 3.8.2 internal builds. So that will be fixed once 3.8.2 is released. Thanks for your report.
-
AuthorPosts
