11 Replies Latest reply on Dec 7, 2010 4:31 AM by tomas.kotrbaty

    500 Internal Server Error!

    icai

      Hi Everyone,

      My application crashes from time to time. I observed that it usually happens, when the session expires. When Session expires I catch this event using A4J.onexpire function. If session has expired, user is asked whether he/she wants to relogin or quit the app. If user wants to relogin following error comes :
      javax.servlet.jsp.JspException
      at com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:355)
      at _index._jspService(_index.java:81)
      [SRC:/index.jsp:37]
      at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:253)
      at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
      at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java(Compiled Code))
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
      at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java(Compiled Code))
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java(Compiled Code))
      at java.lang.Thread.run(Thread.java:568)


      Index.jsp has no errors at all!

      Once this occurs application has completely crashed! If I start afresh, I'll keep getting the same error.
      Once it happens I need to restart my OC4J server. On restart everythings works fine till some session mess occurs again.
      Please help, this issue has really become serious, I dont have any clue at all!

      Thanks in advance!

        • 1. Re: 500 Internal Server Error!

          You still need to show what is inside the index.jsp

          • 2. Re: 500 Internal Server Error!
            icai

            Thanks for replying.
            Here is my index.jsp:

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/html4/loose.dtd">
            <%@ page contentType="text/html;charset=ISO-8859-1"%>
            <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
            <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
            <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
            <f:view>
             <html>
             <head>
             <meta http-equiv="Content-Type"
             content="text/html; charset=ISO-8859-1"/>
             <link type="text/css" rel="stylesheet" href="CSS/ilog_main.css"/>
             <style type="text/css">
            </style>
             <script type="text/javascript">
             </script>
             </head>
             <%
            session.setAttribute ("SESSION_ID", session.getId());
            String userId = request.getParameter("userId");
            session.setAttribute("user", userId);
            String languageCd = request.getParameter("languageCd");
            session.setAttribute("lang", languageCd);
            
            
            
            %>
             <body onload="loadInitialData()"><h:form>
             <a4j:jsFunction name="loadInitialData" id="loadFunction"
             action="#{startBean.loadSession}"/>
             </h:form></body>
             </html>
            </f:view>


            • 3. Re: 500 Internal Server Error!
              alexsmirnov

              javax.servlet.jsp.JspException is only wrapper for a real exception. Can you provide information about all "caused by" exceptions ?

              • 4. Re: 500 Internal Server Error!

                I'd recommend to move all this java from jsp into some backing bean and surround it with try/catch with log.
                The problem is that Oracle do not provide any real cause in you trace, may be you can look somewhere in the log?

                • 5. Re: 500 Internal Server Error!
                  icai

                  Code is already up in production box, as pilot. I don't have the access to OAS on production!

                  I could see other people facing the same problem. But did not exactly find the solution.

                  • 6. Re: 500 Internal Server Error!
                    icai

                    I have not yet found the solution to this problem. I have the application.log with me. I saw the following error:

                    Servlet error
                    java.lang.IndexOutOfBoundsException
                    at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java(Compiled Code))
                    at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java(Inlined Compiled Code))
                    at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java(Compiled Code))
                    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java(Compiled Code))
                    at _search._jspService(_search.java(Compiled Code))
                    at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java(Compiled
                    Code))
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java(Compiled Code))
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java(Compiled Code))
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java(Compiled Code))
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled
                    Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled
                    Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java(Compiled
                    Code))
                    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java(Compiled Code))
                    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java(Compiled Code))
                    at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java(Inlined Compiled Code))
                    at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java(Compiled Code))
                    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java(Compiled Code))
                    at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java(Inlined Compiled Code))
                    at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java(Compiled Code))
                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java(Compiled Code))
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java(Compiled Code))
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java(Compiled Code))
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java(Compiled Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java(Compiled
                    Code))
                    at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java(Compiled Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java(Compiled
                    Code))
                    at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java(Compiled Code))
                    at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java(Compiled Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled
                    Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled
                    Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled
                    Code))
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
                    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
                    at java.lang.Thread.run(Thread.java:570)


                    I would appreciate a great deal if someone can throw light on this! I need to catch hold of this issue asap.

                    • 7. Re: 500 Internal Server Error!
                      tomas.kotrbaty

                      Hello,

                       

                      I have similiar problem.

                      After a server restart (IBM WAS 7), the app works fine.

                      Then sometinhg happens and the application returns the 500 code error everytime it is run again.

                       

                      In the log there is this:

                       

                      [10/21/10 9:44:42:381 CEST] 0000002c lifecycle     E   JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /orderCar.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@4d484d48]
                      [10/21/10 9:44:42:401 CEST] 0000002c servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet Faces Servlet in application REFCAR. Exception created : javax.servlet.ServletException
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
                          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
                          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
                          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
                          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
                          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
                          at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
                          at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:895)
                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
                          at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
                          at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
                          at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
                          at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
                          at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:183)
                          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
                          at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
                          at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
                          at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
                          at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
                          at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
                          at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
                          at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
                          at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
                          at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
                          at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
                          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
                      Caused by: java.lang.ArrayIndexOutOfBoundsException
                          at java.lang.String.<init>(String.java:351)
                          at org.richfaces.renderkit.AbstractExtendedTableRenderer$G3HeaderEncodeStrategy.encodeEnd(AbstractExtendedTableRenderer.java:1654)
                          at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeHeaderFacets(AbstractExtendedTableRenderer.java:440)
                          at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeHeader(AbstractExtendedTableRenderer.java:189)
                          at org.richfaces.renderkit.html.ExtendedDataTableRenderer.doEncodeBegin(ExtendedDataTableRenderer.java:267)
                          at org.richfaces.renderkit.html.ExtendedDataTableRenderer.doEncodeBegin(ExtendedDataTableRenderer.java:196)
                          at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
                          at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeBegin(AbstractExtendedTableRenderer.java:1365)
                          at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:816)
                          at javax.faces.component.UIData.encodeBegin(UIData.java:983)
                          at org.ajax4jsf.component.UIDataAdaptorBase.encodeBegin(UIDataAdaptorBase.java:1225)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:525)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:532)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.custom.fieldset.FieldsetRenderer.encodeChildren(FieldsetRenderer.java:71)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:236)
                          at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:180)
                          at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:127)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                          at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:528)
                          at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
                          at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeChildren(HtmlTagRenderer.java:111)
                          at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
                          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                          at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
                          at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
                          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                          ... 33 more

                      • 8. Re: 500 Internal Server Error!
                        mmollaverdi

                        Can you please tell me how you managed to fix this.

                        I have exactly the same prblem; It happens every couple of hours and gets fixed after restarting the app.

                        The appliation is running on Weblogic App Server and IBM AIX OS/JDK.

                         

                        java.lang.ArrayIndexOutOfBoundsException
                            at java.lang.String.<init>(String.java:351)
                            at org.richfaces.renderkit.AbstractExtendedTableRenderer$G3HeaderEncodeStrategy.encodeEnd(AbstractExtendedTableRenderer.java:1654)
                            at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeHeaderFacets(AbstractExtendedTableRenderer.java:440)
                            at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeHeader(AbstractExtendedTableRenderer.java:189)
                            at org.richfaces.renderkit.html.ExtendedDataTableRenderer.doEncodeBegin(ExtendedDataTableRenderer.java:267)
                            at org.richfaces.renderkit.html.ExtendedDataTableRenderer.doEncodeBegin(ExtendedDataTableRenderer.java:196)
                            at org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
                            at org.richfaces.renderkit.AbstractExtendedTableRenderer.encodeBegin(AbstractExtendedTableRenderer.java:1365)
                            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
                            at javax.faces.component.UIData.encodeBegin(UIData.java:962)
                            at org.ajax4jsf.component.UIDataAdaptorBase.encodeBegin(UIDataAdaptorBase.java:1225)
                            at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
                            at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
                            at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
                            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
                            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
                            at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                            at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                            at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
                            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
                            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:204)
                            at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                            at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
                            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
                            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:110)
                            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:95)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:79)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
                            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
                            at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:150)
                            at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
                            at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
                            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
                            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
                            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
                            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
                            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
                            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
                            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
                            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
                            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
                            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
                            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

                         

                        Any help is strongly appreciated.

                        • 9. Re: 500 Internal Server Error!
                          tomas.kotrbaty

                          Hello,

                           

                          I have started another thread here:

                          http://community.jboss.org/thread/158863

                           

                          The resolution is not to use rich:extendedDataTable.

                           

                          by Tomas.

                          • 10. Re: 500 Internal Server Error!
                            mmollaverdi

                            Thanks Tomas.

                            So after changing the rich:extendedDataTableS to scrollerDtaTable, you never got this error?

                            I'm using almost the same environment (IBM Jdk, AIX) except the application server which is Weblogic. Unfortunately the clinet emphasizes using Weblogic in IBM environment.

                            I agree with you that it might have something to do with IBM JDK.

                            As you mentioned, handling the selection when the table is sortable using anything except extendedDataTable is so difficult.

                            • 11. Re: 500 Internal Server Error!
                              tomas.kotrbaty

                              Hello Mehdi,

                              yes, after changing the extendedDataTable to scrollableDtaTable everything is OK and I never got this error again (the error is encapsulated in the 500-code error, that is thrown to client/browser).

                              I have tested it many times using JMeter from Apache under some burden and everything is OK.

                              Now the application is under performance testing and so far all is OK. I will write if something will change.

                               

                              I am not happy of that, because the extendedDataTable looks better and has better functionalities, but non-error application is my goal.

                              And next - the scrollableDtaTable has less memory footprint – that is also important for me. (Do you know the context parameters “com.sun.faces.numberOfViewsInSession” and “com.sun.faces.numberOfLogicalViews” and the stuff around this?)

                               

                              Well, when you use the session scope to your bean, than sorting and selecting works OK. I was only unhappy to change all application to session base, because everything was in request base…

                               

                              If you find out something new, write back.

                               

                              Good Luck

                              Tomas