ObjectDB ObjectDB

Issue #2061: java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU

Type: Bug ReoprtVersion: 2.7.1Priority: NormalStatus: ClosedReplies: 2
#1

Error in production urgent

[2017-05-19 09:34:09 #14 server]

java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU
at com.objectdb.o.PPW.an(PPW.java:74)
at com.objectdb.o.PGW.aj(PGW.java:220)
at com.objectdb.o.UPT.C(UPT.java:134)
at com.objectdb.o.URT.l(URT.java:171)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.TSM.e(TSM.java:86)
at com.objectdb.o.UTT.A(UTT.java:375)
at com.objectdb.o.UTT.l(UTT.java:223)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.TSM.e(TSM.java:86)
at com.objectdb.o.MST.Vf(MST.java:1406)
at com.objectdb.o.WRA.Vf(WRA.java:396)
at com.objectdb.o.WSM.Vf(WSM.java:184)
at com.objectdb.o.STC.w(STC.java:532)
at com.objectdb.o.SHN.an(SHN.java:562)
at com.objectdb.o.SHN.K(SHN.java:169)
at com.objectdb.o.HND.run(HND.java:133)
at java.lang.Thread.run(Unknown Source)

 

application log

2017-05-19 13:48:11,854 ERROR cl.intelidata.PcsIndexarCsv.main(92): Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU
[ObjectDB 2.7.1] javax.persistence.RollbackException
Failed to commit transaction: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU (error 613)
at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290)
at cl.intelidata.PcsIndexarCsv.procesar(PcsIndexarCsv.java:225)
at cl.intelidata.PcsIndexarCsv.main(PcsIndexarCsv.java:79)
Caused by: java.lang.ClassCastException: com.objectdb.o.SCU cannot be cast to com.objectdb.o.PRU
at com.objectdb.o.PPW.an(PPW.java:74)
at com.objectdb.o.PGW.aj(PGW.java:220)
at com.objectdb.o.UPT.C(UPT.java:134)
at com.objectdb.o.URT.l(URT.java:171)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.TSM.e(TSM.java:86)
at com.objectdb.o.UTT.A(UTT.java:375)
at com.objectdb.o.UTT.l(UTT.java:223)
at com.objectdb.o.TSK.i(TSK.java:145)
at com.objectdb.o.TSK.f(TSK.java:95)
at com.objectdb.o.TSM.e(TSM.java:86)
at com.objectdb.o.MST.Vf(MST.java:1406)
at com.objectdb.o.WRA.Vf(WRA.java:396)
at com.objectdb.o.WSM.Vf(WSM.java:184)
at com.objectdb.o.STC.w(STC.java:532)
at com.objectdb.o.SHN.an(SHN.java:562)
at com.objectdb.o.SHN.K(SHN.java:169)
at com.objectdb.o.HND.run(HND.java:133)
at java.lang.Thread.run(Unknown Source)

edit
delete
#2

There is a corruption into index when I tried to obtain an object that non exist into database. This was soluted with "doctor"

edit
delete
#3

Thank you for this report and for the update.

You closed the issue, as the the database was fixed with the Doctor, but if you have more information about the cause of the index corruption we will be happy to explore this issue further, especially if it happens again. Of course, if you find a way to reproduce index corruption it may be of a great help.

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.