Discussion:
[omniORB] "Caught an unexpected Python exception during up-call" on Fedora 10
Tim Allen
2009-02-20 14:34:46 UTC
Permalink
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20090220/b31e0783/signature.bin
Duncan Grisby
2009-02-20 17:16:51 UTC
Permalink
Some time ago, I inherited maintenance of a poorly-implemented CORBA
server that runs on omniORBpy 4.0.6. The current production environment
is CentOS 4 and the current developers' workstations are running Fedora
6. Since neither distribution packages omniORB, we've been using the
packages from http://opensource.nederland.net/ quite happily (although
I wish it didn't conflict with pyorbit required by GNOME, but I guess
that's an issue with the official CORBA spec).
[...]
omniORB: Caught an unexpected Python exception during up-call.
File "./server.py", line 10, in echoString
raise Example.MessageIsEmpty
Example.MessageIsEmpty: Example.MessageIsEmpty()
omniORB: throw UNKNOWN from pyServant.cc:566
(MAYBE,UNKNOWN_PythonException)
Does anyone have any ideas what the problem might be?
The problem is that Fedora 10 has Python 2.5. In Python 2.5, exceptions
were changed to be new-style classes. Older versions of omniORBpy
assumed they were old-style classes.

You'll have to update to omniORB 4.1.3 and omniORBpy 3.3 to be able to
work with Python 2.5.
A note on versions: Last time I tried getting our software working on a
new platform, I have a recollection that I tried 'the latest version'
and everything fell in a heap; at any rate, our internal wiki records
that our internal software requires version 4.0.6/2.6 exactly.
Well, I'm afraid you'll have to choose either to use Python 2.4 or
earlier, or to use omniORB 4.1.3 / omniORBpy 3.3.

Why do you need to use those specific ancient versions?

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Tim Allen
2009-03-02 13:34:30 UTC
Permalink
Post by Duncan Grisby
omniORB: Caught an unexpected Python exception during up-call.
File "./server.py", line 10, in echoString
raise Example.MessageIsEmpty
Example.MessageIsEmpty: Example.MessageIsEmpty()
omniORB: throw UNKNOWN from pyServant.cc:566
(MAYBE,UNKNOWN_PythonException)
Does anyone have any ideas what the problem might be?
The problem is that Fedora 10 has Python 2.5. In Python 2.5, exceptions
were changed to be new-style classes. Older versions of omniORBpy
assumed they were old-style classes.
Ah, that explains it, thank you!
Post by Duncan Grisby
You'll have to update to omniORB 4.1.3 and omniORBpy 3.3 to be able to
work with Python 2.5.
Hmm.. so far I've been building RPMs based on the
semi-official-looking .src.rpm files here:

http://opensource.nederland.net/omniORB/

...but they only go up to 4.1.0 and 3.0. Are there newer .src.rpm files
available somewhere?
Post by Duncan Grisby
Why do you need to use those specific ancient versions?
As I mentioned, this is a code-base I inherited, and I trusted the
documentation I had that specified those versions. I'll try to get
things up and running with the latest versions and report back if I
have any more compatibility questions.

Thank you again!

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20090302/cd939d16/signature.bin
Duncan Grisby
2009-03-13 16:16:56 UTC
Permalink
Post by Tim Allen
Post by Duncan Grisby
You'll have to update to omniORB 4.1.3 and omniORBpy 3.3 to be able to
work with Python 2.5.
Hmm.. so far I've been building RPMs based on the
http://opensource.nederland.net/omniORB/
...but they only go up to 4.1.0 and 3.0. Are there newer .src.rpm files
available somewhere?
I'm not aware of any more recent build RPMs, but the omniORB / omniORBpy
source distributions contains spec files you can use in the contrib/RPMs
directory. If you extract those, then the RPMs should build fine.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...