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 68269 - exception when trying to register default domain
Summary: exception when trying to register default domain
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 11:42 UTC by Kenneth Ganfield
Modified: 2005-11-10 02:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception when trying to register default domain (16.67 KB, text/plain)
2005-11-08 11:44 UTC, Kenneth Ganfield
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2005-11-08 11:42:18 UTC
I get an exception in the Add Server Instance wizard when i choose to register a
default domain and the domain is not there 
[the domain is not there because i renamed the domain1.xml config file to see
what would happen]

Steps:
1. I locate my app server, choose default domain in wizard and click Next.
2. I get an exception : java.lang.reflect.InvocationTargetException
3. I click Ok to close the error box.
4. I am still on Enter platform directory path, but i dont change my selection
[keeping default selected] and press Next.
5. I do not get the exception again, and the wizard skips step 3 Select Domain
and goes straight to step 4 Enter Domain Admin Info
6. I click Finish.
The instance is added to my list in the Runtime window.
Now I right-click on instance in Runtime window and I get an NPE, which means i
cannot remove it from the Runtime window.

I go to Server Manager and click the instance. 
I get another NPE.
I close the NPE, the instance is selected in the Server Manager.
I click remove to remove the instance.

It seems that instead of the Exception when the IDE cannot locate the
domain.xml, there should be a dialog that says the IDE cannot locate the default
domain and instructing the user to either select another domain type or to check
the configuration for the default domain.

Attaching Exception
Comment 1 Kenneth Ganfield 2005-11-08 11:44:24 UTC
Created attachment 26699 [details]
exception when trying to register default domain
Comment 2 Vince Kraemer 2005-11-08 20:51:42 UTC
At what point did you rename the domain.xml file?

Is it at "step zero"?
Comment 3 Vince Kraemer 2005-11-08 22:00:39 UTC
could duplicate.

weak test in Util.rootOfUsableDomain(File)