473,943 Members | 5,301 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ORBit-Python problem :(

I wrote a small CORBA program and am using ORBit-python.
The IDL file was as below:
---------------------------
module MESSAGING
{
typedef sequence<string > msgLines;
struct msg
{
string fr;
string to;
msgLines body;
};
interface mail
{
void submit (in msg message);
};
};
---------------------------------

The server program is as below:
---------------------------------
#!/usr/bin/python
import CORBA
class mail:
msg = 0
def submit(self, msg):
print "Message Recieved from:", msg.fr
print "Message for:", msg.to
for line in msg.body:
print line
self.msgs = self.msgs + 1;
print "Message Served: ", self.msgs

CORBA.load_idl( "msg.idl")
CORBA.load_idl( "/usr/share/idl/name-service.idl")

orb = CORBA.ORB_init( (), CORBA.ORB_ID)
poa = orb.resolve_ini tial_references ("RootPOA")

servant = POA.MESSAGING.m ail(mail())
poa.activate_ob ject(servant)
ref = poa.servant_to_ reference(serva nt)
open("./msg-server.ior","w" ).write(orb.obj ect_to_string(r ef))
print "Wrote IOR to file", orb.object_to_s tring(ref)
poa.the_POAMana ger.activate()
orb.run()
---------------------------------

After running the program, it gives the following errors:
---------------------------------
Traceback (innermost last):
File "./msg-server.py", line 14, in ?
CORBA.load_idl( "msg.idl")
AttributeError: load_idl
---------------------------------

If I change the CORBA.load_idl to CORBA._load_idl then the error comes
at some other place... Namely below:

---------------------------------
Traceback (innermost last):
File "./msg-server.py", line 20, in ?
servant = POA.MESSAGING.m ail(mail())
NameError: POA
---------------------------------

The CORBA module is dynamically loaded from the following file:
/usr/lib/python1.5/site-packages/CORBAmodule.so

I have installed orbit-python-0.3.0-1 on my machine.

Please help me out.. I need help desperately to run the server :((
Thanx in advance :)
Jul 18 '05 #1
0 1189

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3791
by: Paul | last post by:
How would I convert the contents of a textbox into text files. Say I have a textbox containin the following... 13-02-00 - Paul Oakenfold 06-02-00 - William Orbit 30-01-00 - Laurent Garnier 23-01-00 - Guy Ornadel 16-01-00 - Dave Clarke
16
2299
by: WaterBug | last post by:
When clicking on the following link from an email i.e - http://myserver/myapplication/myprogram.asp?urlvar1=some%20stuff&urlvar2=more%20stuff I get a server 500 error. With that same browser window open, if I click the link from the email again I get the desired page. The results are the same if the url is copied and pasted into the brower but the 'go' must be pressed twice. It appears that the server is trying to resolve the url vars...
2
2888
by: Eurydice | last post by:
I would like to put a javascript code to obtain on my meteo page http://perso.wanadoo.fr/jmrw/Meteo/Meteo.shtml the time of the raise and the sunset of the sun according to the date. I have found nothing on the net up to now that satisfies me. Thanks if you can give me a link for this. --
19
1823
by: Stephan Aspridis | last post by:
Hi folks, a happy new year. I have a little problem with a program I am writing at the moment. A loop doesn't behave the way I'd like to (namely, the "break" is ignored). This is the code in question: ---------------------------------- star.planet.orbit_distance = pow(SOLDENSITY/EARTHDENSITY,1.0/3.0)*sqrt(star.mass)*get_random(50.0,150.0)/100.0;
12
1402
isotope11
by: isotope11 | last post by:
Would someone have code that emulates projectile motion. This is what I've got: Shape1 - the projectile The variables are: Velocity - the muzzle velocity Angle - the angle in which the projectile is fired
6
3245
by: Samuel | last post by:
Hi, I am trying to get the files from this tutorial to work: http://www.grisby.org/presentations/py10code.html Direct link to the files: http://www.grisby.org/presentations/py10code/adder.idl http://www.grisby.org/presentations/py10code/adderServer.py It produces the following error:
3
2736
by: roxrox_1959 | last post by:
I'm attempting to connect to a DB2 database using DBD::DB2 running on a Linux device. I'm getting the following error: ** connect: Unable to get database handle: DBI connect('p88flaq','ip88flaq',...) failed: SQL1042C An unexpected system error occurred. SQLSTATE=58004 at /usr/lib/perl5/site_perl/5.8.5/Oasis2/DBConn.pm line 2155 I've installed the DB2 client for the user in question:
2
1289
by: Kira Yamato | last post by:
I'm wondering if it is possible to define the following kind of scheme: Suppose X is a scheme and G is a subgroup of the endomorphism group of X. Define for each x in X the orbit of x under G := { gx : g in G }. Now define the set of orbits of X under G Y := { : x in X }. My question is this: Is there a natural way of giving Y a structure of scheme using the scheme structure of X?
10
3571
by: HardySpicer | last post by:
I have a cvs data file orbit.csv and found this code. function ReadFile() { var fso, f1, ts, s; var ForReading = 1; fso = new ActiveXObject("Scripting.FileSystemObject"); f = fso.OpenTextFile( Server.MapPath("orbit.csv"), ForReading); return(f.ReadAll()); }
0
10136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
11299
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10662
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9865
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6309
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.