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 11810 - Infinite refreshing of loaders.FolderList.refresh()
Summary: Infinite refreshing of loaders.FolderList.refresh()
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks: 12179
  Show dependency tree
 
Reported: 2001-04-27 16:16 UTC by Jan Zajicek
Modified: 2008-12-22 21:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
dir.jar - unpack and mount the apiexamples dir in the step 3. (227.94 KB, application/octet-stream)
2001-07-20 20:38 UTC, Jan Zajicek
Details
traces.jar - add to {nbhome}/lib/patches in the step 5. (20.54 KB, application/octet-stream)
2001-07-20 20:38 UTC, Jan Zajicek
Details
externalizedModules.ser for step 6 (28.24 KB, application/octet-stream)
2001-07-20 20:38 UTC, Jan Zajicek
Details
installedModules.xml for step 6 (7.24 KB, text/plain)
2001-07-20 20:38 UTC, Jan Zajicek
Details
Simpler directory to test - apiexamples.zip (8.69 KB, application/octet-stream)
2001-07-20 20:37 UTC, akemr
Details
Patch for DataObjectPool (16.33 KB, application/octet-stream)
2001-07-20 20:37 UTC, akemr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zajicek 2001-04-27 16:16:31 UTC
Do not know how I got ide into this state, but I am able to reproduce it using
following steps:

1.unzip fresh build of NB32 and start it
2.install apisupport
3.mount attached directory
4.exit ide
5.put attached jar into {ide_home}/lib/patches //there were patched some classes
to dumping stack
6.overwrite in installedModules.xml and externalizedModules.ser in
{userdir}/modules by attached ones
7.start ide
8.expand the mounted directory from the step 3.
9.infinite calling of refresh starts, see terminal window

This causes that the ide is unusable because of high cpu load and long time to
expand folders in the explorer.

Can be solved by disabling and reenabling apisupport module.
Comment 1 Jan Zajicek 2001-04-27 16:19:30 UTC
Created attachment 1268 [details]
dir.jar - unpack and mount the apiexamples dir in the step 3.
Comment 2 Jan Zajicek 2001-04-27 16:20:58 UTC
Created attachment 1269 [details]
traces.jar - add to {nbhome}/lib/patches in the step 5.
Comment 3 Jan Zajicek 2001-04-27 16:22:50 UTC
Created attachment 1270 [details]
externalizedModules.ser for step 6
Comment 4 Jan Zajicek 2001-04-27 16:24:04 UTC
Created attachment 1271 [details]
installedModules.xml for step 6
Comment 5 akemr 2001-04-30 10:57:03 UTC
Fixed in main trunk.

Attached updater.jar with patch follows:
Comment 6 akemr 2001-04-30 10:59:00 UTC
Sorry, my previous comment was done by mistake. I thought
that is another bug :-)

So its NOT FIXED!
Comment 7 akemr 2001-05-02 15:05:24 UTC
Created attachment 1292 [details]
Simpler directory to test - apiexamples.zip
Comment 8 Jan Chalupa 2001-05-06 08:11:40 UTC
Target milestone -> 3.3
Comment 9 akemr 2001-05-15 14:44:15 UTC
There is incorrect order of dataloaders. ModuleDataLoader should be before 
JARDataLoader in order. e.g. if you change this order in Object Types problem 
disappear.

However there is a bug appeared in such situation. I tried to fix it - seems 
OK, patch for testing is attached.
Comment 10 akemr 2001-05-15 14:45:01 UTC
Created attachment 1371 [details]
Patch for DataObjectPool
Comment 11 Roger Blumer 2001-05-16 18:23:37 UTC
More detail from Ales; may help understand loader fix needed for 12179:

In 11810 was following problem:
 1. JARDataLoader was in order of dataloaders (visible in ObjectTypes)
   before ModuleDataLoader
 2. x.jarContent was recognized by JARDataLoader.
 3. ModuleDataLoader tries to recognize x-test.jar, which has primary
   file x.jarContent, so MDL tries to revalidate it. But because of
   order x.jarContent is recognized by JARDataLoader again.
 4. And there is a bug because tring to recognize this file again .. and
again

 My fix should fix the problem without change DL order, (avoid step 4.),
 but this x.jarContent won't be recognize with ModuleDataLoader without
 changing order of loaders.
Comment 12 akemr 2001-05-22 13:07:36 UTC
Fixed in main trunk.

Comment 13 Jan Zajicek 2001-06-06 08:58:57 UTC
verified in the trunk, the problem doesn't seem to appear any more
Comment 14 akemr 2001-06-06 09:04:28 UTC
Diff:

http://www.netbeans.org/unbranded-
source/browse/openide/src/org/openide/loaders/DataObjectPool.java.diff?
r1=1.36&r2=1.37
Comment 15 akemr 2001-06-12 08:16:01 UTC
Fixed in pilsen_fcs
Comment 16 Jan Chalupa 2001-08-27 14:46:17 UTC
Adjusting target milestone.
Comment 17 Quality Engineering 2003-07-01 16:11:07 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.