Ok, I'll add some more context here. The event handling code I'm talking about is actually invoked in a component's /dispatchComponentEvent/ function. It is added as 'before' advice on this function through a Tapestry Class Transformation.
Basically, the event handling code verifies a boolean and then either - lets the dispatchComponentEvent call proceed as normal (through /invocation.proceed()/), - or handles the dispatchComponentEvent call itself (if !request.isXHR()): it sets a java.net.URL object u as the ComponentEvent's result (through /storeResult(u)/) and it overrides the event's result (through /overrideResult(true)/). This code typically works, but there are cases in which I get the aforementioned exception: "A component event handler method returned the value http://www.url.here/aFolder. Return type java.net.URL can not be handled"'. I added some additional logging which gives the following result when the exception occurs: 1. Event causing the user to be redirected: ComponentEvent[activate from (self)] on XPage Storing the redirectTarget (http://www.url.here/aFolder) as the triggered event's result. 2. Event causing the user to be redirected: ComponentEvent[exception from (self)] on XPage Storing the redirectTarget (http://www.url.here/aFolder) as the triggered event's result. 3. A component event handler method returned the value http://www.url.here/aFolder. Return type java.net.URL can not be handled. The logging shows that it's always the 'exception' event handling that causes the URL failure. What causes the 'exception' event in the first place is unclear to me... Hopefully this description can give more insight in the problem? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5717120.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org