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.
Sometimes happens to me that it is not possible to start GlassFish server in debug mode and NumberFormatException is thrown. I don't have exact steps to reproduce. Last time I had three instances of GlassFish registered in IDE - default instance, instance with created domain2 and non default ports and remote instance pointing to localhost. Please, add some logging to decipher what is the actual problem. INFO [glassfish]: 8080 java.lang.NumberFormatException at org.netbeans.modules.glassfish.common.StartTask.appendDebugOptions(StartTask.java:598) at org.netbeans.modules.glassfish.common.StartTask.createProcessDescriptor(StartTask.java:568) at org.netbeans.modules.glassfish.common.StartTask.createProcess(StartTask.java:687) [catch] at org.netbeans.modules.glassfish.common.StartTask.startDASAndClusterOrInstance(StartTask.java:351) at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:211) at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:86) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
It is probably caused by registering non default domain: - register GlassFish with default domain1 - open Add Server wizard again - choose the same Installation location as before - click Next - change domain1 to domain2 - unselect "Use default ports" - click Finish - when domain is created try to start server in debug mode - it fails - if you look at server properties, Java tab, there is Socket - Use Address: 0
Targeting for 7.3.
NetBeans web-main: ------------------ changeset: 240444:5323d410591e summary: #222474 - Fixed handling of debug port value 0 which has the same meaning as null or empty String This is already fixed.
*** Bug 223806 has been marked as a duplicate of this bug. ***