XStream 1.4.8 with OpenJDK 11.0.2+ causing no no-args constructor found error

85 views
Skip to first unread message

Tenzin Dhundup

unread,
Oct 7, 2019, 5:08:46 PM10/7/19
to XStream User
During de-serialization I get ObjectAccessException due to no no-args constructor being defined for many of my classes. 
I can go in one by one and make them implement Serializable or add in a no-args constructor but there's far too many classes with this error for this to be feasible.

I've also tried manually passing in a provider so it won't go through the PureJava...Provider which was causing the problem. 

Any suggestions?

Jörg Schaible

unread,
Oct 7, 2019, 6:51:06 PM10/7/19
to xstrea...@googlegroups.com

 

Use a current XStream version.

--
You received this message because you are subscribed to the Google Groups "XStream User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xstream-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xstream-user/65edf98d-6fec-40c6-b5e1-f33abc57b46c%40googlegroups.com.



Tenzin Dhundup

unread,
Oct 8, 2019, 10:26:40 AM10/8/19
to XStream User
Resolved! I initially tried this and thought it didn't work but turns out it was still using an older version.
Thanks!


On Monday, October 7, 2019 at 6:51:06 PM UTC-4, joehni wrote:

 

Use a current XStream version.

 

 

Am Montag, 7. Oktober 2019, 23:08:46 CEST schrieb Tenzin Dhundup:

During de-serialization I get ObjectAccessException due to no no-args constructor being defined for many of my classes. 

I can go in one by one and make them implement Serializable or add in a no-args constructor but there's far too many classes with this error for this to be feasible.


I've also tried manually passing in a provider so it won't go through the PureJava...Provider which was causing the problem. 


Any suggestions?


--
You received this message because you are subscribed to the Google Groups "XStream User" group.

To unsubscribe from this group and stop receiving emails from it, send an email to xstream-user+unsubscribe@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages