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 204348

Summary: Missing platform when existing project is opened with ergonomics=on
Product: java Reporter: Masaki Katakai <masaki>
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 7.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot
Java SE project created on 7.0.1

Description Masaki Katakai 2011-10-28 01:10:52 UTC
Created attachment 112514 [details]
screenshot

Product Version: NetBeans IDE Dev (Build 201110270600)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: SunOS version 5.11 running on x86; ISO646-US; en (nb)

Just after NetBeans is started and ergonomics=on, I opened
existing project created by NetBeans 7.0.1 but missing
platform error happens.

It seems that it happens only when ergonomics is ON and
1st time when I open the existing project before Java SE
feature is enabled.

When I tried to create a new project before opening
Java SE project, it does not happens.

Here are the steps:
1. Prepare NetBeans 7.0.1 project (I'll attach an example - default Java project)
2. Clean netbeans directory
3. Start NetBeans 7.1 with ergonomics=on
   I downloaded zip file including all features
4. Try to open the NetBeans 7.0.1 project
5. Error mark is displayed on the project
6. Open project window, I notice "Missing Platform: default_platform"
   See screenshot in attachment

7. Close NetBeans and start again
8. The error disappeared
9. Close NetBeans

10. Clean netbeans directory
11. Start NetBeans 7.1 with ergonomics=on
12. Create a new java project
    Now project is created properly without such error
14. Open NetBeans 7.0.1 project
    This time, the project is loaded properly without such error
Comment 1 Masaki Katakai 2011-10-28 01:13:07 UTC
Created attachment 112515 [details]
Java SE project created on 7.0.1
Comment 2 Tomas Zezula 2011-10-31 09:31:08 UTC
Please try it with a new build, it's a duplicate of issue #202479.
I've tried to workaround the ergonomics issue by delaying the initialization, but maybe the layer merge is not done. If you are able to reproduce it with a new build (I am not able to reproduce it on Mac) please reopen the issue #202479.
Thanks very much.

*** This bug has been marked as a duplicate of bug 202479 ***