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 152103 - NumberFormatException: For input string: "565213" (debugger port)
Summary: NumberFormatException: For input string: "565213" (debugger port)
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Options (show other bugs)
Version: 8.1
Hardware: All All
: P4 blocker (vote)
Assignee: Lou Dasaro
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 20:10 UTC by sunbiz
Modified: 2015-10-19 04:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 135022


Attachments
stacktrace (3.08 KB, text/plain)
2008-11-01 20:11 UTC, sunbiz
Details
stacktrace (3.07 KB, text/plain)
2009-05-22 16:53 UTC, Oleg Khokhlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-11-01 20:10:56 UTC
Build: NetBeans IDE 6.5 RC2 (Build 20081031212129)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: Port number for Python debugger in Options needs validation



Stacktrace: 
java.lang.NumberFormatException: For input string: "565213215652132132161213"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:459)
        at java.lang.Integer.parseInt(Integer.java:497)
        at org.netbeans.modules.python.options.OptionsPanel.store(OptionsPanel.java:80)
        at org.netbeans.modules.python.options.OptionsOptionsPanelController.applyChanges(OptionsOptionsPanelController.java:26)
        at org.netbeans.modules.options.CategoryModel$Category.applyChanges(CategoryModel.java:387)
Comment 1 sunbiz 2008-11-01 20:11:04 UTC
Created attachment 73052 [details]
stacktrace
Comment 2 Oleg Khokhlov 2009-05-22 16:52:55 UTC
Build: NetBeans IDE Dev (Build 200905190201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
incorrect port value in Options-Python-Debuger

Stacktrace: 
java.lang.NumberFormatException: For input string: "fdgdfgd"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:447)
        at java.lang.Integer.parseInt(Integer.java:497)
        at org.netbeans.modules.python.options.OptionsPanel.store(OptionsPanel.java:70)
        at org.netbeans.modules.python.options.OptionsOptionsPanelController.applyChanges(OptionsOptionsPanelController.java:26)
        at org.netbeans.modules.options.CategoryModel$Category.applyChanges(CategoryModel.java:389)
Comment 3 Oleg Khokhlov 2009-05-22 16:53:05 UTC
Created attachment 82667 [details]
stacktrace
Comment 4 Lou Dasaro 2015-05-18 06:16:39 UTC
In Tools->Options->Python->Debugger, the listening port entry field must be validated as follows: 
Must be numeric only, >1023 && <65535 
> 1023 because less than that requires Admin auth on some systems.
< 65535 because the system creates a second port at 'yours'+1
Comment 5 Lou Dasaro 2015-10-18 23:28:37 UTC
Validation only needs to be numeric, >0 && < 65535
Nicer validation can be covered under Bug 152103
Comment 6 Lou Dasaro 2015-10-18 23:29:48 UTC
Correction: Nicer validation can be covered under Bug 256003
Comment 7 Lou Dasaro 2015-10-19 04:23:03 UTC
Fixed. Should be available in next release after 20-Oct-2015.