Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get View for ViewDescriptor 'webApplications' #12

Closed
glassfishrobot opened this issue Jul 20, 2005 · 13 comments
Closed

Unable to get View for ViewDescriptor 'webApplications' #12

glassfishrobot opened this issue Jul 20, 2005 · 13 comments
Assignees

Comments

@glassfishrobot
Copy link

Sometimes the appserver gets into a mode where I can't use the admin console to
manage webapps.

I get the following error when clicking on the web applications tree node:

A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught.
The message from the exception: "Unable to get View for ViewDescriptor
'webApplications'"

The root cause is
"com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not
registered"

See the HTML source for more detailed (stack trace) information.

The server.log shows:

[#|2005-07-20T14:44:28.080-0400|SEVERE|TestAbbrevProductName9.0|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[][ERROR]
Uncaught application exception
com.iplanet.jato.command.CommandException: Handler method
"handleShowContainerRequest" threw an exception
Root cause = [com.sun.enterprise.tools.guiframework.exception.FrameworkError:
com.sun.enterprise.tools.guiframework.exception.FrameworkException:
java.lang.reflect.InvocationTargetException while attempting to process a
'beforeCreate' event for 'webAppsTable'.]
at
com.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:217)
at
com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
at
com.iplanet.jato.view.RequestHandlingTreeViewBase.handleRequest(RequestHandlingTreeViewBase.java:525)
at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
at
com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
at
com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:760)
at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
at
com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
at
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
at
com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.java:202)
at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:256)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:289)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:172)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:260)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:264)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at com.sun.enterprise.web.WebModule.invoke(WebModule.java:454)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:131)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:180)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:517)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:424)
at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:384)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:283)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:256)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:69)

Root cause:
com.sun.enterprise.tools.guiframework.exception.FrameworkError:
com.sun.enterprise.tools.guiframework.exception.FrameworkException:
java.lang.reflect.InvocationTargetException while attempting to process a
'beforeCreate' event for 'webAppsTable'.
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(DescriptorViewHelper.java:360)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.createChild(DescriptorViewHelper.java:258)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.createChild(DescriptorViewBeanBase.java:141)
at com.iplanet.jato.view.ContainerViewBase.ensureChild(ContainerViewBase.java:187)
at com.iplanet.jato.view.ContainerViewBase.getChild(ContainerViewBase.java:541)
at
com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor.registerChildren(ViewDescriptor.java:208)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.registerViewDescriptorChildren(DescriptorViewHelper.java:84)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.registerViewDescriptorChildren(DescriptorViewBeanBase.java:133)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.(DescriptorViewBeanBase.java:76)
at
com.sun.enterprise.tools.guiframework.view.descriptors.ViewBeanBaseDescriptor.getInstance(ViewBeanBaseDescriptor.java:53)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(DescriptorViewManager.java:215)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(DescriptorViewManager.java:175)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getViewBean(DescriptorViewManager.java:75)
at
com.sun.enterprise.tools.admingui.tree.IndexTreeNode.handleSelection(IndexTreeNode.java:645)
at
com.sun.enterprise.tools.admingui.tree.IndexTreeView.handleNode(IndexTreeView.java:446)
at
com.sun.enterprise.tools.admingui.tree.IndexTreeView.handleShowContainerRequest(IndexTreeView.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
at
com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:308)
at
com.iplanet.jato.view.RequestHandlingTreeViewBase.handleRequest(RequestHandlingTreeViewBase.java:525)
at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)
at
com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:740)
at
com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:760)
at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)
at
com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:957)
at
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:615)
at
com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.java:202)
at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:256)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:289)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:172)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:260)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:264)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at com.sun.enterprise.web.WebModule.invoke(WebModule.java:454)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:131)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:180)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:517)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:424)
at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:384)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:283)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:256)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:69)
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException:
java.lang.reflect.InvocationTargetException while attempting to process a
'beforeCreate' event for 'webAppsTable'.
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:793)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(DescriptorViewHelper.java:353)
... 65 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:879)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:816)
at
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.java:791)
... 66 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException:
com.sun.enterprise.tools.guiframework.exception.FrameworkException:
javax.management.MBeanException: Operation 'getStatus' failed in 'applications'
Config Mbean.
Target exception message: Component not registered
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:69)
at
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatus(DeploymentHandler.java:898)
at
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatusSummary(DeploymentHandler.java:1638)
at
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.loadDeploymentTableModel(DeploymentHandler.java:981)
... 73 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException:
javax.management.MBeanException: Operation 'getStatus' failed in 'applications'
Config Mbean.
Target exception message: Component not registered
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:167)
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:58)
... 76 more
Caused by: javax.management.MBeanException: Operation 'getStatus' failed in
'applications' Config Mbean.
Target exception message: Component not registered
at
com.sun.enterprise.admin.MBeanHelper.extractAndWrapTargetException(MBeanHelper.java:390)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:401)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:288)
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:160)
... 77 more
Caused by: com.sun.enterprise.admin.common.exception.MBeanConfigException:
Component not registered
at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getStatus(ApplicationsConfigMBean.java:1992)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:324)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:379)
... 88 more

| #] |

Looks like a Jato error.

The error persists after appserver shutdown and restart, and even after reboot.

Environment

Operating System: All
Platform: All

Affected Versions

[9.0pe]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Was assigned to anilam

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @edburns

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
anilam said:
Comments from SQE:
I doon't see this problem with 07/21 nightly build. I can see DD for web
application.
I have tested with Solaris x86 build

Ed,
Does this bug only applies to MacOS ? Can you see if you can reproduce this on
other platform ? Can you test if the problem exists on 7/21 nightly build ?

thanks
anilam

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Actually, I've found that I only see the problem when something goes wrong with
deployment of a web-module. For example, if there's a Context listener failure.
Once this happens, I've found I can't get past the error.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
I just hit this on Win32 as well. Changing platform to all.

A "com.sun.enterprise.tools.guiframework.exception.FrameworkException" was
caught. The message from the exception:
"java.lang.reflect.InvocationTargetException while attempting to process a
'error' event for 'webApplicationsEdit'."

The root cause is
"com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not
registered"

See the HTML source for more detailed (stack trace) information.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
This happens when a deployed webapp has trouble.

Unfortunately, using list-component doesn't show the offending app, even though
it can be successfully undeployed using asadmin.

Once undeployed, the console comes back to life.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
More detail. If the redeploy fails, the appserver gets in this state. Then I
have to use asadmin undeploy to re-enable the use of the admingui to administer
webapps.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Ok, this appears to have been fixed. I'll attach the WAR I used to verify it.
Simply deploy at and note that the admin console continues to function. Perhaps
this can be added to the regression test suite.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Created an attachment (id=32)
War that has ServletContextListener that throws NPE on contextInitialized.

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
File: gf12.war
Attached By: @edburns

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Marked as fixed on Tuesday, January 17th 2006, 2:23:20 am

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA GLASSFISH-12

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants