wangscript / warp-persist

Automatically exported from code.google.com/p/warp-persist
0 stars 0 forks source link

DB4O and HostKind.LOCAL do not work #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Dave LeBlanc:
Hi all, this is a weird error - when setting up guice to use DB4O in
LOCAL mode (to have warp-persist create it's own db4o server and have
the @Transactionals connect as clients to it) as follows, I get a long
and confusing error message.

Set up in code as:

       bindConstant().annotatedWith(Names.named(Db4Objects.PORT)).to
("1234");
       bindConstant().annotatedWith(Names.named(Db4Objects.HOST)).to
("localhost");
       bindConstant().annotatedWith(Names.named(Db4Objects.USER)).to
("db4ouser");
       bindConstant().annotatedWith(Names.named
(Db4Objects.PASSWORD)).to("secret");
       bindConstant().annotatedWith(Db4Objects.class).to
("bigGame.db");

This is with version warp-persist-2.0-20090214 (my prior bug message
was using this same version too).

This gives this error message when I attempt to do a query:

Original issue reported on code.google.com by robbie.v...@gmail.com on 22 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
SEVERE: Job (Do random things Job.do random things detail for agent: 0
threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See
nested exception: com.db4o.ext.Db4oException: JDKField
java.lang.Object:_referent]
       at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run
(SimpleThreadPool.java:525)
Caused by: com.db4o.ext.Db4oException: JDKField
java.lang.Object:_referent
       at com.db4o.reflect.jdk.JdkField.handleException(JdkField.java:83)
       at com.db4o.reflect.jdk.JdkField.get(JdkField.java:56)
       at com.db4o.internal.reflect.StrictFieldAccessor.get
(StrictFieldAccessor.java:13)
       at com.db4o.internal.FieldMetadata.getOrCreate(FieldMetadata.java:
583)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:147)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.checkStillToSet
(ObjectContainerBase.java:1603)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1587)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.handlers.array.ArrayHandler.writeElements
(ArrayHandler.java:430)
       at com.db4o.internal.handlers.array.ArrayHandler.write
(ArrayHandler.java:415)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)

Original comment by robbie.v...@gmail.com on 22 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
     at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.UntypedFieldHandler.writeObject
(UntypedFieldHandler.java:190)
       at com.db4o.internal.UntypedFieldHandler.write
(UntypedFieldHandler.java:184)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:781)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:261)
       at com.db4o.internal.marshall.MarshallingContext.writeObject
(MarshallingContext.java:270)
       at com.db4o.internal.FieldMetadata.marshall(FieldMetadata.java:778)
       at com.db4o.internal.handlers.FirstClassObjectHandler$4.processAspect
(FirstClassObjectHandler.java:158)
       at
com.db4o.internal.handlers.FirstClassObjectHandler.traverseAllAspects
(FirstClassObjectHandler.java:231)
       at com.db4o.internal.handlers.FirstClassObjectHandler.marshallAspects
(FirstClassObjectHandler.java:161)
       at com.db4o.internal.handlers.FirstClassObjectHandler.write
(FirstClassObjectHandler.java:125)
       at com.db4o.internal.ClassMetadata.write(ClassMetadata.java:1885)
       at com.db4o.internal.ObjectReference.continueSet(ObjectReference.java:
140)
       at com.db4o.internal.ObjectContainerBase.stillToSet
(ObjectContainerBase.java:1828)
       at com.db4o.internal.ObjectContainerBase.store3
(ObjectContainerBase.java:1661)
       at com.db4o.internal.ObjectContainerBase.store2
(ObjectContainerBase.java:1585)
       at com.db4o.internal.ObjectContainerBase.storeAfterReplication
(ObjectContainerBase.java:1567)
       at com.db4o.internal.ObjectContainerBase.storeInternal
(ObjectContainerBase.java:1547)
       at com.db4o.internal.TransportObjectContainer.storeInternal
(TransportObjectContainer.java:170)
       at com.db4o.internal.ObjectContainerBase.store
(ObjectContainerBase.java:1530)
       at com.db4o.internal.ExternalObjectContainer.store
(ExternalObjectContainer.java:161)
       at com.db4o.internal.ExternalObjectContainer.store
(ExternalObjectContainer.java:148)
       at com.db4o.internal.Serializer.marshall(Serializer.java:28)
       at
com.db4o.internal.query.processor.QConEvaluation.marshallUsingDb4oFormat
(QConEvaluation.java:54)
       at com.db4o.internal.query.processor.QConEvaluation.marshall
(QConEvaluation.java:43)
       at com.db4o.internal.query.processor.QCon.marshall(QCon.java:542)
       at com.db4o.internal.query.processor.QConObject.marshall
(QConObject.java:263)
       at com.db4o.internal.query.processor.QConClass.marshall
(QConClass.java:104)
       at com.db4o.internal.query.processor.QQueryBase.marshall
(QQueryBase.java:662)
       at com.db4o.internal.cs.ClientObjectContainer.executeQuery
