How does generated IDL code look? IMHO this might be a bug in MICO
demarshalling, but also big chance is that it is just user code mistake.
Without as simple as possible test case it's hard to judge.
Cheers,
Karel
On Tue, 16 May 2006, Gurminder Singh wrote:
Hi,
I am having the Java RMI server and c++ client. I am able to pass value
types successfully. But facing problem when I try to pass the Java
Serializable object (which reverse map to Valuetype in IDL) containing
empty java interface (which is reversed mapped to Abstract Interface in
IDL). The demarshal of the Abstractbase class in CORBA is not able to
handle the demarshalling of the Abstract interface which is initialize
with valuetype at runtime.
The java serializable object is
public class dummyComplexType implements Serializable{
private long complexID;
private Value complexVal;
public dummyComplexType() {
super();
// TODO Auto-generated constructor stub
}
public long getComplexID() {
return complexID;
}
public void setComplexID(long complexID) {
this.complexID = complexID;
}
public Value getComplexVal() {
return complexVal;
}
public void setComplexVal(Value complexVal) {
this.complexVal = complexVal;
}
}
The Value above is an empty interface declared as
public interface Value extends Serializable {
//Empty interface
}
At runtime the Value is initialized with java serializeable object which
is derived from the Value interface.
Note:
When I pass the Value as return type of operation then it is properly
demarshaled.
On Debuging the mico I found that when Value is passed as return type of
some operations it is demarshal as valuetype but when I pass the
dummyComplexType which contains the Value then AbstractBase demarshel
class treat it as object ref. I don't know what is reason of treating it
as object ref when actually it initialize with value type at runtime. Is
it a bug in MICO in demarshalling?
Please help and guide me
Tons of thanks in advance
--Regards
Guminder Singh
Member (SDG)
Core Technologies Group
Quark Media House pvt Ltd.
A- 45 industrial Area (Mohali)
Phone: 91 -172-2299440
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail
messages appended or attached to it, may contain information that is
confidential or legally privileged. If you are not the intended
recipient, or a person responsible for delivering it to the intended
recipient, you are hereby notified that you must not read this
transmission and that any disclosure, copying, printing, distribution,
or use of the information contained or attached to this transmission is
STRICTLY PROHIBITED. If you have received this transmission in error,
please immediately notify the sender by telephone xxx.xxx.xxxx or return
e-mail message [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> and
delete the original transmission, its attachments, and any copies
without reading or saving in any manner. Thank you.
--
Karel Gardas [EMAIL PROTECTED]
ObjectSecurity Ltd. http://www.objectsecurity.com
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel