4 Replies Latest reply on Mar 24, 2009 10:31 AM by kharma

    WSRP Support?

    jmidd

      Hello all,

      I've had some success getting a couple richfaces componenets (tree, and tabs) working with the portlet bridge. Today I've tried to use those portlets remotely via WSRP, and ran into some exceptions. Before I dig into debugging this I am wondering if richfaces components are supposed to work with the portlet bridge through WSRP?

      16:41:40,499 ERROR [PortalServlet] Unexpected exception
      java.lang.NullPointerException
      at org.jboss.portal.wsrp.WSRPResourceURL.toString(WSRPResourceURL.java:172)
      at org.jboss.portal.wsrp.consumer.RenderHandler$WSRPURLRewriter.getReplacementFor(RenderHandler.java:254)
      at org.jboss.portal.common.net.URLTools.replaceURLsBy(URLTools.java:363)
      at org.jboss.portal.wsrp.consumer.RenderHandler.processMarkup(RenderHandler.java:197)
      at org.jboss.portal.wsrp.consumer.RenderHandler.processResponse(RenderHandler.java:123)
      at org.jboss.portal.wsrp.consumer.InvocationHandler.handle(InvocationHandler.java:86)
      at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.invoke(WSRPConsumerImpl.java:193)
      at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:147)
      ...

      From a debugger I grabbed the URL that it was trying to render:
      wsrp_rewrite?wsrp-urlType=resource&wsrp-url=http%3A%2F%2Flocalhost%3A60080%2Fdomain%2Ffaces%2FrfRescss%2FtabPanel.xcss%2FDATB%2FeAGTWzQ.BgAD.AG8%3Forg.jboss.portletbridge.NAMESPACE%3Djbpns_2fdefault_2fdefault_2fwizardWindow_23snpbj_snpbj&wsrp-requiresRewrite=true/wsrp_rewrite

      Thanks,
      Jeff

        • 1. Re: WSRP Support?
          claprun

          Hi Jeff,
          Resource support is experimental in WSRP right now. It will be better supported once we integrate our new JSR-286 compliant portlet container in Portal.

          That said, I will look at what's going on. Which version of Portal is this? 2.6.4 I assume?

          • 2. Re: WSRP Support?
            jmidd

            Thanks for the reply Chris. Yes this is the 2.6.4 version of Portal.

            I haven't tried it yet, but would I run into the same problem trying to include another resource like an image in a WSRP portlet with Portal?

            • 3. Re: WSRP Support?
              claprun

              It seems that there is a double encoding of the "&" character at some point in the pipeline. I'm trying to track down where/why it happens...

              • 4. Re: WSRP Support?

                still seeing this in 2.6.4.. were you ever able to find the cause?