java - SerialVersionUID with "private static final long" still gets InvalidClassException -
i have compiled , jarred various projects in java application, generating serialversionuids automatically through eclipse classes derived serializable.
i read answers question, , verified serialversionuids private static final long
.
nevertheless, error when try run:
java.io.invalidclassexception: com.acme.product.widget; local class incompatible: stream classdesc serialversionuid = 5226096973188250357, local class serialversionuid = -5432967318654384362
what missing?
you have classpath issue, program resolving older incompatible version of class has different value serialversionuid.
or serialized object being loaded, serialized oder version of class unavailable.
Comments
Post a Comment