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 69029 - IOException thrown after platform is removed
Summary: IOException thrown after platform is removed
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 73303 74830 75337 75460 76205 88760 118492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-21 11:32 UTC by Martin Krauskopf
Modified: 2007-10-11 17:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (9.91 KB, text/plain)
2005-11-21 13:06 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-11-21 11:32:58 UTC
1) Add new platform with NB Platform Manager
2) Set it as a target platform for some module
3) Go to NBPM, remove the platform --> IOE is thrown

Since property change is fired and NbModuleProject tries to reload module-list.
Solution could be e.g. call getPlatform(true) in this case and fallback to
default. Maybe also pop-up dialog with Information that project X uses platform
Y and that default is used after deletion.
Or I would check all open projects when deleting platform in NBPM and show the
user a "Yes/No" warning. If the user confirms I would adjust all project to use
the default platform and then delete. Feel free to reassign.
Comment 1 Martin Krauskopf 2005-11-21 13:06:17 UTC
Created attachment 27088 [details]
NPE
Comment 2 Jesse Glick 2005-12-05 22:04:09 UTC
Reproducible, but does not look like a P2 to me. The IOE is printed only to the
log file. If you open the project's properties, a dialog is displayed notifying
you that the platform will be switched to the default. Probably when the
platform is deleted, the project's platform should be automatically switched to
the default - I don't want to show a dialog for this since it could conflict
with other dialogs (e.g. Platform Manager). Should anyway rewrite the UI of
broken platform notification in a subsequent release, to use a more consistent
pattern (Jano Rojcek has some ideas I think).
Comment 3 Jesse Glick 2006-03-24 14:37:58 UTC
*** Issue 73303 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2006-04-21 18:38:47 UTC
*** Issue 75337 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Danek 2006-04-24 12:52:15 UTC
as duplicate says - this is highly visible when user opens module from 5.0 in 5.5..
raising to P2..
Comment 6 Jesse Glick 2006-04-24 13:14:25 UTC
musilt2: probably should be fixed for next apisupport release but will not be
touched for 5.5. The bug you probably want to be tracking is rather the root
cause, issue #75324.
Comment 7 Tomas Danek 2006-04-24 13:38:08 UTC
*** Issue 74830 has been marked as a duplicate of this issue. ***
Comment 8 pzajac 2006-04-25 08:44:43 UTC
*** Issue 75460 has been marked as a duplicate of this issue. ***
Comment 9 pzajac 2006-05-11 12:40:45 UTC
*** Issue 76205 has been marked as a duplicate of this issue. ***
Comment 10 pzajac 2006-05-30 10:38:15 UTC
The exception is also thrown when on removing project from module suite. 
Comment 11 Jesse Glick 2006-11-08 16:57:35 UTC
*** Issue 88760 has been marked as a duplicate of this issue. ***
Comment 12 Jesse Glick 2007-08-24 17:18:35 UTC
Will need to be reevaluated.
Comment 13 Jesse Glick 2007-09-06 18:13:40 UTC
Issue #74830 actually has a somewhat different stack trace, from SingleModuleProperties.
Comment 14 Jesse Glick 2007-09-06 18:22:38 UTC
A proper UI would better show you what was wrong with a project at any point and let you correct it. Not for 6.0. In the
meantime, suppressing these exceptions.

Checking in ui/LibrariesNode.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/LibrariesNode.java,v  <--
 LibrariesNode.java
new revision: 1.21; previous revision: 1.20
done
Checking in NbModuleProject.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java,v  <--
 NbModuleProject.java
new revision: 1.157; previous revision: 1.156
done
Checking in ui/customizer/SingleModuleProperties.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java,v
 <--  SingleModuleProperties.java
new revision: 1.72; previous revision: 1.71
done
Comment 15 Jesse Glick 2007-10-11 17:28:29 UTC
*** Issue 118492 has been marked as a duplicate of this issue. ***