# Error: Unable to deserialize Report

**URL:** <https://talk.openmrs.org/t/error-unable-to-deserialize-report/33145>\
**Category:** Add-on Modules\
**Tags:** reporting\
**Created:** [April 15, 2021, 2:30pm UTC](https://talk.openmrs.org/t/error-unable-to-deserialize-report/33145 "2021-04-15T14:30:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mksd](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mksd/32/11729_2.png) [@mksd](https://talk.openmrs.org/u/mksd)\
**Post date:** [April 15, 2021, 8:04pm UTC](https://talk.openmrs.org/t/error-unable-to-deserialize-report/33145/2 "2021-04-15T20:04:29Z")

</div>

Thanks @icrc.thonorio for sharing your findings.

The reports that disappear seem to share a common trait: their serialized report definitions’ `<creator/>` contains an Hibernate proxy class name. This is very similar to what what was happening back in 2015 and described on that [other thread](https://talk.openmrs.org/t/error-unable-to-deserialize-object/3462/5).

- Back then it was because of Javaassist names, eg. `"org.openmrs.User_$$_jvst6de_41"`.
- Now it’s because of Hibernate proxy names, eg. `"org.openmrs.User$HibernateProxy$ODcBnusu"`.

@icrc.thonorio looks like we need to expand on @mogoodrich’s fix of back in the days, see SXS-24 [here](https://issues.openmrs.org/browse/SXS-24?focusedCommentId=222814&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-222814) ; or that we figure out what process writes those names and then do something like what was done here by @icrc.psousa on Data Filter: [Rely on Hibernate getClass method on entities to avoid getting proxy … · openmrs/openmrs-module-datafilter@027d476 · GitHub](https://github.com/openmrs/openmrs-module-datafilter/commit/027d476d2faaf8bf4084d6a2fa3dcf68f0e9d4b5#diff-ab458f627c1c667425c263759a16055c8a578c45cd5ea37e4aa7293edf691153L62-R63)

The latter may be difficult as this may be happening in XStream itself. XStream was upgraded often recently actually, you can `git blame` this line to see that: [openmrs-core/pom.xml at e9703b6094a0ffc244b66ce62319af7b2550eb09 · openmrs/openmrs-core · GitHub](https://github.com/openmrs/openmrs-core/blob/e9703b6094a0ffc244b66ce62319af7b2550eb09/pom.xml#L359)

---

_[View the full topic](https://talk.openmrs.org/t/error-unable-to-deserialize-report/33145)._
