[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1073) NPE in RedirectServlet

Petr Ferschmann (JIRA) jira-events at lists.jboss.org
Mon Mar 19 11:39:33 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1073?page=comments#action_12356563 ] 
Petr Ferschmann commented on JBSEAM-1073:

Well, I have to explain NPE. In some cases it throws also NPE. But in this case it is StringIndexOutOfBoundsException :-)


> NPE in RedirectServlet
> ----------------------
>                 Key: JBSEAM-1073
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1073
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0.GA
>         Environment: I am using my own URLRewriter.
>            Reporter: Petr Ferschmann
> In case of error in my application, user is redirect to debug.xhtml. I get NPE:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -7
>         at java.lang.String.substring(String.java:1938)
>         at org.jboss.seam.web.RedirectFilter.getViewId(RedirectFilter.java:94)
>         at org.jboss.seam.web.RedirectFilter.getViewId(RedirectFilter.java:85)
>         at org.jboss.seam.web.RedirectFilter$1.sendRedirect(RedirectFilter.java:59)
> local variables:
> url=/pes/templateImage/edit-361893//debug.xhtml?cid=73
> pathInfo=/templateImage/edit-361893/
> servletPath=/fw/templateImage/edit-361893/
> contextPath=/pes
> I am using my own URL Rewriter. I have servlet mapped to url /fw/ and it is rewritten from /pes/templateImage/. I am using Seam as wrapper around my own servlet.
> It casts NPE when I redirect to different URL in this servlet.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list