[omniORB] org.omg.CORBA.MARSHAL: minor code: 0 completed: No
Christian Dyczek
christian.dyczek@gmx.at
Wed, 12 Dec 2001 13:21:38 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01C1830F.EF2A00E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
I want to send a string over an java applet to the c++ omniorb server.
I get following failure message:
What does this mean?
org.omg.CORBA.MARSHAL: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at
com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(Unknown
Source)
at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(Unk
nown Source)
at
com.sun.corba.se.internal.corba.ClientDelegate.invoke(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at _EchoStub.testConnection(_EchoStub.java:31)
at ClientApplet.init(ClientApplet.java:119)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------
----------------------
The idl file:
#ifndef __ECHO_IDL__
#define __ECHO_IDL__
interface Echo {
string testConnection(in string mesg);
};
#endif
------------------------------------------------------------------------
--------------------
The java applet:
String testConnection = "Test";
String dest = server.testConnection(testConnection);
------------------------------------------------------------------------
-----------------------
The omni code:
char* Echo_i::testConnection(const char *mesg)
{
char *temp;
int i;
temp=(char *)malloc(mesg[0]+1);
for(i=0;i<mesg[0];i++)
temp[i]=mesg[i+1];
printf("testConnection hat diese Laenge: %d\n", mesg[0]);
printf("Das steht in temp: %s\n", temp);
return ("Hier ist die Funktion testConnection");
}
------------------------------------------------------------------------
---------------------------------
------=_NextPart_000_0001_01C1830F.EF2A00E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C1830F.ED2BBFE0">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>21</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:DE-AT;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailFormatvorlage17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=3DDE link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:35.4pt'>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>I <span class=3DSpellE>want</span> to send a =
<span
class=3DSpellE>string</span> <span class=3DSpellE>over</span> an <span
class=3DSpellE>java</span> <span class=3DSpellE>applet</span> to <span
class=3DSpellE>the</span> c++ <span class=3DSpellE>omniorb</span> <span
class=3DSpellE>server</span>.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>I <span class=3DSpellE>get</span> <span =
class=3DSpellE>following</span>
<span class=3DSpellE>failure</span> <span =
class=3DSpellE>message</span>:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>What</span></font></span><fo=
nt
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'> <span
class=3DSpellE>does</span> <span class=3DSpellE>this</span> =
mean?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>org.omg.CORBA.MARSHAL</span>=
</font></span><font
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'>:<span
style=3D'mso-spacerun:yes'> </span><span =
class=3DSpellE>minor</span> <span
class=3DSpellE>code</span>: 0<span style=3D'mso-spacerun:yes'> =
</span><span
class=3DSpellE>completed</span>: No<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
java.lang.Class.newInstance0(Native <span =
class=3DSpellE>Method</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span class=3DSpellE>java.lang.Class.newInstance</span>(<span =
class=3DSpellE>Unknown</span>
<span class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span =
class=3DSpellE>com.sun.corba.se.internal.iiop.ReplyMessage.getSystemExcep=
tion</span>(<span
class=3DSpellE>Unknown</span> <span =
class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(<spa=
n
class=3DSpellE>Unknown</span> <span =
class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span =
class=3DSpellE>com.sun.corba.se.internal.corba.ClientDelegate.invoke</spa=
n>(<span
class=3DSpellE>Unknown</span> <span =
class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span =
class=3DSpellE>org.omg.CORBA.portable.ObjectImpl._invoke</span>(<span
class=3DSpellE>Unknown</span> <span =
class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
_<span =
class=3DSpellE>EchoStub.testConnection</span>(_EchoStub.java:31)<o:p></o:=
p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span =
class=3DSpellE>ClientApplet.init</span>(ClientApplet.java:119)<o:p></o:p>=
</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span class=3DSpellE>sun.applet.AppletPanel.run</span>(<span =
class=3DSpellE>Unknown</span>
<span class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span>at
<span class=3DSpellE>java.lang.Thread.run</span>(<span =
class=3DSpellE>Unknown</span>
<span class=3DSpellE>Source</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>-----------------------------------------------=
-----------------------------------------------<o:p></o:p></span></font><=
/p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>The</span></font></span><fon=
t
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'> <span
class=3DSpellE>idl</span> <span =
class=3DSpellE>file</span>:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>#<span class=3DSpellE>ifndef</span> =
__ECHO_IDL__<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>#<span class=3DSpellE>define</span> =
__ECHO_IDL__<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>interface</span></font></spa=
n><font
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'>
Echo {<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span style=3D'mso-spacerun:yes'> =
</span><span
class=3DSpellE>string</span> <span =
class=3DSpellE>testConnection</span>(in <span
class=3DSpellE>string</span> <span =
class=3DSpellE>mesg</span>);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-spacerun:yes'> </span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>};<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>#<span =
class=3DSpellE>endif</span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>-----------------------------------------------=
---------------------------------------------<o:p></o:p></span></font></p=
>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>The</span></font></span><fon=
t
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'> <span
class=3DSpellE>java</span> <span =
class=3DSpellE>applet</span>:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>String <span =
class=3DSpellE>testConnection</span> =3D
"Test";<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>String <span class=3DSpellE>dest</span> =3D =
<span
class=3DSpellE>server.testConnection</span>(<span =
class=3DSpellE>testConnection</span>);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>-----------------------------------------------=
------------------------------------------------<o:p></o:p></span></font>=
</p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>The</span></font></span><fon=
t
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'> <span
class=3DSpellE>omni</span> <span =
class=3DSpellE>code</span>:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 =
face=3DArial><span lang=3DDE-AT
style=3D'font-size:10.0pt;font-family:Arial'>char</span></font></span><fo=
nt
size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:10.0pt;font-family:Arial'>*
<span class=3DSpellE>Echo_i::testConnection</span>(<span =
class=3DSpellE>const</span>
<span class=3DSpellE>char</span> *<span =
class=3DSpellE>mesg</span>)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>{<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>char</span> *<span =
class=3DSpellE>temp</span>;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>int</span> i;<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>temp</span>=3D(<span class=3DSpellE>char</span> *)<span =
class=3DSpellE>malloc</span>(<span
class=3DSpellE>mesg</span>[0]+1);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>for</span>(i=3D0<span =
class=3DGramE>;i</span><mesg[0];i++)<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-spacerun:yes'> </span><span
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>temp</span>[i]=3D<span =
class=3DSpellE>mesg</span>[i+1];<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>printf</span>("<span =
class=3DSpellE>testConnection</span> hat
diese <span class=3DSpellE>Laenge</span>: %<span =
class=3DSpellE>d\n</span>", <span
class=3DSpellE>mesg</span>[0]);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>printf</span>("Das steht in <span =
class=3DSpellE>temp</span>: %<span
class=3DSpellE>s\n</span>", <span =
class=3DSpellE>temp</span>);<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><span =
style=3D'mso-tab-count:1'>  =
; </span><span
class=3DSpellE>return</span> ("Hier ist die Funktion <span =
class=3DSpellE>testConnection</span>");<o:p></o:p></span></font></p>=
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>}<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'>-----------------------------------------------=
----------------------------------------------------------<o:p></o:p></sp=
an></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DDE-AT =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DDE-AT
style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0001_01C1830F.EF2A00E0--