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 247315 - java.io.IOException: Can not rename to zzzzz.c: the file already exists
Summary: java.io.IOException: Can not rename to zzzzz.c: the file already exists
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 21:09 UTC by soldatov
Modified: 2014-11-14 03:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212051


Attachments
stacktrace (1.81 KB, text/plain)
2014-09-19 21:09 UTC, soldatov
Details
fix prototype (8.61 KB, application/octet-stream)
2014-09-23 08:45 UTC, Vladimir Kvashin
Details
Could you try this pty on your remote arm, will it execute or fail as well? (524.00 KB, application/octet-stream)
2014-10-21 11:06 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-09-19 21:09:37 UTC
Build: Oracle Solaris Studio 12.4 (12.4 [2014/09/19 9ae3407e774c])
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 7

User Comments:
soldatov: scenario:
- Add remote folder to Favorites tab
- Create zzzz.c and zzzzz.c
- Rename zzzz.c to zzzzz.c
==> exception




Stacktrace: 
java.io.IOException: Can not rename to zzzzz.c: the file already exists
   at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.renameImpl(RemoteFileObjectBase.java:660)
   at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.rename(RemoteFileObjectBase.java:637)
   at org.netbeans.modules.remote.impl.fs.RemoteFileObject.rename(RemoteFileObject.java:238)
   at org.openide.loaders.FileEntry.rename(FileEntry.java:96)
   at org.openide.loaders.MultiDataObject.handleRename(MultiDataObject.java:640)
   at org.openide.loaders.DataObject$1Op.run(DataObject.java:768)
Comment 1 soldatov 2014-09-19 21:09:38 UTC
Created attachment 149381 [details]
stacktrace
Comment 2 Vladimir Kvashin 2014-09-23 08:45:49 UTC
Created attachment 149452 [details]
fix prototype

It isn't a complete fix, but rather a protptype:
class loaders and bundles should be checked,
other places where exceptions occur should be changed as well.
Comment 3 Vladimir Kvashin 2014-10-21 11:06:42 UTC
Created attachment 150019 [details]
Could you try this pty on your remote arm, will it execute or fail as well?

Please copy the attached pty binary to your remote arm machine and try launching it there - will it work?
Comment 4 soldatov 2014-10-21 11:12:04 UTC
(In reply to Vladimir Kvashin from comment #3)
> Created attachment 150019 [details]
> Could you try this pty on your remote arm, will it execute or fail as well?
> 
> Please copy the attached pty binary to your remote arm machine and try
> launching it there - will it work?
Is it valid comment? This bug I filed from Oracle Solaris Studio, but I can check Solaris Studio + ARM too.
Comment 5 Vladimir Kvashin 2014-10-21 14:07:07 UTC
(In reply to soldatov from comment #4)
> Is it valid comment?...
Oh, sorry, I meant adding this to another bug  (issue 245243).
Please disregard my previous comment and attachment
Comment 6 Vladimir Kvashin 2014-10-23 07:07:26 UTC
fixed by
http://hg.netbeans.org/cnd-main/rev/ba45da6bf0fb
Comment 7 Quality Engineering 2014-11-07 03:51:41 UTC
Integrated into 'main-silver', will be available in build *201411070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ba45da6bf0fb
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #247315 - java.io.IOException: Can not rename to zzzzz.c: the file already exists
Comment 8 soldatov 2014-11-07 12:31:34 UTC
verified in trunk (NetBeans IDE Dev (Build 201411070002))
Comment 9 Quality Engineering 2014-11-10 23:21:53 UTC
Integrated into 'releases/release801', will be available in build *201411102027* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e8227ae5ff4c
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #247315 - java.io.IOException: Can not rename to zzzzz.c: the file already exists
(transplanted from ba45da6bf0fb2221a830f1bc4ec9749e71bc91c8)
Comment 10 Alexander Pepin 2014-11-13 15:54:33 UTC
Verified in patch2 build 20141110.
Comment 11 Vladimir Kvashin 2014-11-13 18:23:28 UTC
Additional fix (better message):
http://hg.netbeans.org/cnd-main/rev/409816097a48
Comment 12 Quality Engineering 2014-11-14 03:56:46 UTC
Integrated into 'main-silver', will be available in build *201411140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/409816097a48
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: additional fix (better message) for #247315 java.io.IOException: Can not rename to zzzzz.c: the file already exists