8 Replies Latest reply on Dec 21, 2006 9:29 AM by unibrew

    Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Forums

    j0ke

      i have JBoss 2.4 with ejb3 enabled.
      i install Jbosss Portal 2.6dr1 it works fine
      when i deploy Forums Portlet ( hot deploy )
      and try to see this portlet i get :

      13:02:07,170 ERROR [ControllerCommand] Rendering portlet window default.JOKeTest.Forum triggered the following error :
      javax.portlet.PortletException: org.apache.jasper.JasperException: org.jboss.portal.format.template.DelegateContext
      at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:116)
      at org.jboss.portlet.forums.ForumsPortlet.doView(ForumsPortlet.java:323)
      at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:242)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:229)
      at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:366)
      at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:516)
      at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:438)
      at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:73)
      at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:134)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInte
      rceptor$invokeRequired$aop(TransactionInterceptor.java:105)
      at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeRequired_9103964459766407072.invokeNext(Transac
      tionInterceptor$invokeRequired_9103964459766407072.java)

        • 1. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
          unibrew

          Hi

          You have JBoss AS 2.4 ? That's something new ;-)

          Nevertheless, don't use old ForumsPortlet instance. Use ForumsJSFPortlet instance, this one should work fine.

          Regards
          ----------------------
          Ryszard Kozmik
          JBoss Forums Lead
          JBoss Labs Team

          • 2. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
            j0ke

            ah i mean Jboss AS 4.4 :) ( 4.0.4 ) haha sorry :) not enought coffee today i think :)

            i try JSFForumInstance
            and get

            An error occured while rendering window 'default.JOKeTest.JSF Forum'


            java.lang.NullPointerException: serialFactory


            :)


            Caused by: java.lang.NullPointerException: serialFactory
            at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:174)
            at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:150)
            at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(HtmlResponseStateMana
            at org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java:
            at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:465)
            at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
            at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java
            at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java
            at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379
            at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
            at org.jboss.portlet.forums.ui.ForumsJSFPortlet.doView(ForumsJSFPortlet.java:111)
            ... 240 more

            • 3. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
              j0ke

              lol this is very strange
              Line 111 is :
              if(categoryId != null && categoryId.trim().length() > 0)
              response.setRenderParameter("c", categoryId);

              • 4. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
                j0ke

                but im using decompiler :) so .. maybe there is some comments that i dont see and that is not line 111

                • 5. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
                  unibrew

                  hehe yes but it is JSF/Facelets, every bug connected with it is weird. You might look at newer sources than binaries which you use.

                  The sollution of this bug is available in SVN. It is very simple:

                  <listener>
                   <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
                  </listener>
                  is missing in web.xml.

                  So, you might wanna download newest sources where those lines are added and in fact many other bugs are solved. Or add them by yourself ;-).

                  Cheers
                  ----------------------
                  Ryszard Kozmik
                  JBoss Forums Lead
                  JBoss Labs Team

                  • 6. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
                    unibrew

                    hehe you posted about using decompiler while I was writing. Whatsoever, try newest sources :-)

                    • 7. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
                      j0ke

                      oki :)
                      but it will be good to make beta build :+))
                      i check the other topics i think there is one 100% similiar with this one :)

                      • 8. Re: Problem with JBoss 2.4 + JBoss Portal 2.6 DR1 + JBoss Fo
                        unibrew

                        Another build will be 1.0.0 Beta release ( http://jira.jboss.com/jira/browse/JBFORUMS?report=com.atlassian.jira.plugin.system.project:roadmap-panel). I'm closing to it but still there will be many more tasks for complete design/L&F change.

                        And yes there was a thread like that before. Deja vu ;-)