Today I received the exception below on running the following code:
IExecutionGraph loadedgraph = em.find(ExecutionGraph.class, id); if(loadedgraph == null) { em.persist(instance); em.flush(); loadedgraph = instance; }
[ObjectDB 2.3.3_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_26 (on Windows 2003 5.2). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com.objectdb.o.InternalException at com.objectdb.o.InternalException.f(InternalException.java:236) at com.objectdb.o.IPW.ar(IPW.java:119) at com.objectdb.o.PGW.am(PGW.java:201) at com.objectdb.o.UPT.F(UPT.java:254) at com.objectdb.o.UPT.m(UPT.java:171) at com.objectdb.o.TSK.k(TSK.java:184) at com.objectdb.o.TSK.i(TSK.java:157) at com.objectdb.o.TSK.f(TSK.java:95) at com.objectdb.o.UPT.r(UPT.java:157) at com.objectdb.o.PGT.q(PGT.java:109) at com.objectdb.o.UPT.B(UPT.java:121) at com.objectdb.o.URT.l(URT.java:171) at com.objectdb.o.TSK.i(TSK.java:146) at com.objectdb.o.TSK.f(TSK.java:95) at com.objectdb.o.TSM.e(TSM.java:87) at com.objectdb.o.UTT.z(UTT.java:365) at com.objectdb.o.UTT.l(UTT.java:203) at com.objectdb.o.TSK.i(TSK.java:146) at com.objectdb.o.TSK.f(TSK.java:95) at com.objectdb.o.MST.U9(MST.java:1233) at com.objectdb.o.WRA.U9(WRA.java:355) at com.objectdb.o.WSM.U9(WSM.java:146) at com.objectdb.o.OBM.bL(OBM.java:945) at com.objectdb.o.OBM.bI(OBM.java:818) at com.objectdb.o.OBM.flush(OBM.java:739) at rbccm.felix.objectdb.workflow.ObjectDbGraphContainer.putIfAbsent(Unknown Source) at rbccm.digest2.execution.Workflow2Runner.processSpawn(Unknown Source) at rbccm.digest2.execution.ExecutionGraph.splitWorkflow(Unknown Source) at rbccm.digest2.execution.ExecutionGraph.spawnWorkflows(Unknown Source) at rbccm.digest2.execution.ExecutionGraph.run(Unknown Source) at rbccm.digest2.execution.Workflow2Runner.processGraph(Unknown Source) at rbccm.digest2.execution.Workflow2Runner.processWorkflows(Unknown Source) at rbccm.digest2.execution.Workflow2Runner.processWorkflow(Unknown Source) at rbccm.digest2.execution.Workflow2Runner.workflowCompleteForSomeTasks(Unknown Source) at rbccm.felix.gridservice.workflow.WorkflowService.process(Unknown Source) at rbccm.felix.gridservice.workflow.WorkflowService.process(Unknown Source) at rbccm.felix.gridservice.workflow.WorkflowService.process(Unknown Source) at rbccm.felix.framework.service.ServiceRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:662)
Running the database (attached) through objectdb doctor showed broken references. I'm not sure of the exact sequence that has caused the problem as until now this part of the process has been running fine but I'll post a test after further investigation. If there is any info from the exception which could help with this it'd be appreciated.