167 words

Issue #310 - Null pointer exception being thrown from within ObjectDB.

BugVersion: 1.04Priority: NormalStatus: ActiveReplies: 1
2017-10-03 09:36


[ObjectDB 2.7.1] Unexpected exception (Error 990)

  Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_92 (on Windows 10 10.0).
Please report this error on http://www.objectdb.com/database/issue/new
com.objectdb.o.InternalException: java.lang.NullPointerException: null
at com.objectdb.o.VAR.S(VAR.java:297)
at com.objectdb.o.VAR.R(VAR.java:259)
at com.objectdb.o.VAR.aq(VAR.java:637)
at com.objectdb.o.QNF.C(QNF.java:1102)
at com.objectdb.o.QNF.C(QNF.java:996)
at com.objectdb.o.QNF.z(QNF.java:788)
at com.objectdb.o.QNF.k(QNF.java:257)
at com.objectdb.o.QNF.j(QNF.java:134)
at com.objectdb.o.QRC.I(QRC.java:582)
at com.objectdb.o.QRC.z(QRC.java:239)
at com.objectdb.o.QRC.y(QRC.java:188)
at com.objectdb.o.QRM.U9(QRM.java:272)
at com.objectdb.o.MST.U9(MST.java:988)
at com.objectdb.o.WRA.U9(WRA.java:311)
at com.objectdb.o.WSM.U9(WSM.java:115)
at com.objectdb.o.QRR.g(QRR.java:247)
at com.objectdb.o.QRR.f(QRR.java:153)
at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719)
at za.co.synthesis.regulatory.report.persist.highavailability.ObjectDBTablePersist.readFromSyncpoint(ObjectDBTablePersist.java:95)
at za.co.synthesis.regulatory.report.persist.highavailability.HATable.synchronise(HATable.java:63)
at za.co.synthesis.regulatory.report.persist.highavailability.service.HASync.runHASynchronise(HASync.java:266)
at za.co.synthesis.regulatory.report.support.HousekeepingProcess.runDataSync(HousekeepingProcess.java:67)
at za.co.synthesis.regulatory.report.support.HousekeepingProcess.run(HousekeepingProcess.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)



CriteriaBuilder cb = entityManager.getCriteriaBuilder();
    CriteriaQuery<ReportDownloadObject> q = cb.createQuery(ReportDownloadObject.class);
    Root<ReportDownloadObject> r = q.from(ReportDownloadObject.class);
                cb.equal(r.get("reportSpace"), reportSpace),
                cb.gt(r.get("objectDbId"), DataLogic.parseLongDef(fromSyncPoint, 0L))
    TypedQuery<ReportDownloadObject> query = entityManager.createQuery(q);
    List<ReportDownloadObject> reportDownloadObjects = null;
    try {
<span style="background-color:#00ff00;">/*  *****POINT OF FAILURE***** */</span>
      reportDownloadObjects = <span style="color:#fff0f5;"><span style="background-color:#ff0000;">query.setMaxResults(maxRecords).getResultList();</span></span>


Screenshots attached for database explorer.  Please note that the "ReportObject" object doesn't seem to write to the database and when trying to view the ReportObject list, the explorer "hangs".

za.eckhardt's picture
Joined on 2017-10-02
User Post #1
2017-10-03 12:46

More information is needed regarding ReportDownloadObject and related types.

If possible, please provide a simple test case (preferred format is specified here) or a sample database with a query that can demonstrate the exception (e.g. by running the query in the Explorer).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #2,827

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.
Maximum file size: 32 MB