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(Unknown
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");
}
----------------------------------------------------------------------------
-----------------------------