| From | Sent On | Attachments |
|---|---|---|
| Lloyd L Chambers | Mar 27, 2008 6:35 pm | |
| Anissa Lam | Mar 27, 2008 9:26 pm | |
| Jerome Dochez | Mar 27, 2008 9:40 pm | |
| Anissa Lam | Mar 27, 2008 10:21 pm | |
| Ana Caballero | Mar 27, 2008 10:48 pm | |
| Anissa Lam | Mar 28, 2008 2:12 am | |
| Lloyd L Chambers | Mar 28, 2008 7:32 am | |
| Lloyd L Chambers | Mar 28, 2008 7:34 am | |
| Anissa Lam | Mar 28, 2008 9:15 am | |
| Lloyd L Chambers | Mar 28, 2008 12:01 pm | |
| Lloyd L Chambers | Mar 28, 2008 12:09 pm | |
| Lloyd L Chambers | Mar 28, 2008 2:42 pm | |
| Lloyd L Chambers | Mar 28, 2008 2:44 pm | |
| Lloyd L Chambers | Mar 28, 2008 2:44 pm | |
| Lloyd L Chambers | Mar 28, 2008 2:49 pm | |
| Lloyd L Chambers | Mar 28, 2008 2:53 pm | |
| Lloyd L Chambers | Mar 28, 2008 4:00 pm | |
| Anissa Lam | Mar 28, 2008 4:14 pm | |
| Lloyd L Chambers | Mar 28, 2008 4:30 pm | |
| Lloyd L Chambers | Mar 28, 2008 4:32 pm |
| Subject: | Re: AMX create/remove working | |
|---|---|---|
| From: | Anissa Lam (Anis...@Sun.COM) | |
| Date: | Mar 28, 2008 4:14:55 pm | |
| List: | net.java.dev.glassfish.admin | |
Lloyd L Chambers wrote:
Anissa,
You must be passing the nulls. When I use jmxcmd
jmxcmd createVirtualServerConfig:test1,localhost,null
I get this in domain.xml:
<virtual-server hosts="localhost" id="test1" />
Are you sure you're not passing null values in (possibly from getting default values that are null)?
I believe i do pass in NULL after creating the config object.
server.setLogFile(filepath); where filepath maybe NULL.
That is how we pass in for V2. It will be lots of work for us to go through all the code to test if it is NULL before calling backend. There are so many optional attributes. If there is a superclass where it can be fixed so that null means removing the optional attribute, it will certainly help. It will be much safer that way too. It should never put in "null" as spelled out.
btw, if the optional map is not empty, i am getting an exception. Is this a known issue:
INFO: last ARG = {property.accessLogBufferSize=5555, property.sso-enabled=false, property.docroot=${com.sun.aas.instanceRoot}/docroot, property.accesslog=${com.sun.aas.instanceRoot}/logs/access} Mar 28, 2008 3:42:57 PM INFO: createConfig: createVirtualServerConfig, args = AAA, localhost, {property.accessLogBufferSize=5555, property.sso-enabled=false, property.docroot=${com.sun.aas.instanceRoot}/docroot, property.accesslog=${com.sun.aas.instanceRoot}/logs/access}, types = java.lang.String, java.lang.String, java.util.Map ===> numRequiredArgs = 2, optionalAttrs = property.accessLogBufferSize=5555,property.accesslog=${com.sun.aas.instanceRoot}/logs/access,property.docroot=${com.sun.aas.instanceRoot}/docroot,property.sso-enabled=false Mar 28, 2008 3:42:57 PM INFO: createConfig: j2eeType = X-VirtualServerConfig, return type = com.sun.appserv.management.config.VirtualServerConfig Mar 28, 2008 3:43:16 PM SEVERE: java.lang.reflect.UndeclaredThrowableException
SEVERE: Caused by: javax.management.MBeanException Mar 28, 2008 3:43:16 PM SEVERE: at org.glassfish.admin.amx.config.AMXConfigImplBase.invokeManually(AMXConfigImplBase.java:1141) Mar 28, 2008 3:43:16 PM SEVERE: at org.glassfish.admin.amx.mbean.AMXImplBase.invoke(AMXImplBase.java:1688) Mar 28, 2008 3:43:16 PM SEVERE: at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) Mar 28, 2008 3:43:16 PM SEVERE: at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) Mar 28, 2008 3:43:16 PM SEVERE: at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) Mar 28, 2008 3:43:16 PM SEVERE: at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) Mar 28, 2008 3:43:16 PM SEVERE: at org.glassfish.admin.mbeanserver.AppserverMBeanServer.invoke(AppserverMBeanServer.java:184)
thanks Anissa
Lloyd
On Mar 28, 2008, at 2:13 AM, Anissa Lam wrote:
- creating the config object, If we don't set the optional attributes, it will be set to "null" and written out to 'domain.xml' as "null". eg.<virtual-server default-web-module="" state="on" hosts="localhost" log-file="null" id="ABC" http-listeners="null" />
--- Lloyd L Chambers lloy...@sun.com Sun Microsystems, Inc





