Menu

#145 Wechsel einer XML Datei geht nicht

open
nobody
5
2013-01-15
2007-11-28
No

Wenn man die zu bearbeitende Datei wechselt bekommt man einen Lock Fehler, falls die neu zu bearbeitende Datei irgendwie die alte referenziert. Das nervt. Beispiel:
Man bearbeitet V-Modell-XT.xml, speichert und öffnet dann die Mustertexte.xml. Diese include aber V-Modell-XT.xml, Resultat:
com.foursoft.mvc.controller.CommandException: Die Datei wird durch einen anderen Benutzer bearbeitet.
Wenn Sie sich sicher sind, dass dies nicht der Fall ist, löschen Sie die Datei
C:\dev\iso9001\4-Modell Quellen\V-Modell-XT.xml.lock
und versuchen es erneut
at com.foursoft.foureveredit.controller.command.impl.OpenObjectModelCommandImpl.execute(OpenObjectModelCommandImpl.java:120)
at com.foursoft.mvc.controller.AbstractCommand.perform(AbstractCommand.java:104)
at com.foursoft.mvc.view.swing.CommandAction.actionPerformed(CommandAction.java:159)
at com.foursoft.foureveredit.view.impl.swing.action.ExtendedCommandAction.doActionPerformed(ExtendedCommandAction.java:194)
at com.foursoft.foureveredit.view.impl.swing.action.FileChooserCommandAction$1.doNonUILogic(FileChooserCommandAction.java:236)
at com.foursoft.foureveredit.view.impl.swing.util.SwingWorkerVariant.construct(SwingWorkerVariant.java:126)
at com.foursoft.foureveredit.view.impl.swing.util.SwingWorkerVariant$2.run(SwingWorkerVariant.java:80)
at java.lang.Thread.run(Unknown Source)
Caused by: com.foursoft.fourever.xmlfileio.exception.DocumentLockedException: Cannot lock document. Remove C:\dev\iso9001\4-Modell Quellen\V-Modell-XT.xml.lock if you are sure nobody else is working on this file.
at com.foursoft.fourever.xmlfileio.impl.XMLFileIOManagerImpl.createLockfile(XMLFileIOManagerImpl.java:370)
at com.foursoft.fourever.xmlfileio.impl.FragmentImpl.setLocation(FragmentImpl.java:168)
at com.foursoft.fourever.xmlfileio.impl.DocumentImpl$FragmentReader.resolveOutstandingRelativeFragmentLocations(DocumentImpl.java:1646)
at com.foursoft.fourever.xmlfileio.impl.DocumentImpl$FragmentReader.read(DocumentImpl.java:1220)
at com.foursoft.fourever.xmlfileio.impl.DocumentImpl.readFragment(DocumentImpl.java:563)
at com.foursoft.fourever.xmlfileio.impl.XMLFileIOManagerImpl.openDocument(XMLFileIOManagerImpl.java:335)
at com.foursoft.foureveredit.controller.command.impl.OpenObjectModelCommandImpl.execute(OpenObjectModelCommandImpl.java:113)
... 7 more

Man muss erst die gerade bearbeitete Datei schliessen.

Discussion


Log in to post a comment.