Results 1 to 4 of 4

Thread: how to trace the problem about in or out parameter?

  1. #1
    huaciom is offline Registered User
    Join Date
    Jul 2004
    Location
    China
    Posts
    5

    Arrow how to trace the problem about in or out parameter?

    I defined one ice file as below:
    module Sample
    {
    interface test
    {
    void doRequest(string request,out string response, out ByteSeq responseIMG);
    }
    }

    and I create one server like this:

    class CTestImplublic ::Sample::test
    {
    void doRequest(string request,out string response, out ByteSeq responseIMG)
    { cout << request << endl;
    //other server implement omitted
    }
    }

    then in the main function, I create one servant and atached to the adapter and activated,it's all right;

    but in the client ,I created one proxy of the servant and invoke the method
    ,the server has no any affect.

    My question is whether the in or out parameter have any effect,I know if there is only one in parameter the application run fine;

    I run both server and client in the same host,and Ice2.1

    Help me!

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    The parameters shouldn't matter, if you invoke this method on the proxy in the client, you should see the tracing if the invocation succeeds (i.e.: no exceptions).

    It's difficult to say what could be wrong without more information. You could try to enable Ice tracing to see if the client is invoking the method and if the server correctly receives it. You can do this by setting the property Ice.Trace.Protocol to 1.

    Benoit.

  3. #3
    huaciom is offline Registered User
    Join Date
    Jul 2004
    Location
    China
    Posts
    5

    It's a strange problem!

    I want to ask you one question that if there is Exception when I run the Server which throw an exception which is caused by other DLLs and omit it and the server is run fine,then I invoke one method of ICE,would the execption has any affect?

    I write a very simple implement of Server just to print out the IN parameter which is string type,the server is run fine ,and the invoke is no problem.

    In my Client,I trace that the invoke catch such an exception as below:
    ::Ice::NonRepeatable ,when will the Ice throw such exception


    below is the result of Trace in the client:
    Attached Images Attached Images
    Last edited by huaciom; 05-17-2005 at 11:19 PM.

  4. #4
    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
    Sorry, I'm don't understand your question.

    "unknown c++ exception" means exactly that... your server side threw an exception that was unknown to the Ice runtime. Quite often under Windows this type of exception is actually an access violation. An access violation is actually a structured exception which is caught by a "catch(...)". One way to fine out what is actually causing the access violation is to run the server in the debugger. Then in Debug/Exceptions change the default behavior of "access violation" from "stop if not handled" to "stop always".

    Regards, Matthew

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. slice2py out parameter problem
    By socketref in forum Help Center
    Replies: 1
    Last Post: 06-16-2010, 01:15 PM
  2. How to redirect trace message to file?
    By Jiangyubao in forum Help Center
    Replies: 1
    Last Post: 05-19-2009, 12:40 AM
  3. How to trace into the servr code
    By weixiande in forum Bug Reports
    Replies: 6
    Last Post: 12-08-2004, 10:02 PM
  4. vector as out parameter
    By Dmitriy in forum Help Center
    Replies: 10
    Last Post: 06-29-2004, 03:39 AM
  5. about out parameter
    By simpley in forum Help Center
    Replies: 3
    Last Post: 03-18-2004, 03:45 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
  •