[ZODB-Dev] Announcing ZCF 0.5 - The ZODB CORBA integration framework
Christian Reis
kiko@async.com.br
Tue, 2 Jul 2002 16:46:54 -0300
On Tue, Jul 02, 2002 at 02:14:03PM -0500, John D. Heintz wrote:
> > I was using omniORB3.0.4 and omniORBpy1.5, which don't match. 3.0.5 and
> > 1.5 work fine. However, now I'm getting this:
>
> Oops, I've done that.
Makes me feel like an idiot after posting stack traces and running things
through gdb with varied results. :) It was _sooo_ obvious.
> > omniORB.CORBA.UNKNOWN: Minor: 0, Completed:
> > COMPLETED_MAYBE.
>
> Doh. COMPLETED_MAYBE is never good...
Well, in this case an unmarshalled exception was raised in the server
side, so it's pretty reasonable. We get lots of those in ORBit-Python :)
> > omniORB: Caught an unexpected Python exception during up-call.
> > Traceback (most recent call last):
> > File "./Server.py", line 83, in nameStorageObject
> > sObj = self._servantHelper.lookupDomainObj(sObj)
> > AttributeError: SampleSession instance has no attribute
> > '_servantHelper'
>
> Hmm. It's been a while since I've been into the details, but that
> doesn't sound right ;)
Something wierd in the hierarchy is going on in 0.6, and I'm afraid I
understand very little of _why_ certain parts exist, so I can't really
dive in and fix it at the moment (i've got a certain serial printer that
is already providing me with enough indigestion atm).
The fact is that _servantHelper is only defined in Servant, not in
BaseServant, and SampleSession inherits from the latter. Don't know why
though. :-) You only use the helper in the remove() method of
RemoveableServant in 0.5, which is probably why it works. In 0.6 you use
it also in nameStorageObject which is why things break.
nameStorageObject, in fact, has been introduced in 0.6.
> > I've tried working a bit with the inheritance, but couldn't make it
> > work. I'm pulling ZCF-0.5 in the meantime to see how it goes.
>
> That one should work, but has even less documentation and sample code.
Yep, it works. I'll start reading into it.
> > Is there some extra documentation?
>
> There isn't much more documentation I'm afraid.
>
> This Thursday I'll dig back into the ZCF 0.6 release. If your available
> either Thursday or Friday I can work directly with you to figure out
> where those errors are coming from.
>
> Maybe we'll actually produce some docs to answer your questions as well.
I am available all Thursday if you want to work on this. I'm 100% of the
time on IRC: irc.openprojects.net #async so if you want to use that
you're more than welcome. /ctcp page kiko to beep me. Otherwise email
works.
I am wondering a bit about how well this will fit into our
recently-released indexing extension. Hmmm. Performance-wise too. :-)
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL