This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258196 - Cannot save a modified file: the error window "cannot saved to a locked file" appear.
Summary: Cannot save a modified file: the error window "cannot saved to a locked file"...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 12:34 UTC by _ nzero2002
Modified: 2016-04-18 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (59.39 KB, text/plain)
2016-03-01 12:34 UTC, _ nzero2002
Details
The error message (733.59 KB, image/jpeg)
2016-03-01 12:37 UTC, _ nzero2002
Details
Thread dump (25.92 KB, text/plain)
2016-03-01 12:45 UTC, _ nzero2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ nzero2002 2016-03-01 12:34:04 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens sometimes, but not always

STEPS:
  * Open dialog Foo
  * Click on button "Click me"

ACTUAL:
  nothing happens

EXPECTED:
  message pops u
Comment 1 _ nzero2002 2016-03-01 12:34:09 UTC
Created attachment 158686 [details]
IDE log
Comment 2 _ nzero2002 2016-03-01 12:37:19 UTC
Created attachment 158687 [details]
The error message
Comment 3 _ nzero2002 2016-03-01 12:45:02 UTC
Honestly speaking it is VERY inconvenient when you cannot save the edited file. IDE is about the productivity and how one can be productive in this case. 
Such problems happens periodically. 
On the previous releases disconnect/connect helps (via clicking on remote terminal icon) , now it does not
Comment 4 _ nzero2002 2016-03-01 12:45:08 UTC
Created attachment 158688 [details]
Thread dump
Comment 5 Vladimir Kvashin 2016-03-13 07:22:18 UTC
Partial fix
hg.netbeans.org/cnd-main/rev/ef809f192a5f
Comment 6 Quality Engineering 2016-03-30 01:39:01 UTC
Integrated into 'main-silver', will be available in build *201603300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6c87929638dd
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: Refactoring before dixing bug #258196 (Cannot save a modified file) - remote unnecessary fileTypeChar field
Comment 7 Vladimir Kvashin 2016-04-04 17:45:56 UTC
As far as I understand, this is gone after numerous remote fixes, mostly related with links processing.

The following change sets add a tracing (in -J-da mode or with -J-Dremote.rwlock.trace.lockers=true), such situation will dump the thread that locks the file:
http://hg.netbeans.org/cnd-main/rev/6655962a1dde
http://hg.netbeans.org/cnd-main/rev/72c92fe1ff8d

There are also lots of related refactorings:
http://hg.netbeans.org/cnd-main/rev/6c87929638dd
http://hg.netbeans.org/cnd-main/rev/f509e13f0f80
http://hg.netbeans.org/cnd-main/rev/ce80f71ed99d
http://hg.netbeans.org/cnd-main/rev/a85667752921
http://hg.netbeans.org/cnd-main/rev/c6771d654e7f
http://hg.netbeans.org/cnd-main/rev/d19bb9d9e625
Comment 8 Vladimir Kvashin 2016-04-15 16:59:51 UTC
verified in builds on enum server