Debugged things a little bit: at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:738) at javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase.java:307) at org.apache.shale.clay.faces.ClayViewHandler.recursiveRender(ClayViewHandler.java:462) at org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:398)
At the viewhandler in line 462 all is fine, a context is there. But when the children are going to be rendered, the call to FacesContext.getCurrentInstance() returns null. Might this be a bug in the jsf implemantation or does shale destroy things which it shouldn't? Any help would be nice - i don't know why the context gets lost, something i should look for in clay or shale which would be nice debug points? Torsten Am Donnerstag, den 02.11.2006, 13:17 +0100 schrieb Torsten Krah: > Using pure jsp's i get this additionally: > > ERROR http-8080-Processor23 javax.faces.webapp.UIComponentTag - Faces > context not found. getResponseWriter will fail. Check if the > FacesServlet has been initialized at all in your web.xml. > ERROR http-8080-Processor23 > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/frc-dev].[jsp] > - Servlet.service() for servlet jsp threw exception > java.lang.NullPointerException > at > javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929) > at > javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310) > at > org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70) > at > org.apache.jsp.jsf.test_jsp._jspx_meth_f_view_0(test_jsp.java:100) > > .... > > Caused by: org.apache.jasper.JasperException: Exception in > JSP: /jsf/test.jsp:5 > > 2: <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> > 3: <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> > 4: > 5: <f:view> > 6: > 7: <html> > 8: <head> > > > Stacktrace: > at > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) > at > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > org.apache.shale.application.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267) > 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) > at > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416) > ... 32 more > > > > Why there is no context? > > Torsten > > Am Donnerstag, den 02.11.2006, 12:18 +0100 schrieb Torsten Krah: > > Still no success here. > > > > Adapted the shale-usecases example to test this page - but still no > > success. > > > > When i hit the submit button, the division by zero exception occurs. > > But later in the log there are these exceptions: > > > > ERROR http-8080-Processor23 > > org.apache.myfaces.lifecycle.PhaseListenerManager - Exception in > > PhaseListener INVOKE_APPLICATION(5) afterPhase > > java.lang.NullPointerException > > at > > net.sf.facestrace.utils.TraceUtils.getTraceData(TraceUtils.java:36) > > at > > net.sf.facestrace.phase.listener.InvokeApplicationPhaseListener.afterPhase(InvokeApplicationPhaseListener.java:33) > > > > ... > > > > ERROR http-8080-Processor23 > > org.apache.myfaces.lifecycle.PhaseListenerManager - Exception in > > PhaseListener RENDER_RESPONSE(6) beforePhase. > > java.lang.NullPointerException > > at > > net.sf.facestrace.utils.TraceUtils.getTraceData(TraceUtils.java:36) > > at > > net.sf.facestrace.phase.listener.RenderResponsePhaseListener.beforePhase(RenderResponsePhaseListener.java:45) > > at > > org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70) > > > > ... > > > > ERROR http-8080-Processor23 > > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/frc-dev].[Faces > > Servlet] - Servlet.service() for servlet Faces Servlet threw exception > > java.lang.NullPointerException: context > > at > > javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:738) > > at > > javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase.java:307) > > > > ... > > > > ERROR http-8080-Processor23 > > org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/frc-dev].[Faces > > Servlet] - Servlet.service() for servlet Faces Servlet threw exception > > java.lang.NullPointerException: context > > at > > javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:738) > > at > > javax.faces.component.UIComponentBase.getRendersChildren(UIComponentBase.java:307) > > > > Browser shows the 500 with the Null pointer exception - no navigation to > > my error page happens. > > > > I am using clay for both, the test page and the exception one. > > > > Any hints? > > > > Torsten > > > > > > Am Mittwoch, den 18.10.2006, 08:39 +0200 schrieb Torsten Krah: > > > Its hard to tell "whats not working". > > > > > > I've set the parameter and refer in a view to a property of a bean which > > > does not exist to produce an exception causing a 500 code. > > > > > > My Page does not show up ... - hm i try to debug it, maybe i find > > > something useful. > > > > > > Torsten > > > > > > Am Dienstag, den 17.10.2006, 22:02 -0700 schrieb Craig McClanahan: > > > > On 10/17/06, Torsten Krah <[EMAIL PROTECTED]> wrote: > > > > > > > > > > https://issues.apache.org/struts/browse/SHALE-277 > > > > > > > > > > Does anyone got it working - i mean the custom error page which is > > > > > configured through the param mentioned there. > > > > > If yes - any hints how to get it work or debug would be nice - because > > > > > the resolution is "not a problem", but for me it is one ... > > > > > > > > > > > > I closed the issue with that status because I could not reproduce the > > > > situation you have found yourself in (which is a prerequisite for > > > > fixiing > > > > such a problem :-). Plus, If you can tell me how to reproduce the > > > > problems you see, please feel free to reopen the SHALE-277 issue and > > > > provide > > > > the instructions for how to demonstrate that the current code is broken. > > > > There is a use case in the shale-usecases app that works for me ... > > > > does it > > > > work for you? > > > > > > > > Craig > > > > > > > > > > > > kind regards > > > > > > > > > > > > >
smime.p7s
Description: S/MIME cryptographic signature