(ClientObjectContainer.java:829)
       at com.db4o.internal.query.processor.QQueryBase.getQueryResult
(QQueryBase.java:333)
       at com.db4o.internal.query.processor.QQueryBase.execute
(QQueryBase.java:317)
       at com.db4o.internal.query.NativeQueryHandler.execute
(NativeQueryHandler.java:44)
       at com.db4o.internal.ObjectContainerBase.query
(ObjectContainerBase.java:1343)
       at com.db4o.internal.ExternalObjectContainer.query
(ExternalObjectContainer.java:127)
       at com.db4o.internal.ExternalObjectContainer.query
(ExternalObjectContainer.java:123)
       at repository.AgentDb4oRepositoryImpl.getAgent
(AgentDb4oRepositoryImpl.java:29)
       at RandomAction.updateAgent(RandomAction.java:31)
       at RandomAction$$EnhancerByGuice$$8b4c86da.CGLIB$updateAgent$1
(<generated>)
       at RandomAction$$EnhancerByGuice$$8b4c86da$$FastClassByGuice$
$2856fc3d.invoke(<generated>)
       at com.google.inject.cglib.proxy.MethodProxy.invokeSuper
(MethodProxy.java:187)
       at com.google.inject.InterceptorStackCallback
$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:66)
       at com.wideplay.warp.persist.db4o.Db4oLocalTxnInterceptor.invoke
(Db4oLocalTxnInterceptor.java:58)
       at com.google.inject.InterceptorStackCallback
$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:66)
       at com.google.inject.InterceptorStackCallback.intercept
(InterceptorStackCallback.java:45)
       at RandomAction$$EnhancerByGuice$$8b4c86da.updateAgent(<generated>)
       at RandomAction.execute(RandomAction.java:24)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
       ... 1 more
Caused by: java.lang.IllegalArgumentException: Can not set
java.lang.Object field
com.db4o.internal.ActiveObjectReference._referent to
com.wideplay.warp.persist.db4o.HostKind
       at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:146)
       at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException
(UnsafeFieldAccessorImpl.java:150)
       at sun.reflect.UnsafeFieldAccessorImpl.ensureObj
(UnsafeFieldAccessorImpl.java:37)
       at sun.reflect.UnsafeObjectFieldAccessorImpl.get
(UnsafeObjectFieldAccessorImpl.java:18)
       at java.lang.reflect.Field.get(Field.java:358)
       at com.db4o.reflect.jdk.JdkField.get(JdkField.java:53)
       ... 322 more

Original comment by robbie.v...@gmail.com on 22 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
r306 has a unit test for this issue, but I'm not able to reproduce it.
Not using the 20090214 distribution, and not with the current trunk. Could you 
check
the unit test and maybe submit one that does fail with your setup?

One thing I noticed was that you're not binding a Configuration object, which is
required in local mode. This should give you a different error though.

Another thing you can look at is quartz, it seems like you're using quartz 
somehow,
which could mean you're running background tasks. Mixing background threads 
with Warp
Persist is risky, becuase it uses ThreadLocal storage.

Original comment by robbie.v...@gmail.com on 22 Feb 2009 at 7:13

GoogleCodeExporter commented 9 years ago
Shouldn't cause any issues if using WorkManager (which was specifically 
designed for
this purpose).

Original comment by dha...@gmail.com on 23 Feb 2009 at 1:48

GoogleCodeExporter commented 9 years ago
I'll code up a unit test and see if I can recreate this issue.

I'll ask separately about transactions and quartz on the mailing list.

Original comment by david.le...@gmail.com on 23 Feb 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Quick note: 

Using warp persist 1.0.1 and DB4O 6.4, it doesn't display this error.  This 
shows up
with warp-persist-2.0-20090214 and DB4O 7.8 and Mid-Feb SVN version. I'll take 
a look
at isolating out those newer versions to see if I can narrow down when it 
appeared
(which is a little more difficult since newer DB4O's require a newer 
warp-persist).

Original comment by david.le...@gmail.com on 23 Feb 2009 at 8:32

GoogleCodeExporter commented 9 years ago
We use DB4O 6.4.14.8131 for testing.

Original comment by robbie.v...@gmail.com on 23 Feb 2009 at 8:51

GoogleCodeExporter commented 9 years ago
David, is there anything you found out and can share with us? This is one of the
issues holding back the 2.0 release so I would like to resolve it as soon as we 
can.

Original comment by robbie.v...@gmail.com on 15 Mar 2009 at 6:28

GoogleCodeExporter commented 9 years ago
Still seeing it with SVN rev 307 and db40 7.8.80.12541, using 6.4.14.8131 has 
fixed the issue. I've also found 
that recent 7.x's contain serious memory leaks in the native query side, so I 
don't think I'd use that anyway.

This problem isn't as bad as it was because I can now wire in a Configuration 
where I couldn't before.

Thanks,

 -Dave

Original comment by david.le...@gmail.com on 17 Mar 2009 at 1:50