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 89642

Summary: NumberFormatException: in first step of "Check out" wizard.
Product: platform Reporter: Peter Pis <ppis>
Component: -- Other --Assignee: Jiri Rechtacek <jrechtacek>
Status: VERIFIED FIXED    
Severity: blocker CC: jglick, msauer
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 89637    
Attachments: exception

Description Peter Pis 2006-11-20 09:19:52 UTC
NetBeans IDE Dev (Build 061120)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Linux version 2.6.9-1.667 running on i386
en_US (nb); UTF-8

Steps:
1. Invoke "Check out" wizard.
2. Enter valid cvsroot and push "Next" or "Proxy ..." button.

SEVERE [global]
java.lang.NumberFormatException: For input string: ""
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:468)
        at java.lang.Integer.parseInt(Integer.java:497)
        at
org.netbeans.modules.versioning.system.cvss.ui.selectors.ProxySelector.detectSystemProxy(ProxySelector.java:212)
        at
org.netbeans.modules.versioning.system.cvss.ui.selectors.ProxyDescriptor.getDescription(ProxyDescriptor.java:195)
        at
org.netbeans.modules.versioning.system.cvss.ui.selectors.ProxySelector.updateFields(ProxySelector.java:150)
Comment 1 Peter Pis 2006-11-20 09:22:24 UTC
Created attachment 36129 [details]
exception
Comment 2 Max Sauer 2006-11-20 09:33:03 UTC
I can reproduce this.
---
NetBeans IDE Dev (Build 061120)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 3 Peter Pis 2006-11-20 09:51:58 UTC
This is a showstopper for M5.
Comment 4 Maros Sandor 2006-11-20 09:58:30 UTC
NbProxySelector class sets System properties such as "socksProxyHost" to ""
(empty string) if the proxy is not defined. It should set it to null (remove the
property) in this case.
Comment 5 Jiri Rechtacek 2006-11-20 11:00:09 UTC
fixed. Anyway, "Check out" wizard should be more resistant to jump over a empty
string in System's properties.
Checking in NbProxySelector.java;
/shared/data/ccvs/repository/core/src/org/netbeans/core/NbProxySelector.java,v 
<--  NbProxySelector.java
new revision: 1.4; previous revision: 1.3
done
Comment 6 Peter Pis 2006-11-20 19:35:18 UTC
*** Issue 89699 has been marked as a duplicate of this issue. ***
Comment 7 Jesse Glick 2006-11-20 19:46:59 UTC
I have a build with NbProxySelector.java 1.4 and the problem persists when I
attempt to perform any CVS operation:

java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:468)
	at java.lang.Integer.parseInt(Integer.java:497)
	at
org.netbeans.modules.versioning.system.cvss.ui.selectors.ProxySelector.detectSystemProxy(ProxySelector.java:212)
	at
org.netbeans.modules.versioning.system.cvss.ui.selectors.ProxyDescriptor.getPassword(ProxyDescriptor.java:183)
	at
org.netbeans.modules.versioning.system.cvss.ClientRuntime.toConnectivitySettings(ClientRuntime.java:377)
	at
org.netbeans.modules.versioning.system.cvss.ClientRuntime.setupConnection(ClientRuntime.java:327)
	at
org.netbeans.modules.versioning.system.cvss.ClientRuntime.createClient(ClientRuntime.java:281)
	at
org.netbeans.modules.versioning.system.cvss.ClientRuntime.createTask(ClientRuntime.java:132)
	at
org.netbeans.modules.versioning.system.cvss.CvsVersioningSystem.post(CvsVersioningSystem.java:235)
[catch] at
org.netbeans.modules.versioning.system.cvss.ExecutorSupport.executeImpl(ExecutorSupport.java:151)
	at
org.netbeans.modules.versioning.system.cvss.ExecutorSupport.execute(ExecutorSupport.java:146)
	at
org.netbeans.modules.versioning.system.cvss.ExecutorGroup.execute(ExecutorGroup.java:367)
	at
org.netbeans.modules.versioning.system.cvss.ui.history.SearchExecutor.run(SearchExecutor.java:177)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 8 Jiri Rechtacek 2006-11-21 11:02:54 UTC
Checking in core/src/org/netbeans/core/NbProxySelector.java;
/shared/data/ccvs/repository/core/src/org/netbeans/core/NbProxySelector.java,v 
<--  NbProxySelector.java
new revision: 1.5; previous revision: 1.4
done
Checking in core/test/unit/src/org/netbeans/core/HttpSettingsTest.java;
/shared/data/ccvs/repository/core/test/unit/src/org/netbeans/core/HttpSettingsTest.java,v
 <--  HttpSettingsTest.java
new revision: 1.11; previous revision: 1.10
done
Checking in core/test/unit/src/org/netbeans/core/NonProxyHostsTest.java;
/shared/data/ccvs/repository/core/test/unit/src/org/netbeans/core/NonProxyHostsTest.java,v
 <--  NonProxyHostsTest.java
new revision: 1.11; previous revision: 1.10
done
Comment 9 Peter Pis 2006-11-21 16:54:53 UTC
Verified.
Comment 10 Tomas Hurka 2006-11-22 10:04:08 UTC
*** Issue 89361 has been marked as a duplicate of this issue. ***