facebook

‘Save failed:null’ when trying to save .xml [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    jlitola
    Member

    When I try to save xml file from File/Save or ctrl-s, I just get popup message saying “Save failed:null”. Eclipse log show following exception:

    
    java.lang.NullPointerException
            at com.ibm.sse.editor.FileModelProvider.changed(FileModelProvider.java:969)
            at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:3543)
            at org.eclipse.ui.texteditor.AbstractTextEditor.doSave(AbstractTextEditor.java:3324)
            at com.ibm.sse.editor.StructuredTextEditor.doSave(StructuredTextEditor.java:1180)
            at com.ibm.xmleditor.internal.XMLMultiPageEditorPart.doSave(XMLMultiPageEditorPart.java:318)
            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.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)
    Save Failed
    
    

    If I save file to different name with Save As, it works fine. Save as to same name however fails. This happens with all xml files except struts-config.xml. As you can imagine, this is MAJOR bug for me.

    I’m using Eclipse 3.0 on Linux.

    #212842

    Riyad Kalla
    Member

    I have tried to reproduce this locally with many different XML files and am unable to. Are you sure you have write permissions to the file? Can you double check it?

    
    ls -lFa
    
    #212845

    jlitola
    Member

    I have write access both to file and directory. I can save it to other name with save as and then back to original with save as in new file. I also noticed that same problem appears with .css files. I’m really puzzled.

    I installed 3.8GA on top of 3.8-beta2, can this affect anything. Beta-2 worked fine on this account.

    #212855

    Riyad Kalla
    Member

    Did you just unzip GA ontop of Beta 2 or did you delete Beta 2 first? If you just unziped it, then uninstall everything, clean it out and reinstall GA clean (also delete your <Eclipse>\configuration directory before restarting and reinstalling).

    Also our 3.8.1 bugfix release is due out at the end of this weeks o be sure to grab that too.

    #212878

    jlitola
    Member

    I rm -rf:d ~/MyEclipse and $ECLIPSEDIR/configuration, and reinstalled MyEclipse. Still same problem.

    #212884

    Riyad Kalla
    Member

    What is the build ID on the Eclipse version you are using? We had an XML save problem in Beta 1 but it has been fixed for a while, and no one else (include 2 linux guys on our team) have reported this problem…

    #212890

    jlitola
    Member

    Version: 3.0.0
    Build id: 200406251208

    I have also viPlugin and Jython plugin installed, but I don’t believe they would affect this problem as saving worked fine on GA3.8-Beta2. I’ll try clean install of whole eclipse, if you don’t have any better ideas.

    #212899

    Riyad Kalla
    Member

    I’m sorry I really don’t, you could wait a day or two for us to release the patch and then reinstall clean then and see if the problem is fixed… without being able to reproduce it (myself or another support person on Linux) its very hard for us to suggest a workaround or even try and fix it. I’m sorry I can’t be more helpful here… if this IS a problem with ME than we will do everything we can to get it fixed ASAP as it is clearly not an allowable bug to have exist in a product like this (saving is kind of important ;))

    #212903

    Riyad Kalla
    Member

    Update on this, we just had one of our QA personel report a save problem with XML files… I’m digging into this and we’ll see what we can find.

    #213397

    jlitola
    Member

    Any progress on this? Problem is really hampering my programming 🙁

    #213425

    Riyad Kalla
    Member

    Did you cleanly remove ME and reinstall using 3.8.1 and then apply the quick fix?

    #213428

    Scott Anderson
    Participant

    The best way to get rid of this issue is to install a clean version of Eclipse, then install MyElipse 3.8.1, then install the latest QuickFix.

    #213429

    Riyad Kalla
    Member

    Thank you Scott for weighing in, jlitola, I checked with the team and no one is aware of any saving issues and we don’t have any other users suffering from this right now either so it really does seem to be an install issue (install problems can manifest themselves in VERY strange ways).

    #216850

    Hello all!

    I’m the author of the viPlugin and hacked the Eclipse platform into pieces (evil reflection) to get the underlying ITextEditor of your JSP Editor. By doing so viPlugin now works with it, but when I try to save I get the same error as has been mentioned in this forum-topic. I really don’t have a clue why, but funny enough it works with every other plugin I’ve tried so far. Please note that I only tried the JSP editor of MyEclipseIDE!

    Any clues?

    Or even better, could we start some discussion on how our plugins could work together? I’ve opened a bug report on Eclipse which might be of interest for this discussion.

    Eclipse Bug: 70819

    Best regards,
    Michael Bartl
    (feedback either to zeddicus@satokar.com or in this forum, thx)

    #216866

    Riyad Kalla
    Member

    Michael,
    We appreciate you feedback and opening the line of communication. I know that I’ve seen a good handful of users interested in interoperability between viPlugin (nice job BTW) and MyEclipse. I will direct your comments to the devs and see if we can’t get this puppy figured out 😉

Viewing 15 posts - 1 through 15 (of 18 total)
Reply To: ‘Save failed:null’ when trying to save .xml [Closed]

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