Archived

This forum has been archived. Please start a new discussion on GitHub.

run demo\ice\hello, error!!

D:\Ice-2.1.1\demo\Ice\hello>server
error: exception in IceSSL plug-in:
.\ConfigParser.cpp:101: IceSSL::ConfigParseException:
while parsing sslconfig.xml:
unknown exception occured during parsing
.\PluginManagerI.cpp:195: Ice::PluginInitializationException:
plug-in initialization failed: failure in entry point `IceSSL:create'

D:\Ice-2.1.1\demo\Ice\hello>client
error: exception in IceSSL plug-in:
.\ConfigParser.cpp:101: IceSSL::ConfigParseException:
while parsing sslconfig.xml:
unknown exception occured during parsing
.\PluginManagerI.cpp:195: Ice::PluginInitializationException:
plug-in initialization failed: failure in entry point `IceSSL:create'

what's wrong?

os: win2003 sp1
ide: Visual Studio.Net 2003 7.1.3097

Comments

  • benoit
    benoit Rennes, France
    I'm afraid I don't know why you're getting this error :(. Did you build Ice yourself or did you install it from the Windows installer? Does the D:\Ice-2.1.1\certs directory exists? How did you build the demos, with the debug or release configuration? Do other demos which are using the SSL plugin have the same problem (demo/Ice/callback for example)?

    Thanks,

    Benoit.
  • first,I installed Ice from the Windows installer-Ice-2.1.1-VC71.msi.
    And I builded \demo\ice\hello successfully,but errors are getted when I running it.
    d:\ice-2.1.1\certs directory exists, including d:\ice-2.1.1\certs\sslconfig.xml、d:\ice-2.1.1\certs\client_sslconfig.xml,d:\ice-2.1.1\certs\server_sslconfig.xml and so on.

    Last, I reinstalled Ice from the Ice source and builded it myself.
    Of course, I had also installed Ice-2.1.1-ThirdParty and setted the PATH(envionment variable) for it. The building process of the source was successful.

    I builded the demos with debug and release configuration.

    The other demos including demo/ice/callback have the same problems.

    I had checked c:\windows\system32 directory, and didn't discover the older openssl's two dlls.

    what and how can I do?

    please give me some advice,thanks very much.
  • bernard
    bernard Jupiter, FL
    Since you have your own Ice build, could you modify Ice\src\IceSSL\ConfigParser.cpp at line 99 to get a better error?

    The current message is not very useful.

    I'd start with a:
    catch(const std::exception& e)
    {
    cerr << e.what() << endl;
    throw;
    }

    Cheers,
    Bernard
  • I add the codes which you give to ConfigParse.cpp.
    I rebuild icessl library and demo with debug/release.

    Error as follows:

    D:\Ice-2.1.1\demo\Ice\hello>server
    error: exception in IceSSL plug-in:
    .\ConfigParser.cpp:106: IceSSL::ConfigParseException:
    while parsing sslconfig.xml:
    unknown exception occured during parsing
    .\PluginManagerI.cpp:195: Ice::PluginInitializationException:
    plug-in initialization failed: failure in entry point `IceSSL:create'

    D:\Ice-2.1.1\demo\Ice\hello>client
    error: exception in IceSSL plug-in:
    .\ConfigParser.cpp:106: IceSSL::ConfigParseException:
    while parsing sslconfig.xml:
    unknown exception occured during parsing
    .\PluginManagerI.cpp:195: Ice::PluginInitializationException:
    plug-in initialization failed: failure in entry point `IceSSL:create'

    It seems not able to capture the exceptions of std::exception type.
  • matthew
    matthew NL, Canada
    It might be an access violation. Try running the client in the debugger. Make sure you tell the debugger to stop on access violations. By default it does not. The access violation is converted to a structured exception.

    Regards, Matthew
  • It is a access violation indeed!

    IceXML::Parser::parse(istream& in, Handler& handler)
    {
    XML_Parser parser = XML_ParserCreate(NULL);
    ...................................................................
    }

    The program crashs in above line and emits a exception.

    The function XML_ParserCreate lies in file expat.h.

    Thanks for your help!

    The answer is found out!

    There are two expat.dlls which the versions are different in my system PATH.
    The Demo hello mistakes the two expat.dlls.
    This is my fault!
  • matthew
    matthew NL, Canada
    Glad you found out the problem! Welcome to DLL hell.

    Regards, Matthew