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 106657 - Current catalog URL must be changed
Summary: Current catalog URL must be changed
Status: VERIFIED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: AU Masters (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: rnovak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-14 14:09 UTC by Jaromir Uhrik
Modified: 2007-09-14 09:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch to autoupdate (1.16 KB, application/octet-stream)
2007-06-14 14:39 UTC, Jiri Rechtacek
Details
a patch file (1.16 KB, patch)
2007-06-14 14:39 UTC, Jiri Rechtacek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2007-06-14 14:09:03 UTC
The catalog for the trunk builds must have URL different than http://www.netbeans.org/updates/dev_1.18_.xml because the
dev_1.18_.xml needs to be there for users with older 6.0 dev builds. So that the dev_1.18_.xml must be rolled back an
the new catalog with different name must be created for newer builds.
Comment 1 Jaromir Uhrik 2007-06-14 14:26:13 UTC
And I have forgotten to mention that I got the NPE when connecting to the update center in former 60 dev builds.
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
	at org.openide.modules.SpecificationVersion.parse(SpecificationVersion.java:55)
	at org.openide.modules.SpecificationVersion.<init>(SpecificationVersion.java:46)
	at org.netbeans.modules.autoupdate.services.FeatureUpdateElementImpl.<init>(FeatureUpdateElementImpl.java:61)
	at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:169)
	at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:82)
	at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:62)
	at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:76)
	at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:76)
	at org.netbeans.modules.autoupdate.ui.PluginManagerUI.initialize(PluginManagerUI.java:146)
	at org.netbeans.modules.autoupdate.ui.PluginManagerUI$1.run(PluginManagerUI.java:68)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 2 Jiri Rechtacek 2007-06-14 14:38:16 UTC
The URL could be http://www.netbeans.org/updates/dev_1.22_.xml. I attach a patch w/ changes what must be integrated into
maintrunk. Then I assign to Robert who should generate on new place of catalog.
Comment 3 Jiri Rechtacek 2007-06-14 14:39:00 UTC
Created attachment 43696 [details]
patch to autoupdate
Comment 4 Jiri Rechtacek 2007-06-14 14:39:52 UTC
Created attachment 43697 [details]
a patch file
Comment 5 rnovak 2007-06-14 18:21:17 UTC
I created the UC with the new URL. It is now being uploaded.
Comment 6 Jiri Rechtacek 2007-06-15 12:48:38 UTC
The catalog http://www.netbeans.org/updates/dev_1.22_.xml exists but is empty now.
Comment 7 rnovak 2007-06-15 13:26:17 UTC
The UC http://www.netbeans.org/updates/dev_1.22_.xml  is now uploaded, please, double check.
Comment 8 Jaromir Uhrik 2007-06-15 14:18:25 UTC
The catalog http://www.netbeans.org/updates/dev_1.22_.xml is OK now and all 4 features can be installed from this update
center. Roberte, the second part of this issue is up to you - please roll back the
http://www.netbeans.org/updates/dev_1.18_.xml to its content that was before there was feature tag added.
Comment 9 Jiri Rechtacek 2007-06-15 14:22:14 UTC
Autoupdate has been switched to 
http://www.netbeans.org/updates/dev_1.22_.xml

Checking in AutoupdateCatalogFactory.java;
/shared/data/ccvs/repository/autoupdate/services/src/org/netbeans/modules/autoupdate/updateprovider/AutoupdateCatalogFactory.java,v
 <--  AutoupdateCatalogFactory.java
new revision: 1.6; previous revision: 1.5
done
Comment 10 rnovak 2007-06-15 16:02:14 UTC
I rolled back the http://www.netbeans.org/updates/dev_1.18_.xml to its original content before features definition was
added.
Comment 11 Jaromir Uhrik 2007-06-21 10:04:41 UTC
Roberte, there is again the feature definition in "1.18" catalog so that the users of older builds cannot see the plugin
portal content in their builds and they see NPE exception about String Tokenizer. Please set the correct content.
Comment 12 rnovak 2007-07-17 14:01:41 UTC
The catalog got rewritten by daily build when we made generation of catalog part of production build. I rolled it back
to old layout again.
Comment 13 Jaromir Uhrik 2007-09-14 09:19:14 UTC
Verified.