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 145348 - canCreate returns true for existing directories
Summary: canCreate returns true for existing directories
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 20:03 UTC by Vince Kraemer
Modified: 2008-08-28 06:27 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 Vince Kraemer 2008-08-27 20:03:28 UTC
This let's the IDE say it is going to create a domain when it really tries to read the domain data from an existing
directory resulting in an IllegalArgumentException

java.lang.IllegalArgumentException: port out of range:-1
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
        at org.netbeans.modules.glassfish.common.CommonServerSupport.isRunning(CommonServerSupport.java:462)
        at org.netbeans.modules.glassfish.common.CommonServerSupport.<init>(CommonServerSupport.java:132)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:119)
        at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:180)
        at org.netbeans.modules.glassfish.common.wizards.ServerWizardIterator.instantiate(ServerWizardIterator.java:147)
        at
org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard$AddServerInstanceWizardIterator.instantiate(AddServerInstanceWizard.java:279)
        at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1477)
        at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1431)
        at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:119)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1998)
Comment 1 Vince Kraemer 2008-08-27 22:14:36 UTC
fix typo
Comment 2 Vince Kraemer 2008-08-27 22:57:43 UTC
http://hg.netbeans.org/main/rev/9296b03a08a7
Comment 3 Quality Engineering 2008-08-28 06:27:30 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/9296b03a08a7
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #145348 : canCreate bug causes IllegalArgumentException