OpenMRS Version: 1.5.0 beta2 Build 8803
Related Tickets: #1588, #1604
I added the xstream-1.3.1.jar to my local openmrs-branches-1.5.x workspace, ran a clean build, and deployed the new WAR to Tomcat. I was able to save, retrieve, edit a few cohort definitions (serialization and deserialization was working fine). Then on restart of Tomcat, the exception above is thrown on any request that tries to deserialize the cohort definitions that were saved.
I assume this is due to the fact that the classpath has been refreshed and the class org.openmrs.User$$EnhancerByCGLIB$$fff1cb7d no longer exists. We need to make sure all proxy class references are converted back to openmrs classes during serialization.
Please let me know when that is done in the 1.5.x branch.