Results 1 to 2 of 2

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

  1. #1
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115

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

    The exception thrown when getImplicitContext() is called without "Ice.ImplicitContext" set is somewhat confusing. With a blank ICE_CONFIG environment variable:

    Code:
    $ 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)
    {
    }

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the report. This appears to be a bug in the python plug-in. We'll address it in the next Ice release.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Exception in thread "Ice.ThreadPool.Server-0"
    By zhengxing in forum Help Center
    Replies: 1
    Last Post: 09-29-2010, 02:35 AM
  2. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  3. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  4. Replies: 4
    Last Post: 01-13-2006, 06:23 AM
  5. ICE-1.5.1 demoj ("hello") exception
    By wuzuoshun in forum Help Center
    Replies: 1
    Last Post: 11-14-2004, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •