Results 1 to 8 of 8

Thread: run demo\ice\hello, error!!

  1. #1
    wwj
    wwj is offline Registered User
    Name: wang weijun
    Organization: xjtu
    Project: wireless communication
    Join Date
    Jun 2005
    Location
    Beijing
    Posts
    4

    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
    Last edited by wwj; 06-14-2005 at 06:59 AM.

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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.

  3. #3
    wwj
    wwj is offline Registered User
    Name: wang weijun
    Organization: xjtu
    Project: wireless communication
    Join Date
    Jun 2005
    Location
    Beijing
    Posts
    4
    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.

  4. #4
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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

  5. #5
    wwj
    wwj is offline Registered User
    Name: wang weijun
    Organization: xjtu
    Project: wireless communication
    Join Date
    Jun 2005
    Location
    Beijing
    Posts
    4
    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.
    Last edited by wwj; 06-15-2005 at 12:14 AM.

  6. #6
    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
    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

  7. #7
    wwj
    wwj is offline Registered User
    Name: wang weijun
    Organization: xjtu
    Project: wireless communication
    Join Date
    Jun 2005
    Location
    Beijing
    Posts
    4
    It is a access violation indeed!

    IceXML::Parser:arse(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!

  8. #8
    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
    Glad you found out the problem! Welcome to DLL hell.

    Regards, Matthew

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 12-31-2009, 03:26 AM
  2. make test error! demo error!
    By zeronumber in forum Help Center
    Replies: 1
    Last Post: 12-16-2009, 04:36 AM
  3. linker error while compiling a demo ICE program
    By srujankumar in forum Help Center
    Replies: 4
    Last Post: 11-21-2008, 04:48 PM
  4. about ICE-E's demo compiler error
    By leo in forum Help Center
    Replies: 4
    Last Post: 08-06-2008, 04:40 AM
  5. Run demo program error
    By hero107 in forum Help Center
    Replies: 1
    Last Post: 02-28-2006, 01:59 AM

Posting Permissions

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