<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:m="http://schemas.microsoft.com/office/2004/12/omml" 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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:467670753;
mso-list-type:hybrid;
mso-list-template-ids:-567246486 67567617 67567619 67567621 67567617 67567619 67567621 67567617 67567619 67567621;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">We are using omniOrb 4.2.3 for interprocess communication between python and c++.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Currently we are facing a omniORB.BAD_PARAM_ValueFactoryFailure Error.<br>
I was able to reproduce the error with the following IDL:<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">module Example {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> valuetype ParamType unsigned short;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> valuetype InnerULong unsigned long;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> struct MyStruct {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> InnerULong member;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> interface Echo {<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> void execute(in ParamType a, in Example::MyStruct b);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"> };<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">};<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">The Error occurs when the execute function of the Echo interface is called from python to a c++ servant.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">I made the following observations:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-family:"Arial",sans-serif">Error occurs only if the value of “ParamType a” is equal to the “InnerULong member” of MyStruct -> execute(0, MyStruct(member=0))<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-family:"Arial",sans-serif">A typedef instead of valuetype of InnerULong to unsigned long would work<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-family:Symbol"><span style="mso-list:Ignore">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-family:"Arial",sans-serif">Calling a python servant also works<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Is the usage of valuetype for InnerULong “not a good practice” and a typedef preferable?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Or should this example work without any problems?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Thanks and regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif">Maximilian Fackler<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p><a href="https://www.uhlmann.de/" target="_blank"><img title="Uhlmann Pac-Systeme GmbH & Co. KG" border="0" hspace="0" alt="Uhlmann Pac-Systeme GmbH & Co. KG" src="https://signatur.uhlmann-group.com/cdn/uhlmann.jpg" width="225" align="top" height="68"></a></p><br><!-- Uhlmann End --><!-- Socia Media Start -->
<table cellspacing="0" cellpadding="0" width="248" align="left" border="0">
<tbody>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td width="63">
<p><a href="https://www.facebook.com/UhlmannPacSysteme/" target="_blank"><img border="0" hspace="0" alt="" src="https://signatur.uhlmann-group.com/cdn/fb.png" width="45" align="top" height="45"></a></p></td>
<td width="63">
<p><a href="https://www.youtube.com/user/UhlmannPacSysteme" target="_blank"><img border="0" hspace="0" alt="" src="https://signatur.uhlmann-group.com/cdn/yt.png" width="45" align="top" height="45"></a></p></td>
<td width="63">
<p><a href="https://www.xing.com/companies/uhlmannpac-systeme" target="_blank"><img border="0" hspace="0" alt="" src="https://signatur.uhlmann-group.com/cdn/x.png" width="45" align="top" height="45"></a></p></td>
<td width="63">
<p><a href="https://www.linkedin.com/company/uhlmann-pac-systeme/" target="_blank"><img border="0" hspace="0" alt="" src="https://signatur.uhlmann-group.com/cdn/l.png" width="45" align="top" height="45"></a></p></td></tr></tbody></table></td></tr></tbody></table><br><br><br><br><br><!-- Socia Media End --><!-- Event Start -->
<p><a href="https://signatur.uhlmann-group.com/cdn/index.html" target="_blank"><img border="0" hspace="0" alt="" src="https://signatur.uhlmann-group.com/cdn/event.jpg" width="500" align="top" height="150"></a></p><!-- Event End -->
<p style="FONT-SIZE: 7pt; FONT-FAMILY: Arial">
<br>Uhlmann Pac-Systeme GmbH & Co. KG
<br>Registergericht Ulm HRA 720615 - Persönlich haftende Gesellschafterin: Uhlmann Pac-Systeme Verwaltungsgesellschaft mbH - Registergericht Ulm HRB 721209 - USt-IdNr. DE324830015
<br>Vorsitzender des Aufsichtsrats: Tobias Uhlmann - Geschäftsführer: Prof. Dr.-Ing. Matthias Niemeyer (CEO), Michael Mrachacz (CSO), Alexander Schöllhorn (CFO), Tim Slomp (CTO)
<br>Die Informationen zur Datenverarbeitung im Rahmen unserer allgemeinen Geschäftstätigkeit gemäß EU-Datenschutzgrundverordnung finden Sie hier: <a href="https://www.uhlmann.de/de/info-zur-kunden-und-lieferantendaten.html" style="color: #0070B8">https://www.uhlmann.de/de/info-zur-kunden-und-lieferantendaten.html</a>
<br><br>Uhlmann Pac-Systeme GmbH & Co. KG<br>Court of Register Ulm HRA 720615 - General partner: Uhlmann Pac-Systeme Verwaltungsgesellschaft mbH - Court of Register Ulm HRB 721209 - VAT Reg No DE324830015
<br>Chairman of the Supervisory Board: Tobias Uhlmann - Managing Directors: Prof. Dr.-Ing. Matthias Niemeyer (CEO), Michael Mrachacz (CSO), Alexander Schöllhorn (CFO), Tim Slomp (CTO)
<br>Information on data processing within the scope of our general business activities in accordance with the EU General Data Protection Regulation is to be found here: <a href="https://www.uhlmann.de/en/information-customer-and-supplier-data.html
" style="color: #0070B8">https://www.uhlmann.de/en/information-customer-and-supplier-data.html
</a> </p><p><font style="FONT-FAMILY: Webdings" color="#009900" size="4">P<span style="FONT-FAMILY: verdana,arial,helvetica" size="2" color="#009900"> <strong>Please consider the environment before printing this email</strong></span></font></p></body>
</html>