6 Replies Latest reply on Aug 19, 2006 1:08 PM by Julio Argüello

    Remotable Hello World Portlet

    Julio Argüello Newbie

      Hello, I have just checked-out the HelloWorldPortlet example from http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/src.

      Later, I made it remotable through the jboss-portlet.xml, deployed it and finally I created an instance from the 'self' portlet provided.

      I created a page just to show this portlet behaviour and once it is opened an exception is raised and the portlet provided becomes down. What is wrong?

      Thanks in advance.

        • 1. Re: Remotable Hello World Portlet
          Julio Argüello Newbie

          Exception trace:

          java.lang.NullPointerException
          at org.jboss.portal.wsrp.consumer.InvocationHandler.unwrapWSRPError(InvocationHandler.java:174)
          at org.jboss.portal.wsrp.consumer.RenderHandler.processRenderRequest(RenderHandler.java:83)
          at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.invoke(WSRPConsumerImpl.java:171)
          at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:139)
          at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:155)
          at sun.reflect.GeneratedMethodAccessor217.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy65.invoke(Unknown Source)
          at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:63)
          at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:242)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
          at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:85)
          at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:93)
          at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:83)
          at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
          at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:123)
          at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy47.invoke(Unknown Source)
          at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:273)
          at org.jboss.portal.core.command.RenderWindowCommand.execute(RenderWindowCommand.java:108)
          at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
          at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
          at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
          at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
          at org.jboss.portal.core.command.CommandContext.chain(CommandContext.java:148)
          at org.jboss.portal.core.command.MarkupCommand.renderPortletWindow(MarkupCommand.java:463)
          at org.jboss.portal.core.command.RenderPageCommand.renderFragments(RenderPageCommand.java:76)
          at org.jboss.portal.core.command.MarkupCommand.execute(MarkupCommand.java:340)
          at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:91)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
          at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:171)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:80)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
          at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
          at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
          at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
          at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
          at org.jboss.portal.core.CoreController.handle(CoreController.java:126)
          at sun.reflect.GeneratedMethodAccessor319.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
          at $Proxy139.handle(Unknown Source)
          at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
          at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
          at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
          at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
          at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
          at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
          at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
          at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
          at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
          at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
          at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
          at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:534)

          • 2. Re: Remotable Hello World Portlet
            Viet Master

            it has been fixed in cvs and the fix will be in 2.4 final.

            • 3. Re: Remotable Hello World Portlet
              Chris Laprun Master

              Could you provide more details on what you are doing? I cannot reproduce the issue, i.e. I cannot get the portlet to fail. Which version of Portal are you using?

              • 4. Re: Remotable Hello World Portlet
                Julio Argüello Newbie

                Thanks,

                I'm just trying to build my own WSRP using JBoss Portal 2.4.

                I have followed these steps:
                1) Add a jboss-portlet.xml description file and declare the portlet as remotable.
                2) Build a new war file.
                3) Deploy the portlet.
                4) Create a new instance using the "self" portlet provider.
                5) Create a new page for displaying the portlet.

                In fact an exception is raised when shown and after it a portlet provider "self" seems to be down

                • 5. Re: Remotable Hello World Portlet
                  Chris Laprun Master

                  Which specific version of Portal 2.4? Did you build it from cvs or are you using one of the CR releases?

                  • 6. Re: Remotable Hello World Portlet
                    Julio Argüello Newbie

                    Thanks,
                    The version of the portal is 2.4 RC3 from embedded binaries resource.