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.
In project debug tab: org.netbeans.api.debugger.jpda.DebuggerStartException: port out of range:1179766341 at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.waitRunning(JPDADebuggerImpl.java:354) at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:263) at org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:223) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084) Caused by: java.lang.IllegalArgumentException: port out of range:1179766341 at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118) at com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:201) at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:98) at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:72) at org.netbeans.api.debugger.jpda.AttachingDICookie.getVirtualMachine(AttachingDICookie.java:220) at org.netbeans.modules.debugger.jpda.actions.StartActionProvider.doStartDebugger(StartActionProvider.java:176) at org.netbeans.modules.debugger.jpda.actions.StartActionProvider.access$100(StartActionProvider.java:74) at org.netbeans.modules.debugger.jpda.actions.StartActionProvider$1.run(StartActionProvider.java:154) ... 2 more In Debug Console Anexando a localhost:1179766341 port out of range:1179766341
This is not a bug, you've just entered bad port number - too high. *** This bug has been marked as a duplicate of bug 135872 ***
I'm reopening this, since I got a screenshot from Rogério Gomes with GlassFish properties, where GlassFish really has "1179766341" as the address. How GlassFish manage to listen on such port when java.net.InetSocketAddress is not able to accept it? Also shouldn't "Address to use" be renamed to "Port to use"?
Created attachment 93119 [details] GlassFish properties with too high port number.
The 'Address to use' property in the GlassFish properties dialog is currently accepting any value provided by the user without validation. The GlassFish plugin should be updated so that it validates the user defined. Note, when you enable the field for the first time the plugin populates the field with an available port value. But the user can change it to any value.
Verified in 7.3 and it's still possible to put any value into the text box.
NetBeans web-main: ------------------ changeset: 238184:6bb22a4aca6c summary: #179207 - Debug port accepted values are 0 .. 65535 now. JTextField was replaced with JSpinner with limits 0 .. 65535 and format "#####". Socket port limits were taken from java.net.ServerSocket constructor source code.
Integrated into 'main-golden', will be available in build *201211070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6bb22a4aca6c User: Tomas Kraus <TomasKraus@netbeans.org> Log: #179207 - Debug port accepted values are 0 .. 65535 now.