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.
Summary: | IDE is freezing, not able to open projects (Ubuntu 7.04) | ||
---|---|---|---|
Product: | obsolete | Reporter: | pcmreddy <pcmreddy> |
Component: | visualweb | Assignee: | John Baker <jbaker> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | yousufh |
Priority: | P1 | Keywords: | THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 106361 | ||
Attachments: | Stack trace |
Description
pcmreddy
2007-06-22 20:01:27 UTC
Created attachment 44293 [details]
Stack trace
Looks to be bad synchronization in DerbyWaiter. I just made a change yesterday to fix DerbyWaiter. I'll try to reproduce, in the meantime, please try an even more recent build : http://deadlock.netbeans.org/hudson/job/trunk/1106/artifact/nbbuild/dist/zip/netbeans-hudson-trunk-1106-full.zip It appears I had fixed this yesterday. In the attached thread dump, currently there's no statement on line 50 of DerbyWaiter the last statement that is said to be executed. Previously, I had an unsynchronized call to registerConnections and I fixed this yesterday. I can verify the fix on the trunk build : 1107, running on JDK1.6 and Linux Ubuntu 7.04 this has been fixed. Two calls to registerConnections(...) caused a deadlock. One unnecessary call was removed. File [changed]: DerbyWaiter.java Url: http://visualweb.netbeans.org/source/browse/visualweb/dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/naming/DerbyWaiter.java?r1=1.5&r2=1.6 Delta lines: +14 -10 --------------------- --- DerbyWaiter.java 16 Jun 2007 01:20:34 -0000 1.5 +++ DerbyWaiter.java 22 Jun 2007 00:17:04 -0000 1.6 @@ -47,22 +47,26 @@ public DerbyWaiter(boolean migration) { isMigration = migration; JDBCDriverManager.getDefault().addDriverListener(jdbcDriverListener); - registerConnections(); } private synchronized void registerConnections() { if (registered) { return; } + JDBCDriver[] drvsArray = JDBCDriverManager.getDefault().getDrivers(DRIVER_CLASS_NET); - if (drvsArray.length > 0) { if (isMigration) { DatabaseSettingsImporter.getInstance().locateAndRegisterDrivers(); DatabaseSettingsImporter.getInstance().locateAndRegisterConnections(true); + if (drvsArray.length > 0) { SampleDatabaseCreator.createAll("travel", "travel", "travel", "TRAVEL", "modules/ext/travel.zip", false, "localhost", 1527); - } else - SampleDatabaseCreator.createAll("travel", "travel", "travel", "TRAVEL", "modules/ext/travel.zip", false, "localhost", 1527); + } + return; + } + // Register sample database + if (drvsArray.length > 0) { + SampleDatabaseCreator.createAll("travel", "travel", "travel", "TRAVEL", "modules/ext/travel.zip", false, "localhost", 1527); registered = true; JDBCDriverManager.getDefault().removeDriverListener(jdbcDriverListener); } Could you please verify this issue for M10? Thanks. This issue is marked as a stopper for M10. Was the fix integrated into "release60-m10" branch? Verified in "release60-m10" and not reproducible. |