admin@glassfish.java.net

Re: Need help with -Dadminmbeanregistry.printfile

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Tue, 19 Feb 2008 11:00:30 -0800

Hi Irfan,

According to the code I have at that line #, it does:

    throw new RuntimeException(ex.getCause());

This is in the context of a catch.  This is disappointing b/c it is throwing away the original exception and expecting there to be another cause to that one.  I'm not sure why we're doing this vs. RuntimException(ex).

Irfan can you try changing the code so that you can see the root cause of the problem you have encountered?  Also, can you send future email messages to admin@glassfish so everyone can see... feel free to continue to include me in the "to" line so I notice it more quickly.

Anissa / Senthil, Do you know why we are unwrapping and throwing away one of the exceptions in the trace?  Is it b/c exceptions are always wrapped and it helps us to get to the one we want w/ the message?  If so, we need to fix this to be more robust than blindly throwing an exception away.

Thanks,

Ken

Irfan Ahmed wrote:
Hi Ken and Anissa,

I am seeing a weird behavior. Just wanted to check if you see the same.

I try to print the mbean registry by setting the jvm-option adminmbeanregistry.printfile in java-config under the server-config. Now when I restart the admin console, I can see the MBean registry printed in the file pointed by the option. Howver if you login in to the GUI, the left hand tree fails to render and throws an exception.

Following is the exception trace

#|2008-02-19T13:08:05.920+0600|SEVERE|sun-comms-appserver1.0|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-4848-0;_RequestID=186b17db-fe12-40b8-9777-067596e3d2e2;|StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for servlet FacesServlet threw exception
java.lang.RuntimeException
    at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:124)
    at com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:75)
    at com.sun.enterprise.tools.admingui.tree.MBeanTreeAdaptor.getChildTreeNodeObjects(MBeanTreeAdaptor.java:213)
    at com.sun.jsftemplating.component.factory.tree.DynamicTreeNodeFactory.processNode(DynamicTreeNodeFactory.java:178)
    at com.sun.jsftemplating.component.factory.tree.DynamicTreeNodeFactory.create(DynamicTreeNodeFactory.java:109)
    at com.sun.jsftemplating.component.ComponentUtil.createChildComponent(ComponentUtil.java:397)
    at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:278)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:538)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:567)
    at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:237)
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at org.jvnet.glassfish.comms.clb.proxy.portunif.ClbProxyPipeline$PUTask.doTask(ClbProxyPipeline.java:527)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|#]

--
<a class="moz-txt-link-abbreviated" href=<a class="moz-txt-link-rfc2396E" href="mailto:irfan@sun.com">"mailto:irfan@sun.com"</a>><a class="moz-txt-link-abbreviated" href="mailto:irfan@sun.com">irfan@sun.com</a></a>
Irfan Ahmed
9180-66927726, Sun Microsystems Inc., Bangalore, India.