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 198490 - NullPointerException at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.generatePropertyKey
Summary: NullPointerException at org.netbeans.modules.apisupport.project.ui.customizer...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 18:31 UTC by jfsalazar
Modified: 2011-05-23 19:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 178794


Attachments
stacktrace (3.71 KB, text/plain)
2011-05-10 18:31 UTC, jfsalazar
Details
project properties (420 bytes, application/octet-stream)
2011-05-12 06:04 UTC, jfsalazar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jfsalazar 2011-05-10 18:31:40 UTC
This bug was originally marked as duplicate of bug 185842, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 20.0-b11, Java(TM) SE Runtime Environment, 1.6.0_25-b06
OS: Windows 7

User Comments:
jfsalazar: Save my netbeans platform application normally yesterday and today I cant open it with all the modules.

I saved my projects in a USB memory.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.generatePropertyKey(SuiteUtils.java:435)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.attachSubModuleToSuite(SuiteUtils.java:407)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.addModule(SuiteUtils.java:281)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.access$200(SuiteUtils.java:91)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils$3.run(SuiteUtils.java:191)
   at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils$3.run(SuiteUtils.java:185)
Comment 1 jfsalazar 2011-05-10 18:31:45 UTC
Created attachment 108216 [details]
stacktrace
Comment 2 Jesse Glick 2011-05-10 23:56:39 UTC
Looks like the 'modules' property somehow got deleted from project.properties.
Comment 3 Jesse Glick 2011-05-10 23:57:03 UTC
core-main #e20e990bf271
Comment 4 jfsalazar 2011-05-11 04:43:33 UTC
ok. When I trying to re-insert the modules into the Netbeans Platform App an dialog windows appers with the following info:

"Module 'x' is already part of the module suite "x project"... Do you wish to remove the module from that suite and add it to 'x project' instead?"

Pressing 'OK' buttom but nothing ocurrs, the module is not include into the project. Trying again to include the module, the dialog doesn´t appears again and the module doesn't be included into my project.


Jesse, what netbeans version resolve this issue?


Note. English is not my natural language.
Comment 5 jfsalazar 2011-05-11 05:24:21 UTC
I haved to regenerate (remove & add again) the dependecies in all my modules projects created in my 'x project' and haved to create another Netbeans Platform App called 'x2 project' to add these modules because 'x project' can't accept them again.
Comment 6 Jesse Glick 2011-05-11 16:07:24 UTC
(In reply to comment #4)
> "Module 'x' is already part of the module suite "x project"... Do you wish to
> remove the module from that suite and add it to 'x project' instead?"
> 
> Pressing 'OK' buttom but nothing ocurrs, the module is not include into the
> project. Trying again to include the module, the dialog doesn´t appears again
> and the module doesn't be included into my project.

Not familiar with any such problem. Sounds like something is wrong with your suite's metadata (esp. nbproject/project.properties), but I am not sure what. If you know how to reproduce it - especially if you can produce a ZIP of a source tree which demonstrates it - please file as a fresh issue.
Comment 7 Quality Engineering 2011-05-11 19:40:00 UTC
Integrated into 'main-golden', will be available in build *201105111436* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e20e990bf271
User: Jesse Glick <jglick@netbeans.org>
Log: #198490: NullPointerException at org.netbeans.modules.apisupport.project.ui.customizer.SuiteUtils.generatePropertyKey
Comment 8 jfsalazar 2011-05-12 06:04:16 UTC
Created attachment 108239 [details]
project properties

Project properties file of the failed 'x project'.
Comment 9 Jesse Glick 2011-05-23 19:30:44 UTC
(In reply to comment #8)
> Project properties file of the failed 'x project'.

Corrupt; missing the 'modules' property, and others such as 'app.name', 'app.title', and 'branding.token' should be there as well if this was an application project. Do not know why that would have happened - file a _separate_ bug if you can find steps using the IDE's GUI that would cause all the standard properties to disappear. I did try making an app project and setting installer-related properties but this just appended those to the standard properties as expected.