[jboss-user] [JBoss Portal] - java.lang.NullPointerException @ InternalContentProvider.jav

rharari do-not-reply at jboss.com
Thu Aug 9 23:23:00 EDT 2007


Hi,

I´ve synchronized the source with trunk branch and i´m getting this exception when running the portal:

java.lang.NullPointerException
org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow(InternalContentProvider.java:258)
org.jboss.portal.core.impl.model.content.generic.InternalGenericContentProvider.renderWindow(InternalGenericContentProvider.java:210)
org.jboss.portal.core.cms.content.InternalCMSContentProvider.renderWindow(InternalCMSContentProvider.java:105)
org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute(RenderWindowCommand.java:88)
org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:123)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:57)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:118)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:77)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)


I´ve solved this adding the following declaration in /core-cms/src/resources/portal-cms-sar/META-INF/jboss-service.xml file:


  | .....
  |    <!-- Content renderer integration -->
  |    <mbean
  |       code="org.jboss.portal.core.cms.content.InternalCMSContentProvider"
  |       name="portal:service=ContentRenderer,type=cms"
  |       xmbean-dd=""
  |       xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
  |       <xmbean/>
  |       <attribute name="ContentType">cms</attribute>
  |       <attribute name="DecorateContent">false</attribute>
  |       <attribute name="PortletInstanceName">CMSPortletInstance</attribute>
  |       <depends
  |          optional-attribute-name="Registry"
  |          proxy-type="attribute">portal:service=ContentProviderRegistry</depends>
  |       <depends
  |          optional-attribute-name="CommandFactory"
  |          proxy-type="attribute">portal:commandFactory=CMSObject</depends>
  | 
  | 
  | <!-- include this  -->
  | 	   <depends
  |          optional-attribute-name="PortalAuthorizationManagerFactory"
  |          proxy-type="attribute">portal:service=PortalAuthorizationManagerFactory</depends>
  | 
  | 
  | 
  |    </mbean>
  | 

Environment: jdk 6.0 - jboss 4.0.5ga - mysql - windows


Hope this help someone else ;)


rgds,

r.harari


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072811#4072811

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072811




More information about the jboss-user mailing list