Gae 1.7.3 update & # 8594; java.io.InvalidClassException

I just upgraded the Java GAE SDK to 1.7.3 and am now getting exceptions when trying to read from my local data store:

INFO: Failed to load from the backing store, C:\Users\<user>\Documents\myproject\war\WEB-INF\appengine-generated\local_db.bin java.io.InvalidClassException: com.google.appengine.repackaged.com.google.io.protocol.ProtocolMessage; local class incompatible: stream classdesc serialVersionUID = 2691625986599730786, local class serialVersionUID = -3428150205257072157 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) 

Which prevents me from reading objects from my existing local data store. If I drop to 1.7.2, it works again, but I would like to run with the latest version.

Does anyone know how to solve this? Thanks.

+4
source share
2 answers

If you understand correctly, you created a local data warehouse using version 1.7.2 of the web application development server and try to use the same data (file) using version 1.7.3.

Newer versions of dev application server are responsible, but are not guaranteed to not read data stored in an earlier version.

I found that the data stored on the 1.7.2 dev application server cannot be used with 1.7.3, so this time we were out of luck.

In this case, you will have to create your data again using 1.7.3.

+2
source

I think it is possible to return data, but will require some work. If we run your project on two application servers on the local network: one with the SDK 1.7.2 and one with the new SDK, then use the remote api to access the old data and copy it to the new data store, you can recreate all the records.

Again, this might work, so just try it.

0
source

All Articles