1 Reply Latest reply on Feb 18, 2008 12:00 PM by Robert Garrido

    IPC issues with Portal 2.4.6

    Robert Garrido Newbie

      Hi,

      I downloaded the latest IPC tutorial available in the JBoss SVN repository at:

      http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/src/HelloWorldIPC/

      However if fails when deployed in the 2.4.6 portal:


      14:18:50,281 ERROR [PortalServlet] Unexpected exception
      java.lang.NullPointerException
       at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:80)
       at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
       at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
       at org.jboss.portal.web.ServletContainer.include(ServletContainer.java:182)
       at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.dispatch(AbstractRequestContext.java:81)
       at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:76)
       at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
      
      
      14:18:50,281 ERROR [[PortalServletWithPathMapping]] Servlet.service() para servlet PortalServletWithPathMapping lanzó excepción
      java.lang.NullPointerException
       at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:80)
       at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
       at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
       at org.jboss.portal.web.ServletContainer.include(ServletContainer.java:182)
       at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.dispatch(AbstractRequestContext.java:81)
       at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:76)
       at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
       at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
      



      Thanks in advance.

        • 1. Re: IPC issues with Portal 2.4.6
          Robert Garrido Newbie

          and for clearer information:

          17:54:26,062 ERROR [STDERR] java.lang.NullPointerException
          17:54:26,062 ERROR [STDERR] at org.jboss.portlet.JBossRenderResponse.createRenderURL(JBossRenderResponse.java:71)
          17:54:26,062 ERROR [STDERR] at org.jboss.portlet.hello.HelloWorldPortletA.doView(HelloWorldPortletA.java:26)
          17:54:26,062 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:257)
          17:54:26,062 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:244)
          17:54:26,062 ERROR [STDERR] at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:390)
          17:54:26,062 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(Portl



          which means here:


           // link to a page
           html.append("<-- Page Linking --><br/>");
           PortalNode thisNode = req.getPortalNode().getParent(); // will return this Page as a node.
           PortalNode linkToNode = thisNode.resolve("../default");
           PortalNodeURL pageURL = resp.createRenderURL(linkToNode); ///HERE!!!!
           html.append("Page: " + linkToNode.getName() + " -> ");
           html.append("<a href=\"" + pageURL.toString() + "\">" + linkToNode.getName() + "</a>");