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 144240 - java.io.FileNotFoundException
Summary: java.io.FileNotFoundException
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 11:39 UTC by dpkumar
Modified: 2008-09-04 07:58 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 dpkumar 2008-08-18 11:39:09 UTC
NB Build:IDE Build 200808170243
JDK:1.5.0_13

Steps to reproduce:
-Install IDE and start
-Remove default GF V3 server
-Right click on the server node select 'Add server'.
-Select GF V3 Prelude
-leave the default location in the wizard 'server location' for glassfish-v3-prelude-b18 and select NEXT.
-Make the domain field empty and select FINISH.
-Start the server.

ISSUE:
On selecting 'start' getting File not found exception:

java.io.FileNotFoundException: C:\Program Files\glassfish-v3-prelude-b18\glassfish\domains\config\domain.xml (The 
system cannot find the path specified)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.netbeans.modules.glassfish.spi.TreeParser.readXml(TreeParser.java:83)
Caused: java.lang.IllegalStateException
	at org.netbeans.modules.glassfish.spi.TreeParser.readXml(TreeParser.java:91)
	at org.netbeans.modules.glassfish.common.StartTask.readJvmArgs(StartTask.java:339)
	at org.netbeans.modules.glassfish.common.StartTask.createProcessDescriptor(StartTask.java:230)
	at org.netbeans.modules.glassfish.common.StartTask.createProcess(StartTask.java:299)
	at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:126)
	at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:73)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

-Even it does not alert the user like no domain exits when you make the domain field empty.
Comment 1 _ pcw 2008-08-19 20:23:38 UTC
I reproduced this.
Comment 2 _ pcw 2008-08-19 20:24:51 UTC
Not a P2 -- don't try to use a blank domain folder.
Comment 3 Vince Kraemer 2008-08-25 00:49:41 UTC
this is a registration issue.  i will fix it.
Comment 4 Vince Kraemer 2008-08-26 18:24:35 UTC
http://hg.netbeans.org/main/rev/abfeec9b9ed5
Comment 5 Quality Engineering 2008-08-28 06:39:37 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/abfeec9b9ed5
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #144240 : blank is not a valid domain name
Comment 6 dpkumar 2008-09-04 07:58:42 UTC
Verified in NetBeans IDE Build 200809031401.