-
FEATURED COMPONENTS
First time here? Check out the FAQ!
When throwing a WrongValueException from a controller handling the event on clicking a button where user input is validated I notice...
SERIOUS: Failed to invoke class org.zkoss.spring.security.ui.ZkExceptionTranslationListener
...in my stdout log.. This occurs with ZK 5.0.6 and 5.0.7 freshly.
I also notice that the error-boxes appear the first time a WrongValueException is thrown, but after reloading the page they don't appear next to my input-field any more (upon throwing WrongValueException).. I suspect this has to do with something going wrong down the chain handling security.. Something which is stateful because I need to restart the entire server to be able to see the errobox pop-up again the first time I click my button..the next time the issue is back again..
Any ideas? Not being able to validate and prompt user with errorboxes upon invalid input after having had a page-reload is quite a serious issue I'd say.
Thankful for all input as I'm stranded on this issue right now.
It seems the exception "Failed to invoke.." is thrown from in org.zkoss.zk.ui.util.Configuration
http://grepcode.com/file/repo1.maven.org/maven2/org.zkoss.zk/zk/5.0.0.RC/org/zkoss/zk/ui/util/Configuration.java
..and more precisely..
try { final EventThreadCleanup cleanup = (EventThreadCleanup)klass.newInstance(); cleanup.cleanup(comp, evt, errs); cleanups.add(cleanup); } catch (Throwable t) { if (errs != null) errs.add(t); if (!silent) log.error("Failed to invoke "+klass, t); }
Something must go wrong when executing "cleanup.cleanup(comp, evt, errs);" for a thread where a WrongValueException earlier has been thrown. Any ideas?
Strange, but why you post the ...zk/5.0.0.RC/o... version. It's an dependency problem ? Which zkspring version you use?
(Ok sorry yes the link above to grepcode was to an earlier version. The code snipped in question is however to be found in the same class in the latest release of zk which I utilize in my project.)
I utilize zk 5.0.6 with zkspring 3, that is the latest versions. I also tried zk 5.0.7 freshly without overcoming the experienced issue.
I might add that Firefox shows the errorbox one first time upon throwing WrongValueException (after reloading the same page it is however never shown again for the exception in question). In Internet Explorer it never seems to show up, even after a fresh restart of Tomcat.
I tried downloading and readding all jar files for spring, hibernate, zk, zk-spring-core, zk-spring (with dependencies) but no. The issue remains.
And a thrown WrongValueException still results in SEVERE: Failed to invoke class org.zkoss.spring.security.ui.ZkExceptionTranslationListener as well as no error pop-up box in GUI (except for the first time after a server restart when loading page in Firefox, any reloading of page or attempt to trigger event where exception is thrown from client in Internet explorer will fail).
Help!
Ok so now I've posted the issue to ZK Spring issue tracker with ID: 3240863 as well as uploaded an example project available for download to reproduce the issue.
https://sourceforge.net/tracker/?func=detail&aid=3240863&group_id=152762&atid=785191
To download example project for easy reproduction of the issue (open index.zul after having loaded the entire dynamic web app in Tomcat)
http://tinyurl.com/67zvrjg
Note: the download is an archive-RAR file of approx 59 MiB (the larger size is due to all jars included). Simply extract the folder in your Eclipse workspace, then import it as a project (dynamic web proj) and have it added to a Tomcat 7 server.
Let me know if you're looking at the issue or have any input / updates..
Best regards,
Juwian
Hi juwian,
ZK Spring project is on google code so please post future bugs/features requests regarding ZK Spring on its google code tracker here
I have already moved your reported issue from SF to GC tracker and here is the link to it that you can follow to track its progress.
Your example code is highly appreciated.
Asked: 2011-03-23 06:01:30 +0800
Seen: 1,051 times
Last updated: Mar 29 '11