5 Replies Latest reply on Dec 21, 2005 4:29 PM by Daniel Miklancic

    Reporting a few errors

    pmn92 Novice

      I am getting many exceptions of the same at different places.

      root causes are:

      org.apache.jasper.JasperException
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)


      java.lang.NullPointerException
      org.jboss.portal.theme.tag.basic.ForEachWindowInRegionTag.next(ForEachWindowInRegionTag.java:73)



      To reproduce it should be easy, use the test portlet and continue clicking on all features. It comes pretty soon.

      The full trace is below:



      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException
       org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:214)
       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:81)
      
      
      root cause
      
      org.apache.jasper.JasperException
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.portal.theme.LayoutDispatcher.execute(LayoutDispatcher.java:95)
       sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:324)
       org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:54)
       org.jboss.portal.theme.LayoutDispatcher.include(LayoutDispatcher.java:130)
       org.jboss.portal.core.command.RenderPageCommand.renderMarkup(RenderPageCommand.java:165)
       org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:335)
       org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:151)
       org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:65)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
       org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:72)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:156)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:48)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:45)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
       org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
       org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:80)
       org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:64)
       org.jboss.portal.core.CoreController.handle(CoreController.java:177)
       sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:324)
       org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
       $Proxy134.handle(Unknown Source)
       org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:63)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
       org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:35)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:40)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:55)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:56)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:171)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:74)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
       org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:208)
       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:81)
      
      
      root cause
      
      java.lang.NullPointerException
       org.jboss.portal.theme.tag.basic.ForEachWindowInRegionTag.next(ForEachWindowInRegionTag.java:73)
       org.jboss.portal.theme.tag.basic.ForEachWindowInRegionTag.doStartTag(ForEachWindowInRegionTag.java:114)
       org.apache.jsp.phalanx.index_jsp._jspService(org.apache.jsp.phalanx.index_jsp:705)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.jboss.portal.theme.LayoutDispatcher.execute(LayoutDispatcher.java:95)
       sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:324)
       org.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:54)
       org.jboss.portal.theme.LayoutDispatcher.include(LayoutDispatcher.java:130)
       org.jboss.portal.core.command.RenderPageCommand.renderMarkup(RenderPageCommand.java:165)
       org.jboss.portal.core.command.RenderPageCommand.renderPortlets(RenderPageCommand.java:335)
       org.jboss.portal.core.command.RenderPageCommand.execute(RenderPageCommand.java:151)
       org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:65)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
       org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:72)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:156)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:48)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.controller.NavigationInterceptor.invoke(NavigationInterceptor.java:45)
       org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
       org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:94)
       org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:80)
       org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContet.java:64)
       org.jboss.portal.core.CoreController.handle(CoreController.java:177)
       sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       java.lang.reflect.Method.invoke(Method.java:324)
       org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
       org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
       org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
       $Proxy134.handle(Unknown Source)
       org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:63)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:127)
       org.jboss.portal.core.aspects.server.SubjectAssociationInterceptor.invoke(SubjectAssociationInterceptor.java:35)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.PolicyAssociationInterceptor.invoke(PolicyAssociationInterceptor.java:40)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:55)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:56)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:171)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:74)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java:62)
       org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:25)
       org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:117)
       org.jboss.portal.server.invocation.Invocation.invoke(Invocation.java:162)
       org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:208)
       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:81)
      
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.
      
      


        • 1. Re: Reporting a few errors
          Daniel Miklancic Newbie

          I second PMO's report. Once a single exception is thrown, it seems most features start to fail (even thought they had previously worked).

          I am running the 2.2 bundled version without any changes or additions.

          • 2. Re: Reporting a few errors
            Roy Russo Master

            You guys are seeing this in the Test Portlet or the Theme Test Portlet?

            I'm trying to reproduce the errors.

            • 3. Re: Reporting a few errors
              pmn92 Novice

              In the test page there are many tests:
              . missing instance
              . missing portlet

              . exception test works one time only, showing different types of exceptions. Clicking on one exception breaks the portlet.

              • 4. Re: Reporting a few errors
                Daniel Miklancic Newbie

                With some additional testing, I believe I have narrowed the problem:

                Installed JBoss Portal 2.2.0-bundled on Windows, executed run.bat, launched IE 6.0 browser with http://localhost/portal.

                (In Phalanx layout)
                Select Test page
                Select "missing instance test" -- works (displays "powered by JBoss" only)
                Select browser's back button
                Select "exception test" -- displays Exception Portlet
                Select "action Runtime Exception" -- HTTP Status 500
                Select browser's back button twice
                Select "missing instance test" again -- exception trace as listed above by PMO.

                Now, switch to generic layout and repeat. The second selection of "missing instance test" displays "powered by JBoss" rather than the messy exception trace.

                Now, switch to the nodesk layout and repeat. The second selection of "missing instance test" fails as it did in the Phalanx layout, except "nodesk" is indicated rather than "phalanx". Exceprt follows:

                root cause
                
                java.lang.NullPointerException
                 org.jboss.portal.theme.tag.basic.ForEachWindowInRegionTag.next(ForEachWindowInRegionTag.java:73)
                 org.jboss.portal.theme.tag.basic.ForEachWindowInRegionTag.doStartTag(ForEachWindowInRegionTag.java:114)
                 org.apache.jsp.nodesk.index_jsp._jspService(org.apache.jsp.nodesk.index_jsp:453)
                 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)



                It appears the generic layout is working fine and the others have a NPE issue. Hope this helps isolate the problem.

                • 5. Re: Reporting a few errors
                  Daniel Miklancic Newbie

                  A few additional pieces of information that may prove helpful:

                  When in "phalanx" or "nodesk" layouts ...

                  1. Select "theme selector", select the "information" or "help" mode icon -- generates the NPE error. This work fine in the "generic" layout.

                  2. Select "theme test," select the Rewrite Portlet Content button -- nothing happens. In the "generic" layout, a small popup window appears.

                  Once I receive a NPE exception, I often have to close the browser session and begin again to get back to the theme selector portlet to change the layout back to generic so things start to work again.