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

List:       mico-announce
Subject:    [mico-devel] mico gcc4.1 and VC2005 issue of sequence of valuetype
From:       "Gurminder Singh" <gurmsingh () quark ! com>
Date:       2006-10-11 6:24:41
Message-ID: 2BC68159E3EC814BA1E81C108DF99A420E1DC92E () EXCH-IND-VS1 ! india ! quark ! com
[Download RAW message or body]

--===============16751079032216931==
Content-class: urn:content-classes:message
Content-Type: multipart/related;
	boundary="----_=_NextPart_001_01C6ECFC.42596928";
	type="multipart/alternative"

This is a multi-part message in MIME format.

[Attachment #2 (multipart/alternative)]


Hi, karel

 

I am stuck with the issue I reported to u earlier. I have been working
on resolving this issue for last 14 days but no success. Please help me
out

 

PROBLEM STATEMENT:

 

i have the java server based on spring framework which exposes its been
called  SessionService on iiop and registered it on jac naming service.

The client is developed on Visual studio 2005 using mico orb
"mico-cl8-10.4.06"  (special build by soran for vc2005 ) version which i
complied on VS2005.

I have an valuetype seq1_ Session  which is an sequence of Session
valuetype corresponding to this value type I have factory registered
with orb to construct this on client side.

 

Problem I face is when I make a call Get AllSession() on SessionService
which returns the seq1_session 

The call is successful , I get the se1_session. 

I iterate over the seq1_session and get the session valuetype 

Up to this every thing work fine but when I try to dynamically cast the
session value type to session_impl (which is a wrapper over the OBV
session class )

The dynamic_cast fail it return me the NULL. But if I use the typeid to
check the object type on session it gives me the session_impl 

 

I  have debug the mico code and what is found is  seq1_session
demarshalling is proper. I can sess the session valuetype properly get
constructed and the data is properly 

Filled in the session valuetype. I get the properly build sequence.  But
not able to understand the why I am not able to dynamic_cast it to
session_impl when the object it created at the time of demashal is
session_impl in the call create_for_unmarshal in session factory.

 

It is very strange that if i compile the client on VC7/Visual Studios
2002 then the same code works using the mico build 2.3.12 compiled on
vc7

And

 

Also on Gcc 401 version I get the same problem. The dynamic_cast fails.

 

 

In all these cases above no change has been made in the Java Server.

 

Please help me out to solve the issue.  I can provide u the sample code.


 

 

 

 
--Regards

Guminder Singh

Member (SDG)

Core Technologies Group

Quark Media House pvt Ltd.

A- 45 industrial Area (Mohali)

Phone: 91 -172-2299440

gurmsingh@quark.com <mailto:youremailaddress@quark.com> 

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 gurmsingh@quark.com <mailto:youremail@quark.com>  and
delete the original transmission, its attachments, and any copies
without reading or saving in any manner. Thank you.

 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"Trebuchet MS";
	panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><a name="OLE_LINK1"></a><a name="OLE_LINK2"><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hi, \
karel<o:p></o:p></span></font></a></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am stuck with the issue I reported to u earlier. I have
been working on resolving this issue for last 14 days but no success. Please
help me out<o:p></o:p></span></font></p>

<p class=MsoNormal><b><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'><o:p>&nbsp;</o:p></span></font></b></p>

<p class=MsoNormal><b><u><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'>PROBLEM \
STATEMENT:<o:p></o:p></span></font></u></b></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>i have the java server based on spring framework which
exposes its been called &nbsp;<b><span \
style='font-weight:bold'>SessionService</span></b> on iiop and registered it on jac \
naming service.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The client is developed on Visual studio 2005 using mico orb
&nbsp;&#8220;mico-cl8-10.4.06&#8221; &nbsp;(special build by soran for vc2005 )
version which i complied on VS2005.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have an valuetype <b><span style='font-weight:bold'>seq1_ \
Session</span></b> &nbsp;which is an sequence of <b><span \
style='font-weight:bold'>Session</span></b> valuetype corresponding to this value \
type I have factory registered with orb to construct this on client \
side.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Problem I face is when I make a call <b><span
style='font-weight:bold'>Get AllSession</span></b>() on <b><span
style='font-weight:bold'>SessionService</span></b> &nbsp;which returns the
seq1_session <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The call is successful , I get the se1_session. \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I iterate over the seq1_session and get the session valuetype
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Up to this every thing work fine but when I try to dynamically
cast the session value type to session_impl (which is a wrapper over the OBV
session class )<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The dynamic_cast fail it return me the NULL. But if I use
the typeid to check the object type on session it gives me the session_impl \
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I &nbsp;have debug the mico code and what is found is&nbsp;
seq1_session demarshalling is proper. I can sess the session valuetype properly
get constructed and the data is properly <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Filled in the session valuetype. I get the properly build
sequence. &nbsp;But not able to understand the why I am not able to
dynamic_cast it to session_impl when the object it created at the time of
demashal is session_impl in the call </span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier \
New"'>create_for_unmarshal in session factory.</span></font><font size=2 \
face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>


<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>It is very strange that if i compile the client on <b><span
style='font-weight:bold'>VC7/Visual Studios 2002</span></b> then the same code
works using the mico build 2.3.12 compiled on vc7<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>And<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Also <b><span style='font-weight:bold'>on Gcc 401</span></b>
version I get the same problem. The dynamic_cast fails.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In all these cases above <b><span style='font-weight:bold'>no
change</span></b> has been made in the Java Server.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Please help me out to solve the issue.&nbsp; I can provide u
the sample code. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><img width=96 height=50 id="_x0000_i1025"
src="cid:image001.gif@01C6ED2A.31861D00"><br>
</span></font><b><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet \
MS";color:black;font-weight:bold'>--Regards</span></font></b><o:p></o:p></p>

<p class=MsoNormal><b><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet \
MS";color:black;font-weight:bold'>Guminder Singh<o:p></o:p></span></font></b></p>

<p class=MsoNormal><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS";color:black'>Member \
(SDG)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS";color:black'>Core
Technologies Group</span></font><font size=1 face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Trebuchet MS"><span style='font-size:
9.0pt;font-family:"Trebuchet MS"'>Quark Media House pvt \
Ltd.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS";color:black'>A- 45 industrial
Area (Mohali)</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS";color:black'>Phone: 91
-172-2299440<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=1 color=black face="Trebuchet MS"><span
style='font-size:9.0pt;font-family:"Trebuchet MS";color:black'><a
href="mailto:youremailaddress@quark.com">gurmsingh@quark.com</a></span></font><o:p></o:p></p>


<p class=MsoNormal><font size=1 color=silver face="Trebuchet MS"><span
style='font-size:8.0pt;font-family:"Trebuchet MS";color:silver'>CONFIDENTIALITY
NOTICE<br>
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 <u><a \
href="mailto:youremail@quark.com">gurmsingh@quark.com</a></u> and delete the original \
transmission, its attachments, and any copies without reading or saving in any \
manner. Thank you.</span></font><font size=1 face="Trebuchet MS"><span \
style='font-size:8.0pt;font-family:"Trebuchet MS"'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>


["image001.gif" (image/gif)]

_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

--===============16751079032216931==--

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

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