137 words

Issue #202 - java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV

BugVersion: 2.5.2Priority: HighStatus: FixedReplies: 2
#1
2013-08-13 16:26

The following query:

SELECT count(m) FROM Message m WHERE m.attachments.original=:template

is generating this exception:

[ObjectDB 2.5.1_05] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_32 (on Windows 7 6.1).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV
java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV
at com.objectdb.o.RSV.compareTo(RSV.java:158)
at com.objectdb.o.RFV.compareTo(RFV.java:138)
at com.objectdb.o.VAL.J(VAL.java:789)
at com.objectdb.o.EXR$e.c(EXR.java:190)
at com.objectdb.o.VAR.aA(VAR.java:864)
at com.objectdb.o.VAR.az(VAR.java:807)
at com.objectdb.o.XQI.Vt(XQI.java:69)
at com.objectdb.o.TQI.Vt(TQI.java:67)
at com.objectdb.o.MQI.Vt(MQI.java:143)
at com.objectdb.o.GQI.Uu(GQI.java:130)
at com.objectdb.o.PRG.ag(PRG.java:679)
at com.objectdb.o.PRG.af(PRG.java:553)
at com.objectdb.o.QRM.U6(QRM.java:265)
at com.objectdb.o.MST.U6(MST.java:933)
at com.objectdb.o.WRA.U6(WRA.java:293)
at com.objectdb.o.WSM.U6(WSM.java:113)
at com.objectdb.o.STC.r(STC.java:450)
at com.objectdb.o.SHN.aj(SHN.java:489)
at com.objectdb.o.SHN.K(SHN.java:156)
at com.objectdb.o.HND.run(HND.java:132)
at java.lang.Thread.run(Thread.java:662)

(The referenced template is id#156591; the expected result is 0)

Updated: I found that I get essentially the same error when the parameter type is a Drill instead of a Template.

Updated: Sample data file removed now that the issue is resolved.

FastModel
FastModel's picture
Joined on 2011-02-07
User Post #37
#2
2013-08-13 17:13

Just tried with version 2.5.2 and got no exception. Could you please try it?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,628
#3
2013-08-13 19:01

Thank you, yes this issue is now resolved in today's 2.5.2 build.

FastModel
FastModel's picture
Joined on 2011-02-07
User Post #38

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