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 152964 - autoupdate classes are loaded during NetBeans startup
Summary: autoupdate classes are loaded during NetBeans startup
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://wiki.netbeans.org/FitnessViaWh...
Keywords: PERFORMANCE, REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2008-11-11 15:37 UTC by Alexander Kouznetsov
Modified: 2009-02-19 20:23 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stacktraces (7.10 KB, text/plain)
2008-11-11 15:39 UTC, Alexander Kouznetsov
Details
Stacktraces for 1st NetBeans startup (7.10 KB, text/plain)
2008-11-17 12:49 UTC, Alexander Kouznetsov
Details
Stacktraces (7.09 KB, text/plain)
2008-11-27 17:05 UTC, Alexander Kouznetsov
Details
Stacktrace (1.58 KB, text/plain)
2008-12-08 13:07 UTC, Alexander Kouznetsov
Details
patch to Installer.java (824 bytes, patch)
2008-12-08 13:19 UTC, dlipin
Details | Diff

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

org.netbeans.api.autoupdate.UpdateUnitProvider
org.netbeans.modules.autoupdate.pluginimporter.ImportManager
org.netbeans.modules.autoupdate.ui.api.PluginManager

Please don't load these classes during NetBeans startup.

Regression occurred between 10/21/2008 and 11/05/2008.
Comment 1 Alexander Kouznetsov 2008-11-11 15:39:52 UTC
Created attachment 73632 [details]
Stacktraces
Comment 2 Jiri Rechtacek 2008-11-12 13:12:02 UTC
fixed core-main/rev/f789826ef074
These class will not be loaded anymore with the exception one time when IDE user has imported settings from previous
release.
Comment 3 Quality Engineering 2008-11-13 05:07:32 UTC
Integrated into 'main-golden', will be available in build *200811130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f789826ef074
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #152964: autoupdate classes are loaded during NetBeans startup
Comment 4 Alexander Kouznetsov 2008-11-17 12:35:04 UTC
These classes are still loaded with 081117. They are loaded on both 1st and 2nd NetBeans startup.

Comment 5 Alexander Kouznetsov 2008-11-17 12:49:19 UTC
Created attachment 73826 [details]
Stacktraces for 1st NetBeans startup
Comment 6 Jiri Rechtacek 2008-11-26 15:04:03 UTC
Alexander, stacktraces for 1st NetBeans startup should contain loading such cases, it's okay. I need the stacktraces
from 2nd which shouldn't contain org.netbeans.api.autoupdate.UpdateUnitProvider,
org.netbeans.modules.autoupdate.pluginimporter.ImportManager or org.netbeans.modules.autoupdate.ui.api.PluginManager.
Could you attach stack trace from 2nd run of IDE to evaluation of the problem? Thanks
Comment 7 Alexander Kouznetsov 2008-11-27 17:05:27 UTC
Created attachment 74252 [details]
Stacktraces
Comment 8 Alexander Kouznetsov 2008-11-27 17:06:23 UTC
Stacktraces for 2nd NetBeans Startup are attached.
Comment 9 Jiri Rechtacek 2008-12-03 13:03:24 UTC
Should be fixed core-main/rev/b010b207e498. There was an another reason why these classes were loaded even though the
previous fix rid other reasons. Please, verify if it works now. Thanks
Comment 10 Quality Engineering 2008-12-05 05:58:52 UTC
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b010b207e498
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #152964: avoid some autoupdate classes loaded during NetBeans startup
Comment 11 Alexander Kouznetsov 2008-12-08 13:05:54 UTC
The following class is still loaded with 081208:

org.netbeans.api.autoupdate.UpdateUnitProvider
Comment 12 Alexander Kouznetsov 2008-12-08 13:07:39 UTC
Created attachment 74691 [details]
Stacktrace
Comment 13 dlipin 2008-12-08 13:19:13 UTC
Created attachment 74692 [details]
patch to Installer.java
Comment 14 dlipin 2008-12-08 13:20:05 UTC
Jirka, how about the proposed solution (see the patch)?
Comment 15 Jiri Rechtacek 2008-12-08 16:05:36 UTC
The Dima's patch applied: http://hg.netbeans.org/core-main/rev/c1fbd9a0387e
Comment 16 Alexander Kouznetsov 2008-12-16 09:57:33 UTC
Verified with 081215