ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

Zk Spring not working on Tomcat 7.0.22

ninekays
19 Jan 2012 01:31:01 GMT
19 Jan 2012 01:31:01 GMT

Hi,

This is a continuation from this thread .

I found that source code is not working on Tomcat 7.0.22. I then tried to deploy it on Tomcat 7.0.5, and Tomcat 6.0.26, and on both of these version, the Zk Spring is working normally.

Specifically, when using Tomcat 7.0.22, injecting Zk Components by using @Autowired as described here is not working. If I watched the log closely, in [7.0.5] and [6.0.26], something similar to the following is printed out:

 Cglib2AopProxy$ProxyCallbackFilter.accept - Unable to apply any optimisations to advised method: protected java.lang.String org.zkoss.zul.Datebox.coerceToString(java.lang.Object)

In Tomcat [7.0.22], those are not printed out.

Anyone else notice this? Is this a bug on Zk Spring, or more to the cglib library?

ashishd
1 Feb 2012 03:18:54 GMT
1 Feb 2012 03:18:54 GMT

does it happen only for Datebox autowiring or any other component as well? Looks more likely CGLIB issue to me.

ninekays
6 Feb 2012 07:47:59 GMT
6 Feb 2012 07:47:59 GMT

It happens to the following components that I tried; Textbox, datebox, combobox, Button. I have not tried other components, yet.

It does looks like CGLIB issue, but it would be good if we could get a confirmation from Zk team. :)