1 2 Previous Next 18 Replies Latest reply on Aug 5, 2006 10:23 AM by Rali Genova

    Portal installation failed: Cannot invoke with a null interc

    Jonathan Mischo Newbie

      I've been trying to get Portal to work on JBoss 4.0.4GA with Mysql 5.0.19, and have navigated my way through a variety of errors. Unfortunately, I can't get past the following. Any help would be greatly appreciated.

      exception

      javax.servlet.ServletException: Cannot invoke with a null interceptor[]
      org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:306)
      org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause

      org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
      org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
      org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
      org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

        • 1. Re: Portal installation failed: Cannot invoke with a null in
          Rali Genova Novice

          What release of JBoss Portal are you using? And have you added any custom portlets, or this happens from the OutOfTheBox installation?

          • 3. Re: Portal installation failed: Cannot invoke with a null in
            Rali Genova Novice

            Could you summarize step by step how to reproduce this error, so I can try to verify it?

            • 4. Re: Portal installation failed: Cannot invoke with a null in
              Jonathan Mischo Newbie

              Not really. This is on trying to load http://:8080/portal after deploying with no changes and using a DS file that has the correct information inserted.

              On first load after deployment, it failed due to not having mysql options specified in the URI. After fixing that, all the tables appear to have been created, but now this is what I get.

              • 5. Re: Portal installation failed: Cannot invoke with a null in
                Rali Genova Novice

                Your post got trunkated, and I see

                http://:8080/portal
                as the URL you are using to access portal. Have you tried localhost:8080/portal instead? I get a blank screen trying to access the URL from your post, but again, I am not sure why the forum trunkated it.

                • 7. Re: Portal installation failed: Cannot invoke with a null in
                  Rali Genova Novice

                  Hmm, CR3 deploys and starts up fine for me, but I am using MySQL 4x. Could you delete your JBOSS_HOME/server/default/data dir and replace the portal-mysql-ds.xml with portal-hsqldb-ds.xml and start it up, so we can isolate if the problem has something to do with your DB? The data dir will be replaced once you start up, and later you can switch back to MySQL by deleting it again and changing the datasource file.

                  • 8. Re: Portal installation failed: Cannot invoke with a null in
                    Roy Russo Master

                    Mysql 5 has issues: http://wiki.jboss.org/wiki/Wiki.jsp?page=AvoidMySQL5DataTruncationErrors

                    Also, there is a bug fixed today that prevents the CMS from starting, but the rest of the portal works fine.http://jira.jboss.com/jira/browse/JBPORTAL-978

                    • 9. Re: Portal installation failed: Cannot invoke with a null in
                      Jonathan Mischo Newbie

                      Rali: I've done as you've asked. Waiting for JBoss to finish coming up.

                      Roy: I already took those steps and with those steps, Portal is supposed to work with MySQL 5, no?

                      • 10. Re: Portal installation failed: Cannot invoke with a null in
                        Jonathan Mischo Newbie

                        Rali,

                        With that change, there is a new error:

                        exception

                        javax.servlet.ServletException: NO LAYOUT FOUND FOR generic
                        org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:312)
                        org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


                        root cause

                        java.lang.IllegalStateException: NO LAYOUT FOUND FOR generic
                        org.jboss.portal.core.command.MarkupCommand.getLayout(MarkupCommand.java:432)
                        org.jboss.portal.core.command.MarkupCommand.create(MarkupCommand.java:271)
                        org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:90)
                        org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:91)
                        org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:78)
                        org.jboss.portal.core.CoreController.handle(CoreController.java:126)
                        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                        java.lang.reflect.Method.invoke(Method.java:585)
                        org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                        org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                        org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                        org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                        org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                        org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                        org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                        org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
                        $Proxy127.handle(Unknown Source)
                        org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:79)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:140)
                        org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:64)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:74)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:174)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:92)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
                        org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                        org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                        org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
                        org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                        org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                        org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:37)
                        org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:130)
                        org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
                        org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
                        org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
                        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                        org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                        • 11. Re: Portal installation failed: Cannot invoke with a null in
                          Rali Genova Novice

                          This shouldn't happen. What is the incomplete deployment list if any? It might also help if you remove work and tmp dirs under deploy and restart.

                          • 12. Re: Portal installation failed: Cannot invoke with a null in
                            Jonathan Mischo Newbie

                            Seems like a complete deployment...same error after a restart. Something strange is happening here, and I don't know what it is.

                            • 13. Re: Portal installation failed: Cannot invoke with a null in
                              Jonathan Mischo Newbie

                              Stopped JBoss, redeployed the Portal code, and started JBoss again. Maybe this will work?

                              • 14. Re: Portal installation failed: Cannot invoke with a null in
                                Jonathan Mischo Newbie

                                Interestingly enough, the redeploy worked. I also deleted data, tmp, and work directories while it was down.

                                I'm going to take it down again, delete those directories, put the mysql DS back in place, and try that.

                                I will update shortly to indicate whether it will now work with MySQL 5, or if something else is wrong.

                                1 2 Previous Next