1 Reply Latest reply on Aug 10, 2007 2:37 AM by Thomas Heute

    java.lang.NullPointerException @ InternalContentProvider.jav

    Ricardo Harari Newbie

      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