[jboss-user] [JBoss Portal] - PortalObjectContainer Object is getting null
tekulapallinaresh
do-not-reply at jboss.com
Thu Sep 21 07:04:22 EDT 2006
Hi Everyone,
I wrote a portlet where I need PortalObjectContainer reference. So in my init method I wrote the below code in the init method of my portlet. Please note that I have extended the JBossPortlet class
PortalObjectContainer container = (PortalObjectContainer) getPortletContext().getAttribute("PortalObjectContainer")
and
in jboss-portlet.xml I kept
<portlet-name>MenuPortlet</portlet-name>
<trans-attribute>Required</trans-attribute>
<service-name>PortalObjectContainer</service-name>
<service-class>org.jboss.portal.core.model.portal.PortalObjectContainer</service-class>
<service-ref>:container=PortalObject</service-ref>
I deployed the application and while running the server I able to see the below exception in the log
ERROR [dependency.AbstractKernelController] [2006-09-21 13:34:32,539] [main] [AbstractController.java:350] - Error installing to Start: name=portal:container=Portlet,id=supplierportal.MenuPortlet state=Create
org.jboss.portal.portlet.container.PortletInitializationException: The portlet MenuPortlet threw a runtime exception during init
at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:287)
at org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:232)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:79)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:211)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:242)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Please can anybody have idea on this.
Thanks in advance
Naresh Kumar Tekulapalli
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973213#3973213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973213
More information about the jboss-user
mailing list