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 222122 - NumberFormatException when starting server in debug mode
Summary: NumberFormatException when starting server in debug mode
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
: 223806 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-14 15:07 UTC by Jiri Skrivanek
Modified: 2012-12-14 07:49 UTC (History)
1 user (show)

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 Jiri Skrivanek 2012-11-14 15:07:54 UTC
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)
Comment 1 Jiri Skrivanek 2012-11-14 19:04:49 UTC
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
Comment 2 TomasKraus 2012-11-22 15:58:14 UTC
Targeting for 7.3.
Comment 3 TomasKraus 2012-11-26 12:46:50 UTC
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.
Comment 4 Jiri Skrivanek 2012-12-14 07:49:19 UTC
*** Bug 223806 has been marked as a duplicate of this bug. ***