Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#379 Locking failed error on save

FreeMind_0.8.0
closed-duplicate
nobody
Windows (184)
5
2008-06-15
2007-04-06
Mayank Prakash
No

When I open an existing map, it is opened read-only.
If I try to save, I get the "Locking failed for map ... Aborting save" error. Upshot - I cannot modify any map and save it.

It happens in both JDK 1.5 and 1.6.
I created two versions of the supplied batch file to run using either version of the JRE, and I get the following output from each:

==============================

C:\Program Files\FreeMind>Freemind1_5.bat

C:\Program Files\FreeMind>set JAVA_HOME=C:\Program Files\Java\jre1.5.0_11

C:\Program Files\FreeMind>set JAVA=C:\Program Files\Java\jre1.5.0_11\bin\java.exe

C:\Program Files\FreeMind>"C:\Program Files\Java\jre1.5.0_11\bin\java.exe" -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

Looking for user properties:
C:\Documents and Settings\mprakash\.freemind\user.properties

User properties found.
Default (System) Look & Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
[Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without
being able to get map module.
Apr 6, 2007 12:28:58 PM freemind.modes.ModesCreator getAllModes
INFO: Modes:[freemind.modes.browsemode.BrowseMode, freemind.modes.filemode.FileMode, freemind.modes.
mindmapmode.MindMapMode]
Apr 6, 2007 12:28:58 PM freemind.modes.ModesCreator getMode
INFO: Initializing mode MindMap
User patterns file C:\Documents and Settings\mprakash\.freemind\patterns.xml not found.
Apr 6, 2007 12:28:58 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: createIconActions
Apr 6, 2007 12:28:58 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: createNodeHookActions
Apr 6, 2007 12:28:59 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: mindmap_menus
Apr 6, 2007 12:28:59 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: MindMapPopupMenu
Apr 6, 2007 12:28:59 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: MindMapToolBar
Apr 6, 2007 12:28:59 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: setAllActions
Apr 6, 2007 12:28:59 PM freemind.modes.ModesCreator getMode
INFO: Done: Initializing mode MindMap
java.nio.channels.ClosedChannelException
at sun.nio.ch.FileLockImpl.release(Unknown Source)
at freemind.modes.mindmapmode.MindMapMapModel$LockManager.writeSemaphoreFile(MindMapMapModel
.java:680)
at freemind.modes.mindmapmode.MindMapMapModel$LockManager.tryToLock(MindMapMapModel.java:703
)
at freemind.modes.mindmapmode.MindMapMapModel.tryToLock(MindMapMapModel.java:460)
at freemind.modes.mindmapmode.MindMapMapModel.load(MindMapMapModel.java:477)
at freemind.modes.ControllerAdapter.load(ControllerAdapter.java:543)
at freemind.modes.mindmapmode.MindMapMode.restore(MindMapMode.java:60)
at freemind.controller.LastOpenedList.open(LastOpenedList.java:90)
at freemind.main.FreeMind.main(FreeMind.java:676)
Apr 6, 2007 12:29:03 PM freemind.modes.mindmapmode.MindMapMapModel getUpdateReader
INFO: Updating the file Mark Training Debriefing 20070308.mm to the current version.
Apr 6, 2007 12:29:04 PM freemind.modes.mindmapmode.MindMapMapModel getUpdateReader
INFO: Updating the file Mark Training Debriefing 20070308.mm to the current version. Done.
Apr 6, 2007 12:29:04 PM freemind.controller.MainToolBar setZoomComboBox
INFO: setZoomComboBox is called with 1.0.
Apr 6, 2007 12:29:04 PM freemind.extensions.HookFactory getClassLoader
INFO: file .\plugins\time\time_plugin.jar exists = true
Apr 6, 2007 12:29:04 PM freemind.extensions.HookFactory getClassLoader
INFO: file .\plugins\time\jcalendar.jar exists = true
Apr 6, 2007 12:29:04 PM freemind.modes.mindmapmode.MindMapController startupController
INFO: mScheduledActions are executed: 3
Apr 6, 2007 12:29:04 PM freemind.modes.ControllerAdapter registerMouseWheelEventHandler
INFO: Registered MouseWheelEventHandler accessories.plugins.UnfoldAll$Registration@185e90f

===================================
C:\Program Files\FreeMind>Freemind1_6.bat

C:\Program Files\FreeMind>set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_01

C:\Program Files\FreeMind>set JAVA=C:\Program Files\Java\jdk1.6.0_01\bin\java.exe

C:\Program Files\FreeMind>"C:\Program Files\Java\jdk1.6.0_01\bin\java.exe" -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

Looking for user properties:
C:\Documents and Settings\mprakash\.freemind\user.properties

User properties found.
Default (System) Look & Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
[Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without
being able to get map module.
Apr 6, 2007 12:33:35 PM freemind.modes.ModesCreator getAllModes
INFO: Modes:[freemind.modes.browsemode.BrowseMode, freemind.modes.filemode.FileMode, freemind.modes.
mindmapmode.MindMapMode]
Apr 6, 2007 12:33:35 PM freemind.modes.ModesCreator getMode
INFO: Initializing mode MindMap
User patterns file C:\Documents and Settings\mprakash\.freemind\patterns.xml not found.
Apr 6, 2007 12:33:35 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: createIconActions
Apr 6, 2007 12:33:35 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: createNodeHookActions
Apr 6, 2007 12:33:36 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: mindmap_menus
Apr 6, 2007 12:33:36 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: MindMapPopupMenu
Apr 6, 2007 12:33:36 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: MindMapToolBar
Apr 6, 2007 12:33:36 PM freemind.modes.mindmapmode.MindMapController <init>
INFO: setAllActions
Apr 6, 2007 12:33:36 PM freemind.modes.ModesCreator getMode
INFO: Done: Initializing mode MindMap
Apr 6, 2007 12:34:38 PM freemind.modes.mindmapmode.MindMapMapModel getUpdateReader
INFO: Updating the file Mark Training Debriefing 20070308.mm to the current version.
Apr 6, 2007 12:34:39 PM freemind.modes.mindmapmode.MindMapMapModel getUpdateReader
INFO: Updating the file Mark Training Debriefing 20070308.mm to the current version. Done.
Apr 6, 2007 12:34:39 PM freemind.controller.MainToolBar setZoomComboBox
INFO: setZoomComboBox is called with 1.0.
Apr 6, 2007 12:34:39 PM freemind.extensions.HookFactory getClassLoader
INFO: file .\plugins\time\time_plugin.jar exists = true
Apr 6, 2007 12:34:39 PM freemind.extensions.HookFactory getClassLoader
INFO: file .\plugins\time\jcalendar.jar exists = true
Apr 6, 2007 12:34:39 PM freemind.modes.mindmapmode.MindMapController startupController
INFO: mScheduledActions are executed: 3
Apr 6, 2007 12:34:39 PM freemind.modes.ControllerAdapter registerMouseWheelEventHandler
INFO: Registered MouseWheelEventHandler accessories.plugins.UnfoldAll$Registration@1dafb4e
Apr 6, 2007 12:35:50 PM freemind.modes.ControllerAdapter deRegisterMouseWheelEventHandler
INFO: Deregistered MouseWheelEventHandler accessories.plugins.UnfoldAll$Registration@1dafb4e
[Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without
being able to get map module.

Discussion

  • Mayank Prakash
    Mayank Prakash
    2007-04-10

    • status: open --> open-duplicate
     
  • Ryan
    Ryan
    2008-06-15

    • status: open-duplicate --> closed-duplicate