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.
See glassfish issue https://glassfish.dev.java.net/issues/show_bug.cgi?id=3360 This is caused by netbeans inserting the jvm option without quotes when the jvm option value contains a pipe character ("|"). This cause all further asadmin create-jvm-options command to fail. See also the origin of this feature in netbeans. http://www.netbeans.org/issues/show_bug.cgi?id=74321
"|" is valid separator for hosts in nonProxyhosts property. " " is the character which is invalid ("host1*| .domain.com*|") - How did a space got there? What is your proxy setting in the IDE? In your OS? Did you somehow modify them? BTW: AFAIK space is not valid char in the domain name nor in the IP address...
You are right " " is the invalid character. It has taken it from Internet settings on windows. My settings for non proxy hosts were wstrust;.sfbay.sun.com;129.158.172.111;.india.sun.com;wstrust.india.sun.com This got converted to the following entry in domain.xml -Dhttp.nonProxyHosts=wstrust*| .sfbay.sun.com*| 129.158.172.111*| .india.sun.com*| wstrust.india.sun.com*|<local>*|localhost|127.0.0.1|wssc|wssc.india.sun.com I have also checked the checkbox "Bypass proxy server for local addresses" . So either java or netbeans or IE has taken these settings and this resulted in a invalid option. You can also see invalid value for <local>. As you can see my proxy settings are correct without any whitespaces.
The plugin does not do any conversions while setting the proxy values. The value returned by System.getProperty("http.nonProxyHosts") is set on the jvm options. A comma seperated list is returned with '|' instead of commas and the spaces depend on what the user settings were. eg. '<local>*, localhost, 127.0.0.1, india3' is returned as '<local>*|localhost|127.0.0.1|india3' '<local>*, localhost, 127.0.0.1, india3' is returned as '<local>*| localhost|127.0.0.1|india3' Will look into the <local> becoming <local> when set in jvm options
<local> appears as <local> when you view in xml editor but the settings in domain is actually <local> as seen in jvm option editor in runtime tab and admin-gui Marking issue as invalid
space is a valid character in IE non proxy hosts setting, whereas for jvm options it is invalid. You have to strip it out before inserting into domain.xml admin gui may show <local> because it is displayed on browser and < and > are valid escape characters in html, but not in xml.
If you see in the jvm editor, <local> is displayed. The plugin does not do any translations of value returned by server. Similarly admin-cli shows value as <local>. The plugin is passing <local> but it is translated to <local> and vice versa by the server api's.
Stripped spaces in proxy value http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/HttpProxyUpdater.java?r1=1.3&r2=1.4