I'm getting a null pointer when running the following code:
TypedQuery<ObjectDbMessagePayload> query = em.createQuery("SELECT m FROM ObjectDbMessagePayload m WHERE m.id = :id", ObjectDbMessagePayload.class); query.setParameter("id", msg.getId()); List<ObjectDbMessagePayload> loaded = query.getResultList();
Stack trace follows:
rbccm.felix.framework.ApplicationException: Error taking message from ObjectDB queue at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.take(Unknown Source) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.take(Unknown Source) at rbccm.felix.framework.service.ServiceRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) Caused by: com.objectdb.o.InternalException: Unexpected internal exception at com.objectdb.o.JPE.h(JPE.java:163) at com.objectdb.o.ERR.f(ERR.java:69) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1493) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:695) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.getMessage(Unknown Source) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.takeWithRetry(Unknown Source) ... 4 more Caused by: java.lang.NullPointerException at com.objectdb.o.OBI.t(OBI.java:377) at com.objectdb.o.OBI.r(OBI.java:264) at com.objectdb.o.OBI.Vj(OBI.java:232) at com.objectdb.o.BQI.Vs(BQI.java:144) at com.objectdb.o.PRG.ag(PRG.java:734) at com.objectdb.o.PRG.ae(PRG.java:663) at com.objectdb.o.PRG.ad(PRG.java:539) at com.objectdb.o.QRM.U5(QRM.java:259) at com.objectdb.o.MST.U5(MST.java:947) at com.objectdb.o.WRA.U5(WRA.java:290) at com.objectdb.o.WSM.U5(WSM.java:113) at com.objectdb.o.QRR.g(QRR.java:232) at com.objectdb.o.QRR.b(QRR.java:151) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686) ... 6 more
The code usually works fine so I guess there is a problem with the object/database. ObjectDbDoctor reports errors so I've uploaded the database to the ftp site (uatsrtlonw342-WorkflowService-Existing_Instance-2.rar)