I want to write a CORBA test client in Jython and I select JacORB as ORB implementation. However I have a try for around 1 day and ORB.init can't be successfully in Jython and error log is:
======================================================================
ERROR: testEPAgentIsAlive (com.ericsson.xn.nbi.test.epagent_test.Test)
Traceback (most recent call last): File "/Users/AnkyHe/proj/workspace/EPAgentTest/src/com/ericsson/xn/nbi/test/epagent_test.py", line 18, in testEPAgentIsAlive orb = ORBFactory.initORB() INITIALIZE: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation org.jacorb.orb.ORB vmcid: 0x0 minor code: 0 completed: No
Ran 2 tests in 0.016s
The source code is as follows: from com.ericsson.xn.nbi.corbautil import ORBFactory from com.ericsson.xn.nbi.idl import EPAgentHelper from org.omg.CORBA import ORB from org.omg.CosNaming import NamingContextExtHelper import unittest
class Test(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testEPAgentIsAlive(self):
orb = ORBFactory.initORB()
nc = NamingContextExtHelper.narrow(orb.resolve_initial_references('NameService'))
server = EPAgentHelper.narrow(nc.resolve(nc.to_name('epagent')))
self.assertNotEquals(None, server)
def testGetReference(self):
pass
#self.assertEquals('ftagent_ref', self.server.get_irp_reference('ftagent'))
if name == "main": unittest.main()