Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Difference class definition in space

I have Gigaspaces 9.5 and class with serialVersionUID and with embedded classes and web application(just a war file). My web application has embedded spaces, which deployed in partitioned schema with 2 instances without backup. When I changed my class(just delete 2 fields and change serialVersionUID) - and after deploy war file - I saw next exception, when deploy my web application:

WARNING [com.gigaspaces.core.engine] - Recovery operation failed. Reason: com.gigaspaces.lrmi.nio.UnMarshallingException: Failed to unmarsh :[ReplyPacket: ].; Caused by: com.gigaspaces.lrmi.nio.UnMarshallingException: Failed to unmarsh :[ReplyPacket: ]

Caused by: com.gigaspaces.metadata.SpaceMetadataException: Error deserializing space type info for type [com.model.Class1] - the property [property1] does not exist in the class loaded in the server.

, where "property1" - this is property which I remove.

When I revert changes I saw next exception(bit not when I deploy my web application, only when I read my entity from gigaspaces):

SEVERE [com.gigaspaces.space.typemanager] - The operation's type description is incompatible with the type description stored in the space.

I was restrting Gigaspaces many time, but nothing. I thing, maybe Gigaspaces cached my classes? Because in other machines I didn't see this.

asked 2013-12-05 09:47:15 -0500

ssherbakov gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Are you sure you updated all jars having the space classes?

Somewhere you still have old versions of the space classes.

GigaSpaces does cache your space classes , but once you fully restart it , it reload the space classes once the first client accessing the space.

answered 2013-12-06 13:24:35 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-12-05 09:47:15 -0500

Seen: 635 times

Last updated: Dec 06 '13