[omniORB] omniORBpy: Need some help

Detlev Offenbach detlev@asterix.gallien.de
Sun, 3 Sep 2000 16:15:26 +0200


Hi out there,

I am fairly new to Corba and am playing around with omniORBpy. I code a l=
ittle
bank application. However I get the following stacktrace when executing t=
he
call to KontenServerImpl.getKonto.

Client Side stacktrace
----------------
Traceback (innermost last):
  File "Kundenterminal.py", line 48, in ?
    sys.exit(main(sys.argv))
  File "Kundenterminal.py", line 37, in main
    konto =3D heimatbank.getKonto(inhaber)
  File "bank_idl.py", line 102, in getKonto
    return _omnipy.invoke(self, "getKonto", _0_Bank.KontenServer._d_getKo=
nto, args)
omniORB.CORBA.BAD_PARAM: Minor: 0, Completed: COMPLETED_MAYBE.

The Implementation looks as follows:

import Bank, Bank__POA      # generated by 'omniidl'
import KontoImpl

import whrandom

class KontenServerImpl(Bank__POA.KontenServer):
    def __init__(self):
        self.konten =3D {}
        print 'Konten Server object created'

    def getKonto(self, inhaber):
        print 'Inhaber: ', inhaber
        if self.konten.has_key(inhaber):
            print 'Konto found'
            konto =3D self.konten[inhaber]
        else:
            print 'Creating new Konto'
            konto =3D KontoImpl.KontoImpl(whrandom.randint(1, 1000))
            self.konten[inhaber] =3D konto

        return konto

Thanks for the help
Detlev
--=20
Detlev Offenbach
detlev@offenbach.fs.uunet.de