Spring Roo
  1. Spring Roo
  2. ROO-865

Expense demo does not work on Chrome (Circular view path)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M2
    • Component/s: GWT
    • Labels:
      None

      Description

      I executed the expense.roo script and started the application on Jetty. Result:

      javax.servlet.ServletException: Circular view path [index]: would dispatch back to the current handler URL [/extrack/app/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
      at org.springframework.web.servlet.view.InternalResourceView.prepareForRendering(InternalResourceView.java:275)
      at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:214)
      at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
      at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
      at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
      at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
      at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
      at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

        Activity

        Hide
        Vladimir Balko added a comment -

        Amit Manjhi: I have tried it in prod mode as you described it and everything was working OK So now I can confirm that problem with Chrome exists only in development mode...

        Show
        Vladimir Balko added a comment - Amit Manjhi: I have tried it in prod mode as you described it and everything was working OK So now I can confirm that problem with Chrome exists only in development mode...
        Hide
        cometta added a comment -

        yup, having same problem

        Show
        cometta added a comment - yup, having same problem
        Hide
        Chris Ramsdale added a comment -

        The fix isn't needed in Roo code, but rather an upstream project that is linked below. Changing status to "won't fix" (e.g. won't fix in Roo code).

        http://code.google.com/p/google-web-toolkit/issues/detail?id=5050

        Show
        Chris Ramsdale added a comment - The fix isn't needed in Roo code, but rather an upstream project that is linked below. Changing status to "won't fix" (e.g. won't fix in Roo code). http://code.google.com/p/google-web-toolkit/issues/detail?id=5050
        Hide
        Amit Manjhi added a comment -

        Just wanted to note from my initial investigation that this bug seems "mostly harmless." There is error spew (due to some URL mapping problem) which still needs to be fixed but it should not prevent any functionality. Do others observe the same behavior?

        Show
        Amit Manjhi added a comment - Just wanted to note from my initial investigation that this bug seems "mostly harmless." There is error spew (due to some URL mapping problem) which still needs to be fixed but it should not prevent any functionality. Do others observe the same behavior?
        Hide
        Jim Smart added a comment -

        (FWIW, the error that Vladimir Balko and Michael Kunze are describing isn't connected with the issue reported by the original poster)

        The 'circular view path' error is caused by erroneous error-page mappings in the generated web.xml - the two declarations point to missing files (/app/uncaughtException and /app/resourceNotFound)

        The workaround I am using is to simply comment out both of the error-page declarations in the web.xml - a better solution would be for the generated app to include default uncaughtException and resourceNotFound pages.

        Show
        Jim Smart added a comment - (FWIW, the error that Vladimir Balko and Michael Kunze are describing isn't connected with the issue reported by the original poster) The 'circular view path' error is caused by erroneous error-page mappings in the generated web.xml - the two declarations point to missing files (/app/uncaughtException and /app/resourceNotFound) The workaround I am using is to simply comment out both of the error-page declarations in the web.xml - a better solution would be for the generated app to include default uncaughtException and resourceNotFound pages.

          People

          • Assignee:
            Amit Manjhi
            Reporter:
            Eberhard Wolff
          • Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: