I have a compiled stylesheet (.sxx) that was compiled in an earlier version of
Saxon. I think, 9.0. Can I run this compiled version on 9.1.x.x?
I ask because I am getting this error:
java.io.InvalidClassException: net.sf.saxon.expr.Optimizer; local class incompatible: stream classdesc serialVersionUID = -4843906557053710688, local class serialVersionUID = 402074181221448295
Saxon compiled stylesheets can only be run under exactly the same version that
they were compiled under. This even extends to maintenance releases. Sorry
about the inconvenience. (I could solve half the problem by allocating stable
versionIds to the classes. But that would still leave the other half of the
problem, which is that the compiled format is strongly dependent on the
implementation classes, and there are often good reasons for changing these
from one release to the next, for example to implement optimizations.)
No worries, I just need to plug-in the order version of Saxon and run it that
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.