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 57246 - Too much time is needed to creation of new ent app
Summary: Too much time is needed to creation of new ent app
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-03-31 12:05 UTC by Lukas Jungmann
Modified: 2006-05-30 11:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-03-31 12:05:08 UTC
Test setup:

1. start ide with new user dir (in default location)
2. register SJS AS 8.1u1 in IDE


Test case 1:
- go to new Enterprise application wizard, leave there default values and finish
the wizard

Test case 2:
- go to new Enterprise application wizard, change the location of project (to
eg. c:, d: or whatever else) and finish the wizard


Tear down:
- exit from IDE
- delete userdir



Test results:

  X || beta | 200503301800
---------------------------
| 1 ||  6-7 |           8 |
| 2 ||   2  |       42-43 |
---------------------------
| 3 ||  11  |          54 |
---------------------------

 * all times are in seconds
** I used stopwatches, so the real results are a little bit different - the
difference should be max. 2 seconds

1 - time needed to close new enterprise application wizard after pressing
"Finish" button

2 - time needed to close Select project location dialog after pressing its
"Open" button

3 - total time needed to go through the new enterprise application wizard with
changing project location
Comment 1 Petr Jiricka 2005-03-31 15:56:50 UTC
Marku, can you please look at this one? Thanks.
Comment 2 Marek Fukala 2005-04-01 09:32:14 UTC
The problem is caused by a wrong file format generation in wizard. Then code
inside following method 

org.netbeans.modules.j2ee.common.ui.wizards.PanelProjectLocationVisual.valid()

tries to call File.isValid() on files like \\nbproject, \\nbproject\build.xml
etc. several times. Since the format of the filename comprises a network path
the one method call File.isValid() on such a file takes more than 5 seconds. The
isValid() on such a files is called more times in the wizard so the agregate
time can be 20 seconds and more :-(.

I will fix it.
Comment 3 Marek Fukala 2005-04-01 12:42:43 UTC
fixed

Checking in PanelProjectLocationVisual.java;
/cvs/j2ee/utilities/src/org/netbeans/modules/j2ee/common/ui/wizards/PanelProjectLocationVisual.java,v
 <--  PanelProjectLocationVisual.java
new revision: 1.9; previous revision: 1.8
done
Comment 4 Lukas Jungmann 2005-04-03 23:10:44 UTC
v. 200504031800