Xstream serialization of a ReportData instance

Probably. So those funny named classes are not Hibernate proxies but Javaassist related objects… Anyway then I tried this both for marshalling and unmarshalling:

xstream.registerConverter(new CustomJavassistEnhancedConverter(new JavassistMapper(xstream.getMapper()), xstream.getConverterLookup()));

To no avail.

I could see that the <creator/> and <changedBy/> tags were still holding those funny org.openmrs.User_$$_jvst.. package names after marshalling (so I had not much hope regarding the way back anyway). Just to be sure, is this how I am supposed to use the custom Converter?

I am also on OpenMRS 1.10.+ so I guess it all makes sense… that it doesn’t work :grimacing:

On the other thread, when @mogoodrich says

Well, it is basically what I do when I register my alias before unmarshalling. See my initial message.