You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Wallace <rw...@thewallacepack.net> on 2006/04/19 23:20:14 UTC
[shale] RuntimeException rather than a 404
When trying to access a file that doesn't exist, Clay is throwing a
RuntimeException that is causing my 500 error page to be displayed
rather than a 404 error page. Here's the offending exception:
java.lang.RuntimeException: Unable to find file /for_parents.html.
at
org.apache.shale.clay.config.beans.ComponentConfigBean.getConfigDefinitions(ComponentConfigBean.java:230)
at
org.apache.shale.clay.config.beans.TemplateConfigBean.getElement(TemplateConfigBean.java:72)
at
org.apache.shale.clay.component.Clay.getRootElement(Clay.java:244)
at org.apache.shale.clay.component.Clay.encodeBegin(Clay.java:283)
at
org.apache.shale.clay.faces.ClayViewHandler.recursiveRender(ClayViewHandler.java:402)
at
org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:345)
at
org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:146)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
...
I'm using a nightly from 20060313 so forgive me if this is fixed in the
latest code. If not, can I file a bug?
Thanks,
Rich
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [shale] RuntimeException rather than a 404
Posted by Alexandre Poitras <al...@gmail.com>.
Yeah definitely seems like a bug to me.
On 4/19/06, Richard Wallace <rw...@thewallacepack.net> wrote:
> If it was a subview I would agree. But this is the root view which is
> why I'm surprised by the behaviour.
>
> Rich
>
> Alexandre Poitras wrote:
> > Well if it isn't the root view and just an included subview, I would
> > expect this behavior but Gary would be the best person to answer this
> > question.
> >
> > On 4/19/06, Richard Wallace <rw...@thewallacepack.net> wrote:
> >
> >> When trying to access a file that doesn't exist, Clay is throwing a
> >> RuntimeException that is causing my 500 error page to be displayed
> >> rather than a 404 error page. Here's the offending exception:
> >>
> >> java.lang.RuntimeException: Unable to find file /for_parents.html.
> >> at
> >> org.apache.shale.clay.config.beans.ComponentConfigBean.getConfigDefinitions(ComponentConfigBean.java:230)
> >> at
> >> org.apache.shale.clay.config.beans.TemplateConfigBean.getElement(TemplateConfigBean.java:72)
> >> at
> >> org.apache.shale.clay.component.Clay.getRootElement(Clay.java:244)
> >> at org.apache.shale.clay.component.Clay.encodeBegin(Clay.java:283)
> >> at
> >> org.apache.shale.clay.faces.ClayViewHandler.recursiveRender(ClayViewHandler.java:402)
> >> at
> >> org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:345)
> >> at
> >> org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:146)
> >> at
> >> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
> >> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >> ...
> >>
> >>
> >> I'm using a nightly from 20060313 so forgive me if this is fixed in the
> >> latest code. If not, can I file a bug?
> >>
> >> Thanks,
> >> Rich
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >>
> >
> >
> > --
> > Alexandre Poitras
> > Québec, Canada
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Alexandre Poitras
Québec, Canada
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [shale] RuntimeException rather than a 404
Posted by Richard Wallace <rw...@thewallacepack.net>.
If it was a subview I would agree. But this is the root view which is
why I'm surprised by the behaviour.
Rich
Alexandre Poitras wrote:
> Well if it isn't the root view and just an included subview, I would
> expect this behavior but Gary would be the best person to answer this
> question.
>
> On 4/19/06, Richard Wallace <rw...@thewallacepack.net> wrote:
>
>> When trying to access a file that doesn't exist, Clay is throwing a
>> RuntimeException that is causing my 500 error page to be displayed
>> rather than a 404 error page. Here's the offending exception:
>>
>> java.lang.RuntimeException: Unable to find file /for_parents.html.
>> at
>> org.apache.shale.clay.config.beans.ComponentConfigBean.getConfigDefinitions(ComponentConfigBean.java:230)
>> at
>> org.apache.shale.clay.config.beans.TemplateConfigBean.getElement(TemplateConfigBean.java:72)
>> at
>> org.apache.shale.clay.component.Clay.getRootElement(Clay.java:244)
>> at org.apache.shale.clay.component.Clay.encodeBegin(Clay.java:283)
>> at
>> org.apache.shale.clay.faces.ClayViewHandler.recursiveRender(ClayViewHandler.java:402)
>> at
>> org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:345)
>> at
>> org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:146)
>> at
>> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> ...
>>
>>
>> I'm using a nightly from 20060313 so forgive me if this is fixed in the
>> latest code. If not, can I file a bug?
>>
>> Thanks,
>> Rich
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [shale] RuntimeException rather than a 404
Posted by Alexandre Poitras <al...@gmail.com>.
Well if it isn't the root view and just an included subview, I would
expect this behavior but Gary would be the best person to answer this
question.
On 4/19/06, Richard Wallace <rw...@thewallacepack.net> wrote:
> When trying to access a file that doesn't exist, Clay is throwing a
> RuntimeException that is causing my 500 error page to be displayed
> rather than a 404 error page. Here's the offending exception:
>
> java.lang.RuntimeException: Unable to find file /for_parents.html.
> at
> org.apache.shale.clay.config.beans.ComponentConfigBean.getConfigDefinitions(ComponentConfigBean.java:230)
> at
> org.apache.shale.clay.config.beans.TemplateConfigBean.getElement(TemplateConfigBean.java:72)
> at
> org.apache.shale.clay.component.Clay.getRootElement(Clay.java:244)
> at org.apache.shale.clay.component.Clay.encodeBegin(Clay.java:283)
> at
> org.apache.shale.clay.faces.ClayViewHandler.recursiveRender(ClayViewHandler.java:402)
> at
> org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:345)
> at
> org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:146)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> ...
>
>
> I'm using a nightly from 20060313 so forgive me if this is fixed in the
> latest code. If not, can I file a bug?
>
> Thanks,
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Alexandre Poitras
Québec, Canada
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org