C
Cory Musselman
I am trying to use XMLEncoder to encode a bean class that uses
BigDecimal, since BigDecimal doesn't have a default constructor I get
the errors below when I call:
Are they ways to work around this problem?
XMLEncoder e = new XMLEncoder(new BufferedOutputStream(new
FileOutputStream("Test2.xml)));
e.writeObject(o); //
e.close();
java.lang.InstantiationException: java.math.BigDecimal
Continuing ...
java.lang.RuntimeException: failed to evaluate:
<unbound>=BigDecimal.new();
Continuing ...
java.lang.reflect.InvocationTargetException
Continuing ...
BigDecimal, since BigDecimal doesn't have a default constructor I get
the errors below when I call:
Are they ways to work around this problem?
XMLEncoder e = new XMLEncoder(new BufferedOutputStream(new
FileOutputStream("Test2.xml)));
e.writeObject(o); //
e.close();
java.lang.InstantiationException: java.math.BigDecimal
Continuing ...
java.lang.RuntimeException: failed to evaluate:
<unbound>=BigDecimal.new();
Continuing ...
java.lang.reflect.InvocationTargetException
Continuing ...