Home Bug Reports

"error return without exception set" when Ice.ImplicitContext not set in IcePy

joshmoorejoshmoore GermanyMember Josh MooreOrganization: Glencoe Software, Inc.Project: OME, http://openmicroscopy.org
The exception thrown when getImplicitContext() is called without "Ice.ImplicitContext" set is somewhat confusing. With a blank ICE_CONFIG environment variable:
$ python
Python 2.4.5 (#1, Jul  4 2008, 21:52:53) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Ice, IcePy
>>> IcePy.stringVersion()
'3.3.0'
>>> ic = Ice.initialize()
>>> ic.getImplicitContext()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Ice.py", line 330, in getImplicitContext
    return ImplicitContextI(self._impl.getImplicitContext())
SystemError: error return without exception set
>>>
>>> Ice.InitializationData()
<Ice.InitializationData object at 0x5a670>
>>> id = Ice.InitializationData()
>>> id.properties = Ice.createProperties()
>>> id.properties.setProperty("Ice.ImplicitContext","Shared")
>>> ic = Ice.initialize(id)
>>> ic.getImplicitContext()
object #0 (::Ice::ImplicitContext)
{
}

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Thanks for the report. This appears to be a bug in the python plug-in. We'll address it in the next Ice release.
Sign In or Register to comment.