log.debug("client.getInvoker().getLocator()" + client.getInvoker().getLocator());
try
{
Object ret = client.invoke(new NameBasedInvocation("throwServerException",
new Object[]{"nonserialized"},
new String[]{String.class.getName()}),
null);
}
catch(NonSerializeTestException nonEx)
{
log.debug("Expected to get NonSerializable exception and got it.", nonEx);
assertTrue(true);
}
try
{
Object ret = client.invoke(new NameBasedInvocation("throwServerException",
new Object[]{"serialized"},
new String[]{String.class.getName()}),
null);
}
catch(SerializedTestException ex)