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

List:       jacorb-bugs
Subject:    [jacorb-bugs] [Bug 667] New: Cannot put union or struct into Any if
From:       bugzilla-daemon () inf ! fu-berlin ! de
Date:       2006-03-02 19:37:15
Message-ID: E1FEtbv-0000Gp-00 () berners ! inf ! fu-berlin ! de
[Download RAW message or body]

http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=667

           Summary: Cannot put union or struct into Any if union or struct
                    contains a valuetype
           Product: JacORB
           Version: 2.2.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ORB
        AssignedTo: gerald.brose@acm.org
        ReportedBy: doyle@turnkey-technology.com
         QAContact: jacorb-bugs@lists.spline.inf.fu-berlin.de


If a union or struct contains a valuetype and you put the union or struct into
an Any, the following exception is thrown when trying to marshal the Any:

org.omg.CORBA.MARSHAL: Cannot handle TypeCode with kind 29
    at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2248)
    at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2029)
    at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2225)
    at org.jacorb.orb.Any.write_value(Any.java:932)
    at org.jacorb.orb.CDROutputStream.write_any(CDROutputStream.java:753)
    at org.omg.CosEventComm._PushConsumerStub.push(_PushConsumerStub.java:75)

The stack trace above results from pushing an event on an event channel that has
an Any which contains a union with a struct with a valuetype, however the error
can be recreated by simply placing a valuetype in a struct and placing the
struct in an Any.  The CDRInputStream.read_value() method needs to have a case
added for TCKind._tk_value.

Note: This bug was found in JacORB 2.2.3 - version 2.2.3 is not an option in the
version select list at the time of bug entry.



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


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

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