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 143048 - Startup regression: com.mysql.jdbc
Summary: Startup regression: com.mysql.jdbc
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: MySQL (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL: http://wiki.netbeans.org/FitnessViaWh...
Keywords: PERFORMANCE, REGRESSION, TEST
: 136745 (view as bug list)
Depends on:
Blocks: 129573
  Show dependency tree
 
Reported: 2008-08-06 13:55 UTC by Alexander Kouznetsov
Modified: 2008-08-19 10:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktraces (27.66 KB, text/plain)
2008-08-06 13:58 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2008-08-06 13:55:36 UTC
Performance test reports there is a NetBeans startup regression which is caused by the loading of the following classes:

com.mysql.jdbc.ConnectionImpl
com.mysql.jdbc.MysqlIO
com.mysql.jdbc.NonRegisteringDriver
com.mysql.jdbc.SQLError

Please don't load these classes during NetBeans startup.

Comment from jtulach: "No MySQL unless someone opens Services tab and 
expands database node."
Comment 1 Alexander Kouznetsov 2008-08-06 13:58:31 UTC
Created attachment 66690 [details]
Stacktraces
Comment 2 David Vancouvering 2008-08-07 18:27:36 UTC
I recently checked in a change where we no longer try to connect to MySQL at module load.  We still do check the local
filesystem for installations of MySQL at module load, and if the rule is "no MySQL unless someone expands the databases
node" then this should get moved.
Comment 3 Andrei Badea 2008-08-11 15:14:08 UTC
Just a note: if you make the MySQL detection lazy please make sure to try to limit the impact on the duration of the
initialization of the Databases node. You don't want to make the Database node slower even for those users that don't
have a local MySQL, or don't care about the automatic detection because they don't use the start/stop features.
Comment 4 David Vancouvering 2008-08-12 18:24:43 UTC
Fixed with changeset 5b0ec4174945

I typed in the wrong issue id in the commit comment, so I will mark this issue as fixed once it is pushed to main.
Comment 5 David Vancouvering 2008-08-12 19:02:18 UTC
Previous change set checked for installations every time. Should only check if MySQL is not currently registered and has
not previously been *unregistered*.
Comment 6 David Vancouvering 2008-08-12 19:15:10 UTC
756e8ac9159a

This change set makes sure we don't search for installations if MySQL has already been registered (or registered and
subsequently removed manually by the user)

Marking fixed.
Comment 7 David Vancouvering 2008-08-12 19:21:10 UTC
Fixed
Comment 8 David Vancouvering 2008-08-16 00:52:20 UTC
*** Issue 136745 has been marked as a duplicate of this issue. ***
Comment 9 Alexander Kouznetsov 2008-08-19 09:48:21 UTC
New violator registered on 080811:

org.netbeans.modules.db.mysql.installations.BundledInstallation

Classes from issue 136745:

org.netbeans.modules.db.mysql.DatabaseServer
org.netbeans.modules.db.mysql.DatabaseServerManager
org.netbeans.modules.db.mysql.DatabaseUser
org.netbeans.modules.db.mysql.impl.ConnectionProcessor
org.netbeans.modules.db.mysql.impl.DbExplorerConnectionListener
org.netbeans.modules.db.mysql.impl.Installation
org.netbeans.modules.db.mysql.impl.Installation$Command
org.netbeans.modules.db.mysql.impl.InstallationManager
org.netbeans.modules.db.mysql.impl.ModuleInstaller
org.netbeans.modules.db.mysql.impl.ModuleInstaller$RegisterMySQL
org.netbeans.modules.db.mysql.impl.MySQLDatabaseServer
org.netbeans.modules.db.mysql.impl.MySQLDatabaseServer$DatabaseCommand
org.netbeans.modules.db.mysql.impl.MySQLOptions
org.netbeans.modules.db.mysql.impl.ServerNodeProvider
org.netbeans.modules.db.mysql.installations.LinuxStandaloneInstallation
org.netbeans.modules.db.mysql.installations.LinuxXAMPPInstallation
org.netbeans.modules.db.mysql.installations.MAMPInstallation
org.netbeans.modules.db.mysql.installations.SXDEWebStackInstallation
org.netbeans.modules.db.mysql.installations.WindowsStandalone50Installation
org.netbeans.modules.db.mysql.installations.WindowsStandalone51Installation
org.netbeans.modules.db.mysql.nodes.DatabaseNode
org.netbeans.modules.db.mysql.nodes.ServerNode
org.netbeans.modules.db.mysql.nodes.ServerNode$ChildFactory
org.netbeans.modules.db.mysql.nodes.ServerNode$InstanceComparator
org.netbeans.modules.db.mysql.util.DatabaseUtils
org.netbeans.modules.db.mysql.util.DatabaseUtils$ConnectStatus
org.netbeans.modules.db.mysql.util.DriverClassLoader
org.netbeans.modules.db.mysql.util.Utils
Comment 10 Alexander Kouznetsov 2008-08-19 10:44:01 UTC
Verified with 080819 Dev build