initCause in errorFilter causes IllegalStateException
-----------------------------------------------------

                 Key: TAPESTRY-2353
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2353
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.11
         Environment: Tomcat 5.5.25 
            Reporter: Josh Canfield


Having <t:unless> with no test parameter throws a TapestryException. 
I've also seen this when trying to @Inject a service which hasn't been 
configured.

When the errorFilter gets the exception it finds that there is no cause set, 
and tries to init one. This throws the following exception: 

java.lang.IllegalStateException: Can't overwrite cause
        java.lang.Throwable.initCause(Throwable.java:320)
        
org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:535)
        $RequestHandler_11943ca9edc.service($RequestHandler_11943ca9edc.java)
        
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
        $RequestHandler_11943ca9edc.service($RequestHandler_11943ca9edc.java)
        
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
        
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
        
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
        
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
        $RequestHandler_11943ca9edc.service($RequestHandler_11943ca9edc.java)
        $RequestHandler_11943ca9ed2.service($RequestHandler_11943ca9ed2.java)
        
org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:924)
        
org.apache.tapestry.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:43)
        
$HttpServletRequestHandler_11943ca9ed3.service($HttpServletRequestHandler_11943ca9ed3.java)
        
org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
        
$HttpServletRequestFilter_11943ca9ed1.service($HttpServletRequestFilter_11943ca9ed1.java)
        
$HttpServletRequestHandler_11943ca9ed3.service($HttpServletRequestHandler_11943ca9ed3.java)
        
$HttpServletRequestHandler_11943ca9ecf.service($HttpServletRequestHandler_11943ca9ecf.java)
        org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to