Mantis - Hessian
Viewing Issue Advanced Details
3713 minor always 10-16-09 01:22 10-16-09 01:22
Marian Kolesar  
 
normal  
new 4.0.1  
open  
none    
none  
0003713: serialization/deserialization of java.math.BigDecimal
java.math.BigDecimal is serialized by com.caucho.hessian.io.JavaSerializer and deserialized by com.caucho.hessian.io.JavaDeserializer. Deserialization leads to:
"com.caucho.hessian.io.HessianProtocolException: 'java.math.BigDecimal' could not be instantiated".
In version 3.1.6 was used StringValueSerializer/StringValueDeserializer for serialization/deserialization of BigDecimal.
I have tested workaround that uses StringValueSerializer/StringValueDeserializer for BigDecimalin with version 4.0.1 and it worked fine, so I propose to use these for serialization.

There are no notes attached to this issue.