quality@glassfish.java.net

http config changes via admin tool

From: Johan Vos <johan_at_lodgon.com>
Date: Wed, 07 Oct 2009 10:35:28 +0200

I have a problem enabling Comet in b65 and b66.
In the admin console, under Network Config, Network Listener,
Http-Listener 1, HTTP, if you click the "comet support" box, and next
click on Save, there will be a Validation Failed Error (maxpostsize)
The stacktrace on the server is shown below

We can bring this down to org.jvnet.hk2.config.WriteableView where
validateDataType has no positive checks for Long, and maxpostsize is a Long.

- Johan


[#|2009-10-07T09:58:04.881+0200|INFO|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|setAttributes:
failed to map these AMX attributes: {UploadTimeutEnabled}|#]

[#|2009-10-07T09:58:04.885+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|java.lang.RuntimeException:
java.lang.RuntimeException: javax.management.RuntimeMBeanException:
java.lang.RuntimeException: org.jvnet.hk2.config.ValidationException:
Validation Failed: 2097152 is not of data type: java.lang.Long|#]

[#|2009-10-07T09:58:04.886+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admingui.common.util.V3AMX.setAttributes(V3AMX.java:222)|#]

[#|2009-10-07T09:58:04.886+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admingui.common.handlers.ProxyHandlers.saveBeanAttributes(ProxyHandlers.java:392)|#]


[#|2009-10-07T09:58:04.886+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|#]

[#|2009-10-07T09:58:04.886+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)|#]


[#|2009-10-07T09:58:04.886+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at java.lang.reflect.Method.invoke(Method.java:597)|#]

[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:464)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)|#]


[#|2009-10-07T09:58:04.887+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)|#]


[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)|#]


[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)|#]

[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)|#]


[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at javax.faces.component.UICommand.broadcast(UICommand.java:300)|#]

[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)|#]


[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:774)|#]

[#|2009-10-07T09:58:04.888+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1266)|#]


[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)|#]


[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)|#]

[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)|#]

[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)|#]


[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)|#]

[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)|#]


[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)|#]


[#|2009-10-07T09:58:04.889+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)|#]

[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)|#]


[#|2009-10-07T09:58:04.890+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)|#]

[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)|#]


[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)|#]


[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:333)|#]


[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:234)|#]


[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:220)|#]


[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)|#]

[#|2009-10-07T09:58:04.891+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)|#]

[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)|#]

[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)|#]


[#|2009-10-07T09:58:04.892+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)|#]


[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)|#]

[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)|#]


[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)|#]


[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at java.lang.Thread.run(Thread.java:619)|#]

[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|Caused
by: java.lang.RuntimeException: javax.management.RuntimeMBeanException:
java.lang.RuntimeException: org.jvnet.hk2.config.ValidationException:
Validation Failed: 2097152 is not of data type: java.lang.Long|#]

[#|2009-10-07T09:58:04.893+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admingui.common.util.V3AMX.setAttributes(V3AMX.java:230)|#]

[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admingui.common.util.V3AMX.setAttributes(V3AMX.java:220)|#]

[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
... 52 more|#]

[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|Caused
by: javax.management.RuntimeMBeanException: java.lang.RuntimeException:
org.jvnet.hk2.config.ValidationException: Validation Failed: 2097152 is
not of data type: java.lang.Long|#]

[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:856)|#]


[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttributes(DefaultMBeanServerInterceptor.java:821)|#]


[#|2009-10-07T09:58:04.894+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jmx.mbeanserver.JmxMBeanServer.setAttributes(JmxMBeanServer.java:728)|#]


[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admingui.common.util.V3AMX.setAttributes(V3AMX.java:228)|#]

[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
... 53 more|#]

[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|Caused
by: java.lang.RuntimeException:
org.jvnet.hk2.config.ValidationException: Validation Failed: 2097152 is
not of data type: java.lang.Long|#]

[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at org.jvnet.hk2.config.WriteableView.setter(WriteableView.java:152)|#]

[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admin.amx.impl.config.AMXConfigImpl$MakeChangesApplyer.makeChanges(AMXConfigImpl.java:1424)|#]


[#|2009-10-07T09:58:04.895+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admin.amx.impl.config.AMXConfigImpl$Applyer.apply(AMXConfigImpl.java:1342)|#]


[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admin.amx.impl.config.AMXConfigImpl.setAttributesInConfigBean(AMXConfigImpl.java:1531)|#]


[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.glassfish.admin.amx.impl.config.AMXConfigImpl.setAttributes(AMXConfigImpl.java:242)|#]


[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttributes(DefaultMBeanServerInterceptor.java:819)|#]


[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
... 55 more|#]

[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|Caused
by: org.jvnet.hk2.config.ValidationException: Validation Failed: 2097152
is not of data type: java.lang.Long|#]

[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.jvnet.hk2.config.WriteableView.validateDataType(WriteableView.java:633)|#]


[#|2009-10-07T09:58:04.896+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at
org.jvnet.hk2.config.WriteableView.handleValidation(WriteableView.java:586)|#]


[#|2009-10-07T09:58:04.897+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
at org.jvnet.hk2.config.WriteableView.setter(WriteableView.java:149)|#]

[#|2009-10-07T09:58:04.897+0200|SEVERE|glassfish|null|_ThreadID=32;_ThreadName=Thread-3;|
... 60 more|#]