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.
Summary: | Verified plugins are not available anymore via update center - java.lang.NumberFormatException: For input string: "" | ||
---|---|---|---|
Product: | updatecenters | Reporter: | markiewb |
Component: | Pluginportal | Assignee: | Jan Pirek <jpirek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adiqais, kikombat, ksfreitas, mmirilovic |
Priority: | P1 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Shows the issue |
Description
markiewb
2013-10-22 19:17:09 UTC
*** Bug 237488 has been marked as a duplicate of this bug. *** FYI: In the logs are exceptions INFO [org.netbeans.modules.autoupdate.services.UpdateUnitFactory]: For input string: "" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:504) at java.lang.Integer.parseInt(Integer.java:527) at org.netbeans.modules.autoupdate.updateprovider.ModuleItem.getDownloadSize(ModuleItem.java:148) at org.netbeans.modules.autoupdate.services.ModuleUpdateElementImpl.<init>(ModuleUpdateElementImpl.java:99) at org.netbeans.modules.autoupdate.services.KitModuleUpdateElementImpl.<init>(KitModuleUpdateElementImpl.java:57) [catch] at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.appendUpdateItems(UpdateUnitFactory.java:206) at org.netbeans.modules.autoupdate.services.UpdateUnitFactory.getUpdateUnits(UpdateUnitFactory.java:143) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl$Cache.<init>(UpdateManagerImpl.java:271) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getCache(UpdateManagerImpl.java:231) at org.netbeans.modules.autoupdate.services.UpdateManagerImpl.getUpdateUnits(UpdateManagerImpl.java:100) at org.netbeans.api.autoupdate.UpdateManager.getUpdateUnits(UpdateManager.java:103) at org.netbeans.modules.autoupdate.ui.PluginManagerUI.initialize(PluginManagerUI.java:244) at org.netbeans.modules.autoupdate.ui.PluginManagerUI.access$100(PluginManagerUI.java:79) at org.netbeans.modules.autoupdate.ui.PluginManagerUI$1.run(PluginManagerUI.java:134) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) Honzo, can you please take a look at this? Both plugins indeed have N/A download size which then causes problems for NetBeans Plugins manager. Re-generation of the catalog [1] does not help. Both plugin entries for some reason state downloadsize="". I tried to upload Benno's second plugin myself and it worked - i.e. download size was detected and displayed correctly. Is the "Add binary" upload mechanism broken? [1] http://plugins.netbeans.org/nbpluginportal/updates/7.4/catalog.xml Hello, there was issue when one uploaded new binary to existing plugin. It did not store the file size correctly. I have just fixed that and re-added the size for plugins mentioned in previous comments Thanks Honzo! The catalog now lists all three plugins correctly. Reopen. Three plugins are not enough. Please check the catalog.xml in [1][2][3] and search for {{downloadsize=""}}. There are more plugins which have an invalid download size and thus are missing in the plugin center. [1] http://plugins.netbeans.org/nbpluginportal/updates/7.4/catalog.xml.gz [2] http://plugins.netbeans.org/nbpluginportal/updates/7.3/catalog.xml.gz [3] http://plugins.netbeans.org/nbpluginportal/updates/7.2/catalog.xml.gz Oh, you are right. Here are the problematic plugins: 7.4: http://plugins.netbeans.org/nbpluginportal/files/nbms/1382249156_org-netbeans-modules-vagrant-0.2.0.nbm http://plugins.netbeans.org/nbpluginportal/files/nbms/1382079921_com-kenai-pelmel-crlf.nbm http://plugins.netbeans.org/nbpluginportal/files/nbms/1382097819_1361851207_org-netbeans-modules-quickfilechooser.nbm http://plugins.netbeans.org/nbpluginportal/files/nbms/1382260426_ch-anchialas-nb-editor.nbm 7.3: http://plugins.netbeans.org/nbpluginportal/files/nbms/1382249138_org-netbeans-modules-vagrant-0.2.0.nbm 7.2: http://plugins.netbeans.org/nbpluginportal/files/nbms/1382613147_jr-ide-nb-1.5.6.nbm *** Bug 237679 has been marked as a duplicate of this bug. *** *** Bug 237586 has been marked as a duplicate of this bug. *** Beside that our catalog tests are failing as well (since 20.10. against 7.3/4 & since 24.10. 7.2) I manually fixed download size for plugins which had it null. Please verify that catalog tests are passing, thanks. |