rterp / SumZeroTrading

A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
http://rterp.github.io/SumZeroTrading/
Other
145 stars 47 forks source link

TradeOrder class does not always serialize/deserialize properly #30

Closed rterp closed 7 years ago

rterp commented 7 years ago

It appears that the serialVersionUID variable is not getting properly set for the TradeOrder class or one of the classes that it relies upon.

Ensure all classes include: private static final long serialVersionUID = 1L;

com.sumzerotrading.data.SumZeroException: java.io.InvalidClassException: com.sumzerotrading.broker.order.TradeOrder; local class incompatible: stream classdesc serialVersionUID = -6534894073938597060, local class serialVersionUID = 2709729678604759892

rterp commented 7 years ago

TradeOrder class was missing 'static' as a field modified. Fixed.