We are using ObjectDB 2.5.1_04. The following JPQL query causes an internal exception:
SELECT COUNT(r) FROM RecordingMetaData AS r WHERE ((r.mapFromCli LIKE '192.168.10.13%' ESCAPE '\'))
The exception:
Caused by: java.lang.IllegalStateException: com.objectdb.o.InternalException: Unexpected internal exception at com.arunta.base.db.RecordingMetaDataDAO.getSingleResult(RecordingMetaDataDAO.java:958) at com.arunta.app.services.RecordingService.getSingleResult(RecordingService.java:384) ... 15 more Caused by: com.objectdb.o.InternalException: Unexpected internal exception at com.objectdb.o.JPE.h(JPE.java:165) at com.objectdb.o.ERR.f(ERR.java:70) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1484) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:723) at com.arunta.base.db.RecordingMetaDataDAO.getSingleResult(RecordingMetaDataDAO.java:938) ... 16 more Caused by: java.lang.ClassCastException: com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV at com.objectdb.o.SLS.Uv(SLS.java:148) at com.objectdb.o.SBI.u(SBI.java:109) at com.objectdb.o.OBI.w(OBI.java:479) at com.objectdb.o.OBI.<init>(OBI.java:188) at com.objectdb.o.SBI.<init>(SBI.java:50) at com.objectdb.o.MST.aY(MST.java:778) at com.objectdb.o.BQI.Uu(BQI.java:128) at com.objectdb.o.GQI.Uu(GQI.java:120) 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.QRR.g(QRR.java:244) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:716) ... 17 more
The relevant code from RecordingMetaData:
@Entity(name="RecordingMetaData") @SequenceGenerator( name="RecordingMetaData_sequence", sequenceName="RecordingMetaData_sequence", allocationSize=1 ) public class RecordingMetaData { private Long id; private Long version; : private String mapFromCli; : public void setMapToCli(String mapToCli) { this.mapToCli = mapToCli; } @Basic public String getMapFromCli() { return mapFromCli; }
Any suggestions on how to avoid the exception?
Thank you
Emil