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 200042

Summary: Bugzilla classes are initialized on startup
Product: connecteddeveloper Reporter: Jaroslav Tulach <jtulach>
Component: Issuetracking FrameworkAssignee: Tomas Stupka <tstupka>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE, REGRESSION
Priority: P3    
Version: 7.1   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2011-07-11 12:11:31 UTC
Build 
http://deadlock.netbeans.org/hudson/job/ergonomics/2571/
detected few new classes being loaded on start see

http://deadlock.netbeans.org/hudson/job/ergonomics/2571/artifact/ide.kit/build/test/qa-functional/work/o.n.t.i.W/testWhitelist3/

There are classes bugtracking related classes loaded on start with an open project that should not be loaded:
org.netbeans.modules.bugtracking.spi.IssueProvider
org.netbeans.modules.bugtracking.spi.IssueProvider$LazyIssue
org.netbeans.modules.bugtracking.tasklist.TaskListProvider
org.netbeans.modules.bugtracking.tasklist.TaskListProvider$RefreshTask
org.netbeans.modules.bugzilla.Bugzilla
org.netbeans.modules.bugzilla.BugzillaConfig
org.netbeans.modules.bugzilla.issue.BugzillaIssueProvider
org.netbeans.modules.bugzilla.util.BugzillaUtil

It is probably unavoidable to load TaskListProvider. That is OK, it seems like an infrastructure. Whitelist it. But the system should not try to load bugzilla classes at all, as no bugzilla system is defined.

See how to at 
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList
Comment 1 Quality Engineering 2011-07-12 14:14:45 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/177b89550386
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #200042: Temporary whitelisting these classes
Comment 2 Jaroslav Tulach 2011-07-20 07:29:24 UTC
"Profiling" snapshot showing who loads what violator:
http://netbeans.org/bugzilla/attachment.cgi?id=109525
Comment 3 Tomas Stupka 2012-03-16 16:54:54 UTC
since core-main #e0e8efdd490f are connectors registered via annotation 

what stil has to be done is not to lookup tasklistproviders in case there is no repository defined
Comment 4 Tomas Stupka 2012-03-19 09:39:42 UTC
fixed in core-main #2b6f8297321a
Comment 5 Quality Engineering 2012-03-20 12:50:06 UTC
Integrated into 'main-golden', will be available in build *201203200400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2b6f8297321a
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #200042 - Bugzilla classes are initialized on startup