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 139164 - IllegalArgumentException when attaching to port out of range
Summary: IllegalArgumentException when attaching to port out of range
Status: VERIFIED DUPLICATE of bug 135872
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-07 18:49 UTC by Petr Cyhelsky
Modified: 2008-07-07 23:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2008-07-07 18:49:32 UTC
Product Version: NetBeans IDE Dev (Build 200807070002)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)

Observed: When inputting port number in attach debugger dialog I by mistake pressed 8 too many times - making the port
number greater than 65535, consequently Illegal argument exception occurred.

Expected: Either the "invalid value of parameter" dialog should pop up just as if non-number was inputted or the attach
debugger dialog should warn that the port number is invalid or the "ok" button should be disabled unless user inputs
valid port or the input.

Steps to reproduce: invoke Run|Attach debugger -> select socket attach or socket listen from the combo -> input some
number greater than 65535 into the Port: textfield

java.lang.IllegalArgumentException: port out of range:88888
	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:83)
	at java.net.InetSocketAddress.<init>(InetSocketAddress.java:63)
	at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:232)
	at com.sun.tools.jdi.SocketTransportService.startListening(SocketTransportService.java:265)
	at com.sun.tools.jdi.GenericListeningConnector.startListening(GenericListeningConnector.java:96)
	at com.sun.tools.jdi.SocketListeningConnector.startListening(SocketListeningConnector.java:67)
	at com.sun.tools.jdi.GenericListeningConnector.accept(GenericListeningConnector.java:143)
	at org.netbeans.api.debugger.jpda.ListeningDICookie.getVirtualMachine(ListeningDICookie.java:232)
	at org.netbeans.modules.debugger.jpda.actions.StartActionProvider.doStartDebugger(StartActionProvider.java:189)
	at org.netbeans.modules.debugger.jpda.actions.StartActionProvider.access$100(StartActionProvider.java:75)
	at org.netbeans.modules.debugger.jpda.actions.StartActionProvider$1.run(StartActionProvider.java:165)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Martin Entlicher 2008-07-07 23:35:40 UTC

*** This issue has been marked as a duplicate of 135872 ***
Comment 2 Petr Cyhelsky 2008-07-07 23:46:54 UTC
verified duplicate