185 words

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

BugVersion: 2.7.1Priority: NormalStatus: ClosedReplies: 2
#1
2017-05-19 17:35

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)

JAM http://www.intelidata.cl/
jastorga
jastorga's picture
Joined on 2013-07-04
User Post #8
#2
2017-05-19 18:12

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

JAM http://www.intelidata.cl/
jastorga
jastorga's picture
Joined on 2013-07-04
User Post #9
#3
2017-05-20 21:21

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
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,756

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel