xiaochong / zkui

Grails ZK UI Plugin
http://grails.org/plugin/zkui
GNU Lesser General Public License v3.0
24 stars 8 forks source link

BindComposer not serializable #98

Closed simonfoilen closed 11 years ago

simonfoilen commented 11 years ago

Hi,

At my work, we needed to use ZKUI on a vfabric-tc cluster and we ran into this error while browsing our site:

24-Oct-2012 14:13:01.066 SEVERE [tomcat-http--22] org.zkoss.io.Serializables.smartWrite:63 Unable to serialize entry: $composer=org.grails.plugins.zkui.composer.BindComposer@1b2f3380
24-Oct-2012 14:13:01.067 SEVERE [tomcat-http--22] org.apache.catalina.ha.session.DeltaManager.requestCompleted Unable to serialize delta request for sessionid [18F5E36C878540EF1FFAB1CA53CE10A5.tc-runtime-1]
 java.io.NotSerializableException: org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)

The fix in org.grails.plugins.zkui.composer.BindComposer is to change private ApplicationContext applicationContext; for: transient private ApplicationContext applicationContext;

since this object is not serializable (and it wouldn't make sence to serialize it).

We are not using Git so I could not produce a Pull Request, but since it is a one line issue, I think it will be easy for you to quickly update it.

Thanks

xiaochong commented 11 years ago

Good,Thanks your request.

xiaochong commented 11 years ago

release v0.5.5