On Tuesday 16 December 2008 01:03, Daniel Cheng wrote:
> On Mon, Dec 15, 2008 at 9:45 PM, xor <xor at gmx.li> wrote:
> >
> > Hi,
> >
> > there is a severe Db4o problem in Freetalk:
> > Instances of class Message can only be created with a non-null member
> > variable mAuthor. Further, mAuthor is final. So when receiving messages,
the
>
> Did you try to make it non-final?
> Maybe it have problem writing to a final field on non-debugging environment?
It shouldn't ... but maybe if some wierd reflection settings are enabled?
>
> > mAuthor field is definitely non-null when the Message objects are stored
in
> > the database.
> >
> > HOWEVER, when retrieving the Message objects from the database, their
> > mAuthor field is null!
> > This also only happens on my normal node, if I run a node in the debugger,
> > it does not happen.
> >
> > The worst thing is: The problem is NOT that the Message objects are not
> > fully activated.
> > The plugin does a query at startup to find messages with mAuthor == null
by
> > doing:
> >
> > Query q = db.query();
> > q.constrain(Message.class);
> > q.descend("mAuthor").constrain(null).identity();
> > ObjectSet<Message> brokenMessages = q.execute();
> > for(Message m : brokenMessages) {
> > Logger.error(m, "Deleting message with mAuthor == null: " +
> > m.getURI());
> > db.delete(m);
> > }
> >
> > This query always deletes all messages. Therefore, the mAuthor member
> > variable is really null.
> > I do not have any clue why this happens.
> > The WoTIdentityManager definitely does db.store(), db.commit() on importet
> > identities.
> >
> > And the message fetcher even receives the authors by a DATABASE QUERY, so
> > the authors ARE in the database, but the member field of the Messages gets
> > set to null! Damn...
> >
> > Any ideas? This currently prevents Freetalk from being useable...
> >
> >
> > xor
> >
> > _______________________________________________
> > Devl mailing list
> > Devl at freenetproject.org
> > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> >
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081216/bac4a3fa/attachment.pgp>