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 210655 - Throw IOException! was: AssertionError: FileObject for C:\internationalization\NewJFrame.form not found.
Summary: Throw IOException! was: AssertionError: FileObject for C:\internationalizatio...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 210635 210656 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-04 01:17 UTC by MackSix
Modified: 2012-05-24 05:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174190


Attachments
stacktrace (8.32 KB, text/plain)
2012-04-04 01:17 UTC, MackSix
Details
stacktrace (8.19 KB, text/plain)
2012-04-04 01:44 UTC, MackSix
Details
Project that exhibits the problem. (87.00 KB, application/zip)
2012-04-04 01:53 UTC, MackSix
Details
stacktrace (8.33 KB, text/plain)
2012-04-23 07:50 UTC, Maksim Khramov
Details
stacktrace (8.23 KB, text/plain)
2012-04-27 05:29 UTC, MackSix
Details
stacktrace (8.26 KB, text/plain)
2012-05-15 17:54 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-04 01:17:47 UTC
Build: NetBeans IDE Dev (Build 201204030400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: 1.) Moved JFrame.java form from one package to another in a Automatic Internationalization project. 2) Moved JFrame.java form back to original package. 
This AssertionError was thrown.




Stacktrace: 
java.lang.AssertionError: FileObject for C:\Users\Mark\Documents\NetBeansProjects\Internationalization\src\internationalization\NewJFrame.form not found.
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.handleMoveCopy(BaseFileObj.java:350)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:301)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.move(BaseFileObj.java:277)
   at org.openide.loaders.FileEntry.move(FileEntry.java:116)
   at org.openide.loaders.MultiDataObject.handleMove(MultiDataObject.java:736)
   at org.openide.loaders.DataObject$2Op.run(DataObject.java:744)
Comment 1 MackSix 2012-04-04 01:17:48 UTC
Created attachment 117764 [details]
stacktrace
Comment 2 MackSix 2012-04-04 01:44:19 UTC
Created attachment 117768 [details]
stacktrace

1.) Opened "Internationalization" project in NetBeans. 2.) Drag and Dropped NewJFrame.java into "newpackage" package. 
This AssertionError was thrown.
Comment 3 MackSix 2012-04-04 01:53:09 UTC
Created attachment 117769 [details]
Project that exhibits the problem.

1.) Open attached Project in NetBeans.
2.) Drag and drop NewJFrame.java file into "newpackage" package and choose to refactor.

This AssertionError is thrown.
Comment 4 Maksim Khramov 2012-04-23 07:50:27 UTC
Created attachment 118610 [details]
stacktrace

Opened and edited file moved from one package to another and returned back...
Comment 5 Exceptions Reporter 2012-04-23 07:50:46 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=174190
Comment 6 MackSix 2012-04-27 05:29:28 UTC
Created attachment 118839 [details]
stacktrace

1) Created new package in Internationalized project. 2) Drag and droped JFrame file into new package. This occured.
Comment 7 javydreamercsw 2012-05-15 17:54:02 UTC
Created attachment 119495 [details]
stacktrace

Refactoring code to another package.
Comment 8 Jaroslav Tulach 2012-05-23 12:28:55 UTC
*** Bug 210635 has been marked as a duplicate of this bug. ***
Comment 9 Jaroslav Tulach 2012-05-23 12:29:08 UTC
*** Bug 210656 has been marked as a duplicate of this bug. ***
Comment 10 Jaroslav Tulach 2012-05-23 12:30:49 UTC
All reports are coming from Windows. Vista or 7.
Comment 11 Jaroslav Tulach 2012-05-23 14:15:25 UTC
The log
http://statistics.netbeans.org/exceptions/messageslog?id=576237
contains following message:

WARNING [org.netbeans.modules.mercurial]: Cannot rename file C:\Users\Mark\Documents\NetBeansProjects\Internationalization-Dos_clone0\src\internationalization\NewJFrame.form to C:\Users\Mark\Documents\NetBeansProjects\Internationalization-Dos_clone0\src\newpackage\NewJFrame.form

which seems to come from MercurialInterceptor.java. Please rather than printing messages throw IOException - that is the required contract in case you cannot create the target file...
Comment 12 Ondrej Vrabec 2012-05-23 14:39:51 UTC
fix: http://hg.netbeans.org/core-main/rev/e30b2024f0a2
Comment 13 Quality Engineering 2012-05-24 05:31:20 UTC
Integrated into 'main-golden', will be available in build *201205240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e30b2024f0a2
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #210655 - Throw IOException! was: AssertionError: FileObject for C:\internationalization\NewJFrame.form not found.