Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the serialVersionUID #912

Closed
missedone opened this issue Dec 15, 2015 · 1 comment
Closed

set the serialVersionUID #912

missedone opened this issue Dec 15, 2015 · 1 comment

Comments

@missedone
Copy link
Contributor

we need set the serialVersionUID to avoid object serialization issue:

java.io.InvalidClassException: org.testng.remote.strprotocol.GenericMessage; local class incompatible: stream classdesc serialVersionUID = -3655718067
544856041, local class serialVersionUID = 1440074281953763545
[BaseMessageSender] Sending ACK 0
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:616)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1623)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
    at org.testng.remote.strprotocol.SerializedMessageSender.receiveMessage(SerializedMessageSender.java:39)
    at org.testng.remote.strprotocol.MessageHub.receiveMessage(MessageHub.java:52)
    at org.testng.remote.strprotocol.AbstractRemoteTestRunnerClient$ServerConnection.run(AbstractRemoteTestRunnerClient.java:179)

the serialVersionUID should be extracted from the original value so that we can make it's consistent

missedone added a commit to missedone/testng that referenced this issue Dec 15, 2015
cbeust added a commit that referenced this issue Dec 15, 2015
issue #912: set the serialVersionUID
@juherr
Copy link
Member

juherr commented Dec 15, 2015

Closed by #913

@juherr juherr closed this as completed Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants