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 15599 - Problem with autoupdating XML module
Summary: Problem with autoupdating XML module
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 15648 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-09-18 16:40 UTC by Jan Kovar
Modified: 2008-12-23 10:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file from ide running with -J-Dorg.netbeans.core.modules=0 -J-Dnetbeans.debug.exceptions=true switches (62.34 KB, text/plain)
2001-09-19 12:07 UTC, Martin Grebac
Details
Suggested patch (1.70 KB, patch)
2001-09-19 17:19 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kovar 2001-09-18 16:40:16 UTC
Steps to reproduce:
1. Get fresh FFJ3.0 version
2. On autoupdate center for local/intest intest get XML and Java modules from 
Sustaining directory
3. Install them, IDE restarts
4. Now the XML bugs does not work (in this case for example Bug #4493221)
5. Restart IDE
6. XML bugs do work now.

Looks like the class loader from some reason uses old classes after first 
restart.
Comment 1 Jesse Glick 2001-09-19 09:52:42 UTC
Please try to narrow this down to a smaller testcase if possible, with
dummy test modules. I cannot access the "local sustaining directory"
you refer to (sorry) and anything involving downloading huge files
will make it take much longer for me to even start investigating
this...
Comment 2 Martin Grebac 2001-09-19 12:07:48 UTC
Created attachment 2596 [details]
log file from ide running with -J-Dorg.netbeans.core.modules=0 -J-Dnetbeans.debug.exceptions=true switches
Comment 3 Martin Grebac 2001-09-19 12:14:17 UTC
The ide.log I attached exactly follows steps 1-4 from the reproduction
process described in this bug by J.Kovar. 
Comment 4 Jan Kovar 2001-09-19 12:28:01 UTC
Jesse, what you can do is to use just java and XML nbm files and you 
can use local versions of them stored at Transfer\anebuzelsky\JP3.1-
Merlin directory.

Also here is the quickest way how to see whether the update works 
fine:
1. Get Java and XML nbm installed
2. Create new XML file
3. on the root element do right-click and choose new-attribute
4. fill any name and click on value, if an exception is thrown the 
version of the class 
(org.netbeans.modules.xml.tree.beans.customizer.TreeAttributeCustomize
r) stored in userdir is not used. 
5. restart the IDE
6. the fix work properly
Comment 5 Jesse Glick 2001-09-19 13:47:16 UTC
Martin writes:

------%<------
this is an excerpt from ide.log I attached to #15599 with the switches 
you suggested. This part looks 'buggy' to me.

[org.netbeans.core.modules] Module already exists 
org.netbeans.modules.xml: existing.base=1 existing.release=1 
existing.spec=1.5.0.1 mi.base=2 mi.release=1 mi.spec=1.5
[org.netbeans.core.modules] Older than existing module, ignoring...
------%<------

I think this is fine, that means the homedir xml.jar is consider older
than the "existing" userdir xml.jar--don't be scared of strange
release32 module installer messages, they don't make any sense to me
either, because nobody really understands how it works.

I will try to get the NBMs mentioned and test against 3.0 FCS EE as of
Aug 17, which I have a copy of lying around.
Comment 6 Jan Zajicek 2001-09-19 15:03:37 UTC
Jesse, I'll send you the nbms, they are quite big to attach them here. 

Or you can find them on my workstation:
honza-sun.czech
location:
/export/share/
Test them against FFJ3.0 (build from 010817). Thanks.
Comment 7 Jesse Glick 2001-09-19 17:19:58 UTC
Created attachment 2607 [details]
Suggested patch
Comment 8 Jesse Glick 2001-09-19 17:21:44 UTC
I was able to reproduce, thank you for the detailed instructions...

Seems to happen when: more than one module is updated simultaneously;
and among the modules after the first, at least one is used as a
dependency by some other enabled module; and then with 50% probability
per updated module.

I am attaching a patch to 3.2.1 sources which I believe fixes the
problem. I have *not* committed it to CVS. Naturally this should be
taken with extreme caution; any change to the module system (especally
in 3.2) has the potential to introduce other more serious bugs, and
should be tested well before using. It is very unlikely this bug would
be present in 3.3 as the module system is completely rewritten and the
system of upgrades is handled quite differently.

Note that the line "[AutoUpdate] warning: no license found with name"
printed on the console probably means someone screwed up making the
NBM file.
Comment 9 Jan Chalupa 2001-09-20 12:56:35 UTC
*** Issue 15648 has been marked as a duplicate of this issue. ***
Comment 10 Jan Zajicek 2001-09-20 14:33:23 UTC
This and the duplicated issue seems fine now. I'll verify them when
the new version of JP will be avaible.
Comment 11 pzajac 2002-09-25 15:26:45 UTC
verified in Nb 200209250100
This old bug.  We have now ffj4.0 version
Comment 12 Quality Engineering 2003-07-01 16:51:22 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.