Tapestry
  1. Tapestry
  2. TAPESTRY-2284

Exceptions may be incorrectly reported due to exception invoking initCause() when an exception already has a cause

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.12
    • Fix Version/s: 5.0.12
    • Component/s: Core Components
    • Labels:
      None

      Description

      If a required component parameter is missing you get the following exception instead of the error report:

      HTTP ERROR: 500

      Can't overwrite cause

      RequestURI=/app/start
      Caused by:

      java.lang.IllegalStateException: Can't overwrite cause
      at java.lang.Throwable.initCause(Throwable.java:320)
      at org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:535)
      at $RequestHandler_118c6880d0d.service($RequestHandler_118c6880d0d.java)
      at org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
      at $RequestHandler_118c6880d0d.service($RequestHandler_118c6880d0d.java)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
      at org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
      at $RequestHandler_118c6880d0d.service($RequestHandler_118c6880d0d.java)
      at $RequestHandler_118c6880d04.service($RequestHandler_118c6880d04.java)
      at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:924)
      at org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
      at $HttpServletRequestFilter_118c6880d03.service($HttpServletRequestFilter_118c6880d03.java)
      at $HttpServletRequestHandler_118c6880d05.service($HttpServletRequestHandler_118c6880d05.java)
      at $HttpServletRequestHandler_118c6880d02.service($HttpServletRequestHandler_118c6880d02.java)
      at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      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:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

        Activity

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Igor Drobiazko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development