Issue #2314: new database error

Type: Bug ReoprtVersion: 2.7.5Priority: NormalStatus: ClosedReplies: 1
#1
Exception in thread "main" [ObjectDB 2.7.3] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) Client VM 1.8.0_31 (on Windows 8.1 6.3).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: com.objectdb.o.UserException: Failed to deserialize (com.objectdb.o.HMP$f; local class incompatible: stream classdesc serialVersionUID = 2748808228337333820, local class serialVersionUID = -5045973305138848397)
com.objectdb.o.UserException: Failed to deserialize (com.objectdb.o.HMP$f; local class incompatible: stream classdesc serialVersionUID = 2748808228337333820, local class serialVersionUID = -5045973305138848397)
    at com.objectdb.o.MSG.a(MSG.java:77)
    at com.objectdb.o.BYR.i(BYR.java:811)
    at com.objectdb.o.BYR.i(BYR.java:750)
    at com.objectdb.o.CLS.u(CLS.java:384)
    at com.objectdb.o.CLS.y(CLS.java:352)
    at com.objectdb.o.CLS.z(CLS.java:283)
    at com.objectdb.o.CST.ZE(CST.java:637)
    at com.objectdb.o.QRR.k(QRR.java:249)
    at com.objectdb.o.QRR.i(QRR.java:155)
    at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:721)
    at org.radius.entities.fetch.FetchSkill.FetchWhere_Id(FetchSkill.java:50)
    at org.radius.entities.add.AddAgentSkill.<init>(AddAgentSkill.java:29)
    at org.radius.app.Main.main(Main.java:30)
Caused by: java.io.InvalidClassException: com.objectdb.o.HMP$f; local class incompatible: stream classdesc serialVersionUID = 2748808228337333820, local class serialVersionUID = -5045973305138848397
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:621)
    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.readArray(ObjectInputStream.java:1707)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1345)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
    at com.objectdb.o.BYR.i(BYR.java:785)
    ... 11 more

I have use same objectdb.jar in both server and client system.

#2

You wrote:

> I have use same objectdb.jar in both server and client system.

This looks indeed like mismatching ObjectDB JAR file versions in the client and the server. No other known reasons for this exception.

Please try clean install of your application and ObjectDB with no old JAR files. If this exception is still thrown it would help if you could provide a simple test case that demonstrates it.

ObjectDB Support

Reply