Non-serializable attribute with name javax.zkoss.zk.ui.Session


The error:

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session

The solution:
**edit zk.xml, add

    <system-config>
	<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
    </system-config>

Leave a comment