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 73058 - Unexpected behaviour when working with suite component with broken suite reference
Summary: Unexpected behaviour when working with suite component with broken suite refe...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on: 61227
Blocks:
  Show dependency tree
 
Reported: 2006-02-27 15:18 UTC by ratcrow
Modified: 2007-08-16 14:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (207.18 KB, text/plain)
2006-02-27 15:21 UTC, ratcrow
Details
ZIP file of screenshots showing Java Platform Manager (94.10 KB, application/x-compressed)
2006-02-28 17:40 UTC, ratcrow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratcrow 2006-02-27 15:18:32 UTC
Steps to reproduce:
1) Select open project folder in Files tab
2) File | "Project" Properties

Dialog appears indicating "Previously set platform not found; switching to
default".  This happens every time, even though the Java and Netbeans platforms
are set.

3) Select "Libraries" category
4) Click "Add..." button

Dialog for "Add Module Dependency" appears, but NPE is thrown and fields never
enable.  Filter and Module fields show "Please wait..." but never change.

NPE is in SingleModuleProperties.java line 403 in getUniverseDependencies().
Comment 1 ratcrow 2006-02-27 15:21:45 UTC
Created attachment 29035 [details]
messages.log
Comment 2 ratcrow 2006-02-27 15:28:57 UTC
suite.properties file had a bad suite.dir (not sure how it got set, since the
module dependencies had been set up propertly through the IDE previously). 
Updating suite.dir to point to the right place seems to have helped.  Not sure
if the NPE still needs investigation...
Comment 3 Peter Pis 2006-02-28 09:34:51 UTC
Reassigning to "projects" for evaluation.
Comment 4 Jan Lahoda 2006-02-28 09:57:38 UTC
=>apisupport/project
Comment 5 Martin Krauskopf 2006-02-28 10:17:47 UTC
Is the version in which it happened really 5.0? Since you wrote that "...Java
and Netbeans platforms are set...". Java Platform can be set only in dev builds.
Comment 6 ratcrow 2006-02-28 17:38:27 UTC
Please see the following attached images regarding whether it is 5.0.

Comment 7 ratcrow 2006-02-28 17:40:16 UTC
Created attachment 29057 [details]
ZIP file of screenshots showing Java Platform Manager
Comment 8 Martin Krauskopf 2006-02-28 18:36:20 UTC
Yes, it is. Thanks. Just to note what you see in the About dialog would be
enough ;). (there is an option to set JDK per module/suite in properties dialog
in the upcoming release of APISupport - by this I was confused).

Anyway as you said your suite-component was corrupted and there is not Resolve
Broken Reference dialog or something like this yet (issue 61227). There are some
similar issues already. We probably could handle each special case in its own
way. But this would bring certain level of inconsistency. And you shouldn't be
able to get a project into inconsistent state if you do all through the IDE. If
yes it's another bug.

Let's keep this open to be sure we handle this case after 61227 (or whatever
similar) is implemented. Hopefully for 5.0u2.
Comment 9 Martin Krauskopf 2007-08-16 14:26:44 UTC
I've fixed the NPE and added some diagnostics which should give to the user the clues what is wrong. 

src/org/netbeans/modules/apisupport/project/ui/customizer/Bundle.properties;
new revision: 1.86; previous revision: 1.85
src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java;
new revision: 1.71; previous revision: 1.70