[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1204) java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Petr Ferschmann (JIRA) jira-events at lists.jboss.org
Tue May 8 13:53:52 EDT 2007


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

I am using ExceptionFilter and ContextFilter for my own servlet. When my servlet throws an exception and the ExceptionFilter redirects to Debug page. So you are right this is not valid JSF view id.



> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> ------------------------------------------------------------------------
>
>                 Key: JBSEAM-1204
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1204
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.2.1.GA
>         Environment: I am using Seam for other serlvets too (SeamFilter).
>            Reporter: Petr Ferschmann
>            Priority: Optional
>
> Problem is that MockViewHandler expects that there is always . in URL (but in my case it is not).
> String index out of range: -1
> RequestURI=/pes/userAccount/create/
> Caused by:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1762)
>         at java.lang.String.substring(String.java:1735)
>         at org.jboss.seam.mock.MockViewHandler.getActionURL(MockViewHandler.java:41)
>         at org.jboss.seam.core.Manager.redirect(Manager.java:1054)
>         at org.jboss.seam.core.Redirect.execute(Redirect.java:137)
>         at org.jboss.seam.exceptions.DebugPageHandler.handle(DebugPageHandler.java:29)
>         at org.jboss.seam.core.Exceptions.handle(Exceptions.java:79)
>         at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:91)
>         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:73)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
>         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
>         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
>         at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>         at cz.softeu.rewriter.RewriterFilter.doFilter(RewriterFilter.java:173)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
>         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
>         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
>         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
>         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:285)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

-- 
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