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 54882 - Assertion error when upgrading 4.0 project
Summary: Assertion error when upgrading 4.0 project
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 15:28 UTC by Marek Fukala
Modified: 2006-03-24 12:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The Assertion Error (892 bytes, text/plain)
2005-02-11 15:30 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2005-02-11 15:28:33 UTC
[20040211]
to reproduce:
1) created a nb4.0 project
2) run current 4.1 build 
3) open the project
=> the project has some broken references
4) resolve them
=> you are asked to upgrade the project
5) click OK
=> 5 seconds after the upgrade an assertion from
masterfs module is thrown.

It seems not to have any real impact except of the
user disturbance.
Comment 1 Marek Fukala 2005-02-11 15:30:52 UTC
Created attachment 20318 [details]
The Assertion Error
Comment 2 Marek Fukala 2005-02-11 15:37:07 UTC
This is likely caused by a bug in masterfs module. 

The problem is caused by a fact, that I use this code:

FileObject prfFO;
String confDir = "./conf";
...
prjFO.createFolder(confDir); 
...

This likely cause a fileobject for '.' is created and then when
refresh on the filesystem is called a
BaseFileObj.fireFileDeletedEvent(...) is called. Inside this code
there is an assertion that the deleted fileobject doesn't exist, which
is not true.

Even it seems to be a problem in the fileobjects, I will fix it on my
side by removing the . form the file path.
Comment 3 Marek Fukala 2005-02-11 15:45:45 UTC
fixed on web project side

Checking in UpdateHelper.java;
/cvs/web/project/src/org/netbeans/modules/web/project/UpdateHelper.java,v
 <--  UpdateHelper.java
new revision: 1.7; previous revision: 1.6
done
Comment 4 zikmund 2005-07-13 16:19:50 UTC
Verified.