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 159472 - Failed to create embedded V3 Prelude domain
Summary: Failed to create embedded V3 Prelude domain
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-02 23:39 UTC by davisn
Modified: 2009-03-06 09:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error image (9.00 KB, image/png)
2009-03-02 23:40 UTC, davisn
Details
messages.log (41.66 KB, text/plain)
2009-03-02 23:40 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2009-03-02 23:39:35 UTC
Error occurs when trying to create domain2 for GlassFish V3 prelude

Steps To Reproduce:
1. Install 6.7 Trunk build (use default), use jdk 1.6.0_12
2. Create a Web Project
3. Right-click at Servers node, select Add Server > GlassFish V3 Prelude > Next > Next > enter
     Domain: domain2
   Click Finish
BUG:
    Error Message occurs as:
    "Cannot run program "E:\Program Files\glassfish-v3-prelude-b28c\glassfish\bin\asadmin.bat"
    Please see the attached picture for detail error message

If I select to start the domain2-server, I got Exception as described int the following error message
java.io.FileNotFoundException: E:\Program Files\glassfish-v3-prelude-b28c\glassfish\domains\domain2\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:87)
Caused: java.lang.IllegalStateException
	at org.netbeans.modules.glassfish.spi.TreeParser.readXml(TreeParser.java:95)
	at org.netbeans.modules.glassfish.common.StartTask.readJvmArgs(StartTask.java:440)
	at org.netbeans.modules.glassfish.common.StartTask.createProcessDescriptor(StartTask.java:295)
	at org.netbeans.modules.glassfish.common.StartTask.createProcess(StartTask.java:388)
	at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:153)
	at org.netbeans.modules.glassfish.common.StartTask.call(StartTask.java:78)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 davisn 2009-03-02 23:40:19 UTC
Created attachment 77582 [details]
Error image
Comment 2 davisn 2009-03-02 23:40:57 UTC
Created attachment 77584 [details]
messages.log
Comment 3 Vince Kraemer 2009-03-03 03:54:42 UTC
I think i see what went wrong...

Please clarify a couple things for me...

1. after you dismiss the error message, the node for the domain (that was not created) appears in the Servers tree.

2. the second error message appears when you try to start this 'uncreated' domain instance...
Comment 4 davisn 2009-03-03 22:09:04 UTC
1. After I close the error message, the created domain2 appeared in the Servers List node
2. The exception error message appears when I try to start domain2

Yesterday I was able to reproduce the problem for 2 times; however, today I couldn't not reproduce it!
Comment 5 Vince Kraemer 2009-03-03 22:35:34 UTC
I could not reproduce the issue... but I did see a hole in the logic of CreateDomain that would explain the behavior.

http://hg.netbeans.org/main/rev/0c594be4e9ae

Please reopen if you can reproduce this in a trunk build in a couple days.
Comment 6 Quality Engineering 2009-03-06 09:30:08 UTC
Integrated into 'main-golden', will be available in build *200903060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0c594be4e9ae
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #159472 : some create failures still allow a node to show up in the servers tree