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 118437 - IDE hangs when Creator 2.1's project with MySQL connection is opening
Summary: IDE hangs when Creator 2.1's project with MySQL connection is opening
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 19:37 UTC by _ alexpetrov
Modified: 2007-10-12 19:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (37.08 KB, text/plain)
2007-10-10 19:38 UTC, _ alexpetrov
Details
Thread dump (18.71 KB, text/plain)
2007-10-10 19:39 UTC, _ alexpetrov
Details
Legacy project (27.05 KB, application/octet-stream)
2007-10-10 19:45 UTC, _ alexpetrov
Details
Web application (26.15 KB, application/octet-stream)
2007-10-12 17:32 UTC, _ alexpetrov
Details
Thread dump (20.75 KB, text/plain)
2007-10-12 17:34 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexpetrov 2007-10-10 19:37:08 UTC
see http://www.netbeans.org/issues/show_bug.cgi?id=102812
(comments from pal127, 07/31/2007)

Product Version: NetBeans 5.5.1 (0704122300) Creator 2.1 RC2 (070516_20000) 
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86
Sun Application Server 9.1

1. Start Creator 2 Update1.
   Define Sun Application Server 9.1 (Runtime, Servers).
   Connect to DB MySQL (Runtime, Databases): 
   jdbc:mysql://rave-db.russia.sun.com:3306/mysql, user/passw => travel/travel, default schema
2. Create new project (JavaEE 5, SunAppServer). 
   DnD JSF component Table on Designer. DnD any MySQL DB table on it.
3. Save and close project.
   Shutdown Creator 2.1.

Product Version: NetBeans IDE Dev (Build 200710100000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86

1. Delete a directory <user_home>/.netbeans/dev
   Start NB VWP 6.0 with import settings from 5.5.1

Result:
- MySQL connection will be presented under Databases in Services.
- Sun Application Server (in addition to Glassfish V2) will be presented under Servers in Services.

2. Connect to MySQL DB
3. Open project, created by Creator 5.5.1.

Result:
- Legacy project will be opened properly.

4. In the window "Projects" expand the project root tree node

Result:
- IDE will hang (see attachments: log, thread dump)
Comment 1 _ alexpetrov 2007-10-10 19:38:11 UTC
Created attachment 50621 [details]
log
Comment 2 _ alexpetrov 2007-10-10 19:39:04 UTC
Created attachment 50622 [details]
Thread dump
Comment 3 John Baker 2007-10-10 19:44:59 UTC
Does the page open with the project or just the project?

This has been tested and nothing has changed since
Comment 4 _ alexpetrov 2007-10-10 19:45:45 UTC
Created attachment 50623 [details]
Legacy project
Comment 5 John Baker 2007-10-10 20:35:13 UTC
There was some added synchronization added to db module for today's build, if related.

Still there are some public methods that are under synchronization.  I'll try only synchronize
the parsing of context.xml
Comment 6 John Baker 2007-10-10 21:45:41 UTC
The attached project migrated successfully using the latest build.

Were there any other projects opened at the same time?
Comment 8 _ alexpetrov 2007-10-12 17:26:28 UTC
I'm sorry, but I still can reproduced it on:

Product Version: NetBeans IDE Dev (Build 200710120000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86.

Please, see the last thread dump.
There were no directory <user_home>/.netbeans/dev before project migration.
There are no other opened projects (just the last attached project).

Don't forget to expand the project root tree node in the window "Projects" after project opening - IDE will hang.
Comment 9 John Baker 2007-10-12 17:30:58 UTC
I still haven't been able to reproduce.

Please attach a new thread dump.

Also, are there any other projects opened at the time of migration?
Comment 10 _ alexpetrov 2007-10-12 17:32:22 UTC
Created attachment 50841 [details]
Web application
Comment 11 John Baker 2007-10-12 17:34:34 UTC
Note this issue was filed on Wed so shouldn't count against the Quality Criteria
Comment 12 _ alexpetrov 2007-10-12 17:34:53 UTC
Created attachment 50842 [details]
Thread dump
Comment 13 John Baker 2007-10-12 18:10:56 UTC
Note, if any pages are opened while the migration process is running then other process other than migration may
block migration.

For example, if the Open Project dialog is opened while pages are opening then the Open Project dialog will hang
Comment 14 John Baker 2007-10-12 18:29:10 UTC
after reducing the scope of synchronization, I forgot to unsynchronize another method.
Comment 15 _ alexpetrov 2007-10-12 19:00:05 UTC
Verified on:

Product Version: NetBeans IDE Dev (Build 200710120000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86.
+
new org-netbeans-modules-visualweb-dataconnectivity.jar, which John sent me.