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 173222 - "Activating Java SE, Java SE, Java SE" at weird time
Summary: "Activating Java SE, Java SE, Java SE" at weird time
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: ERGONOMICS
Depends on:
Blocks:
 
Reported: 2009-09-29 02:00 UTC by _ tboudreau
Modified: 2009-10-14 14:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (53.34 KB, image/tiff)
2009-09-29 02:01 UTC, _ tboudreau
Details
Projects (60.35 KB, application/x-compressed)
2009-10-12 18:27 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2009-09-29 02:00:18 UTC
Create a new module suite (set of IDE extensions, not application).  Run it to test a module in the suite.

Create a new Java SE project.  Project is created on disk.  No "Activating Java SE" appears in project wizard.  Project is created.

Right click the package of the new project, and choose New > Panel to create a JPanel subclass.  Press Next.

Next step of the wizard shows a progress bar and says "Activating Java SE, Java SE, Java SE" - caption is definitely wrong (see screenshot).

Once it is ready, finish the wizard.

JPanel is created, BUT:
 - The corresponding .form file is not created
 - Guarded block markers in the editor are created, but guarded blocks are editable
 - (possibly unrelated) Deleting the created file triggers an OutOfMemoryError:  PermGen space
Comment 1 _ tboudreau 2009-09-29 02:01:25 UTC
Created attachment 88461 [details]
Screen shot
Comment 2 _ tboudreau 2009-10-02 19:17:34 UTC
Making this P2, as, more importantly than the "Java SE, Java SE, Java SE" text, this bug makes it extremely time-consuming to work on a module which you test 
by using the form editor.  You have to start NetBeans once, manually enable Java SE in Tools > Plugins, then shut NetBeans down and start it again before the 
form editor is able to create .form files.

The root of the problem seems to be that Java SE is not enabled when you create a new J2SE project - you can create the project and classpath scanning 
happens, but the Java SE cluster stays not enabled - apparently *something* gets enabled (since scanning happens), but not everything is enabled, and this 
breaks the form editor.
Comment 3 Jaroslav Tulach 2009-10-12 11:49:22 UTC
Works for me in clean build from Oct 11, but I may not exactly understand the steps to reproduce. However whatever I 
tried works OK. Closing.
Comment 4 _ tboudreau 2009-10-12 18:27:06 UTC
Reproducible 100% of the time with the attached modules - simply run Bean Library Module, clean it, run it, in the IDE that is started, follow the steps 
described.

I reproduced this in build 20091001 on Mac OS w/ JDK 6.  I'll try it in today's build and reopen if I can still reproduce the problem.
Comment 5 _ tboudreau 2009-10-12 18:27:55 UTC
Created attachment 89324 [details]
Projects
Comment 6 Jaroslav Tulach 2009-10-13 00:10:41 UTC
1. unzipped the ZIP
2. start full IDE with empty userdir
3. start netbeans, open project BeanLibraryModule
4. start BeanLibraryModule
5. exit the BeanLibraryModule application
6. open Beans module
7. create from in its bean package

Everything works OK.
Comment 7 _ tboudreau 2009-10-13 17:57:03 UTC
Works for me as well on Windows;  I will double-check that it works on Macintosh once I get a newer build installed on
my mac.

However, the string "Activating Java SE, Java SE, Java SE" is pretty weird - is there any way that can still be
constructed?  It suggests something more is wrong than just not activating modules aggressively enough.
Comment 8 Jaroslav Tulach 2009-10-14 08:21:43 UTC
I do not see such strange string either. If you give me steps to reproduce I can fix it (but I'll change priority to 
P4).
Comment 9 _ tboudreau 2009-10-14 14:45:29 UTC
Well, where is that string constructed?