I trying to use an objectdb database as a persitent queue but have started getting the following error on the receiver side:
2011-07-25 10:54:25,023 AdminServer-Callback-Instance-2/0 ERROR ServiceRunner - Error processing message. 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:595) Caused by: java.lang.RuntimeException: Error getting message from data at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.getData(Unknown Source) at rbccm.felix.objectdb.messaging.ObjectDbMessagePipe.getMessage(Unknown Source) ... 4 more Caused by: com.objectdb.o._PersistenceException: Failed to read the value of field field rbccm.felix.objectdb.messaging.ObjectDbMessage._payload using reflection at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.o.JPE.g(JPE.java:140) at com.objectdb.o.ERR.f(ERR.java:59) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1448) at com.objectdb.jpa.EMImpl.find(EMImpl.java:554) at com.objectdb.jpa.EMImpl.find(EMImpl.java:472) ... 6 more Caused by: com.objectdb.o.UserException: Failed to read the value of field field rbccm.felix.objectdb.messaging.ObjectDbMessage._payload using reflection at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.UMR.M(UMR.java:860) at com.objectdb.o.UMR.z(UMR.java:575) at com.objectdb.o.UML.v(UML.java:528) at com.objectdb.o.MMM.ag(MMM.java:1042) at com.objectdb.o.UTY.aH(UTY.java:1243) at com.objectdb.o.UTY.aG(UTY.java:1215) at com.objectdb.o.ENH.b(ENH.java:99) at com.objectdb.o.LDR.I(LDR.java:437) at com.objectdb.o.LDR.j(LDR.java:658) at com.objectdb.o.CST.aa(CST.java:471) at com.objectdb.o.CST.UP(CST.java:390) at com.objectdb.o.LDR.H(LDR.java:348) at com.objectdb.o.LDR.G(LDR.java:286) at com.objectdb.o.LDR.D(LDR.java:204) at com.objectdb.o.OBC.aK(OBC.java:1027) at com.objectdb.o.OBC.aI(OBC.java:927) at com.objectdb.jpa.EMImpl.find(EMImpl.java:549) ... 7 more Caused by: com.objectdb.o.InternalException at com.objectdb.o.TYM.al(TYM.java:696) at com.objectdb.o.TYR.aB(TYR.java:560) at com.objectdb.o.TYR.completeRead(TYR.java:286) at com.objectdb.o.TYR.readElement(TYR.java:263) at com.objectdb.o.UTY.readAndAdjust(UTY.java:1322) at com.objectdb.o.UMR$P.A(UMR.java:941) at com.objectdb.o.UMR.z(UMR.java:569) ... 22 more
The _payload member referenced in the exception is a simple String but is referenced as type Object.
I'll try to put together an repeatable example but this may be difficult as this has worked fine in our test cases so far.