java.lang.ClassCastException when try to generate pdf document

Hi, I try trial licence of Aspose Word for java before buying it.


I have a problem, when I try generate pdf from word template, I have this error.

java.lang.ClassCastException: fr.leorlod.module.domain.QuoteLine$$M$_jr_35EF18695AE83B23_1 cannot be cast to fr.leorlod.module.domain.QuoteLine
at asposewobfuscated._df66081689824518990f69557d7a43fd.getValue(Unknown Source)
at asposewobfuscated.zzMD.getValue(Unknown Source)
at asposewobfuscated.zzZ.zzZ(Unknown Source)
at asposewobfuscated.zzMG.evaluate(Unknown Source)
at asposewobfuscated.zzC5.zzZ(Unknown Source)
at asposewobfuscated.zzFV.zzY(Unknown Source)
at asposewobfuscated.zzVU.zzZ(Unknown Source)
at asposewobfuscated.zzZD.zzZ(Unknown Source)
at asposewobfuscated.zzFV.zzY(Unknown Source)

This error appear one time in two. QuoteLine it’s the object than I try to bind.
It’s a JVM probleme ?

Best regards

Hi there,


Thanks for your inquiry. We will appreciate it if you please share your input document and sample code here. We will look into it and will guide you accordingly.

Best Regards,

Hi, As you have said before, I provide .odt template (attached object) and java class.


I use spring and java 1.8. When I use JRebel, I don’t have class cast exception !

Stack Error :
java.lang.ClassCastException: fr.locasoft.moduledevis.domain.Quote cannot be cast to fr.locasoft.moduledevis.domain.Quote
at asposewobfuscated._f32f47a37fa74ceabd17fce3449e4932.getValue(Unknown Source)
at asposewobfuscated.zzMD.getValue(Unknown Source)
at asposewobfuscated.zzZ.zzZ(Unknown Source)
at asposewobfuscated.zzMG.evaluate(Unknown Source)

Best regards

Hi there,


Thanks for sharing the additional information. But I am afraid we can not test your code due to missing references. We will appreciate it if you please create and share a standalone simple Java Application (source code without compilation errors) that helps us reproduce your problem on our end.

We are sorry for the inconvenience.

Best Regards,