Home Help Center

unknown exception in 'Ice.ThreadPool.Server'


If I run my application I get the following error message on server-side:

server: error: unknown exception in 'Ice.ThreadPool.Server'

I've read in the documentation, that the default value for this property
is 10. I need only one Thread, so I set the Size- and MaxSize-Value to 1 in the server:

Ice::PropertiesPtr properties = Ice::getDefaultProperties();
properties->setProperty("Ice.ThreadPool.Server.Size", "1");
properties->setProperty("Ice.ThreadPool.Server.SizeMax", "1");
communicator = Ice::initializeWithProperties(argc, argv, properties);
status = run(argc, argv, communicator);

My application contains clients (but only one for this testcase) which connect to a database and operate on it.
I don't know where the problem lies. Can you give me a clue?

Thank you for your reply


  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    And unknown exception is a non-Ice exception.

    In your server code, can you add a catch(...) to see if any unexpected exceptions are raised?

    Do you get this exception only if you set the thread pool size to 1?
Sign In or Register to comment.