[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jacorb-bugs
Subject:    [jacorb-bugs] [Bug 134] New: could not marshall wchar with DSI implementation
From:       bugzilla-daemon () inf ! fu-berlin ! de
Date:       2002-03-07 16:37:58
Message-ID: 20020307163758.27461.qmail () inf ! fu-berlin ! de
[Download RAW message or body]

http://z1.inf.fu-berlin.de:8081/bugzilla/show_bug.cgi?id=134

           Summary: could not marshall wchar with DSI implementation
           Product: JacORB
           Version: 1.4 beta 2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ORB
        AssignedTo: gerald.brose@acm.org
        ReportedBy: tarigopula_p@ociweb.com


Here is the DSI snippet:
public void
    invoke(ServerRequest request)
    {
	String name = request.operation();

        if(name.equals("_set_attrWChar"))
	{
	    NVList list = orb_.create_list(0);
	    Any any = orb_.create_any();
	    any.type(orb_.get_primitive_tc(TCKind.tk_wchar));
	    list.add_value("", any, org.omg.CORBA.ARG_IN.value);
	    request.arguments(list);
	    char arg = any.extract_wchar();

	    ti_.attrWChar(arg);
	    Any result = orb_.create_any();
            result.type(new org.jacorb.orb.TypeCode(TCKind._tk_void));
            request.set_result(result);
	    return;
	}
}

Got following exception:
Got exception:
 _set_attrWChar - invocation: system exception was thrown (org.omg.CORBA.MARSH
 Couldn't unmarshal object of type wchar in ServerRequest.  minor code: 0  co
eted: No) ]
  [java] ############################ StackTrace ############################

  [java] org.omg.CORBA.MARSHAL: Couldn't unmarshal object of type wchar in Se
rRequest.  minor code: 0  completed: No
  [java]     at org.jacorb.orb.dsi.ServerRequest.arguments(Unknown Source)
  [java]     at test.main.TestIntf_2_3_NoLongDouble_DSI_impl.invoke(TestIntf_
_NoLongDouble_DSI_impl.java:2655)
  [java]     at org.jacorb.poa.RequestProcessor.invokeOperation(Unknown Sourc

  [java]     at org.jacorb.poa.RequestProcessor.process(Unknown Source)
  [java]     at org.jacorb.poa.RequestProcessor.run(Unknown Source)
  [java] ####################################################################



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic