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 237493 - Verified plugins are not available anymore via update center - java.lang.NumberFormatException: For input string: ""
Summary: Verified plugins are not available anymore via update center - java.lang.Numb...
Status: RESOLVED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Jan Pirek
URL:
Keywords:
: 237488 237586 237679 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-22 19:17 UTC by markiewb
Modified: 2013-10-29 16:00 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (673.24 KB, image/png)
2013-10-22 19:17 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-10-22 19:17:09 UTC
Created attachment 141426 [details]
Shows the issue

My recently updated plugins are verified but are not available for download from within the IDE
* http://plugins.netbeans.org/plugin/50877/eclipse-code-formatter-for-java
* http://plugins.netbeans.org/plugin/50171/display-readme-files-in-project-view

The same happens for other plugins like gwt4nb (it is also not available anymore via IDE update center)
* http://plugins.netbeans.org/plugin/44509/gwt4nb

Strange thing I) The metadata of the nbms are included in  http://plugins.netbeans.org/nbpluginportal/updates/7.4/catalog.xml.gz
but the plugins them-self are not shown for install.

Strange thing II) The plugins have no download size. Not in the catalog.xml.gz nor on their download page (N/A is shown f.e. at http://plugins.netbeans.org/plugin/50171/display-readme-files-in-project-view).

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\markiewb\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\markiewb\AppData\Local\NetBeans\Cache\7.4
Comment 1 ksfreitas 2013-10-22 19:24:44 UTC
*** Bug 237488 has been marked as a duplicate of this bug. ***
Comment 2 markiewb 2013-10-22 21:21:22 UTC
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)
Comment 3 Jiri Kovalsky 2013-10-23 19:10:28 UTC
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
Comment 4 Jan Pirek 2013-10-24 13:30:48 UTC
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
Comment 5 Jiri Kovalsky 2013-10-24 16:44:24 UTC
Thanks Honzo! The catalog now lists all three plugins correctly.
Comment 6 markiewb 2013-10-24 18:49:40 UTC
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
Comment 8 markiewb 2013-10-26 11:44:25 UTC
*** Bug 237679 has been marked as a duplicate of this bug. ***
Comment 9 markiewb 2013-10-26 11:44:32 UTC
*** Bug 237586 has been marked as a duplicate of this bug. ***
Comment 10 Marian Mirilovic 2013-10-29 14:44:53 UTC
Beside that our catalog tests are failing as well (since 20.10. against 7.3/4 & since 24.10. 7.2)
Comment 11 Jan Pirek 2013-10-29 16:00:59 UTC
I manually fixed download size for plugins which had it null. Please verify that catalog tests are passing, thanks.