Any value = nv.value();
value.write_value(out);
}
}
InputStream in = null;
try {
in = (InputStream) target._invoke(out);
if (!responseExpected) {
return;
}
org.omg.CORBA.Any return_value = return_value();
TypeCode tc = return_value.type();
if (return_value != null && tc != null) {
// create return value
return_value.read_value(in, tc);
}
for (int i = 0; i < arguments.count(); i++) {
NamedValue nv = null;
try {
nv = arguments.item(i);
}
catch (org.omg.CORBA.Bounds ex) {
throw new org.omg.CORBA.INTERNAL("concurrent modification");
}
switch (nv.flags()) {
case ARG_OUT.value:
case ARG_INOUT.value:
org.omg.CORBA.Any value = nv.value();
value.read_value(in, value.type());
}
}
}
catch (org.omg.CORBA.portable.RemarshalException _exception) {
continue REMARSHAL;
}
catch (org.omg.CORBA.portable.UnknownException uex) {
Throwable e = uex.originalEx;
String exname = e.getClass().getName();
for (int i = 0; i < exceptions.count(); i++) {
TypeCode ex_tc = null;
try {
ex_tc = exceptions.item(i);
}
catch (org.omg.CORBA.Bounds ex) {
throw new org.omg.CORBA.INTERNAL("concurrent modification");
}
String expected;
try {
expected = RepositoryID.idToClassName(ex_tc.id());
}
catch (org.omg.CORBA.TypeCodePackage.BadKind ex) {
throw new org.omg.CORBA.BAD_PARAM("bad exception type");
}
if (exname.equals(expected)) {
env.exception((Exception) e);
return;
}
}
env.exception(uex);
}
catch (org.omg.CORBA.portable.ApplicationException aex) {
InputStream ex_in = (InputStream) aex.getInputStream();
String ex_id = aex.getId();
for (int i = 0; i < exceptions.count(); i++) {
TypeCode ex_tc = null;
try {