this,
false);
// throw new RemoteImagingException(ImageUtil.getStackTraceString(e));
}
RenderedImage source;
int size = getNumSources();
for (int i=0; i < size; i++) {
source = getSource(i);
if (source instanceof RMIServerProxy) {
try {
RMIServerProxy rop = (RMIServerProxy)source;
if (rop.serverName.equalsIgnoreCase(this.serverName)){
// Send the id of the source
remoteImage.setRenderedSource(id, rop.getRMIID(), i);
} else {
remoteImage.setRenderedSource(id,
rop.getRMIID(),
rop.serverName,
rop.operationName,
i);
}
} catch (RemoteException e) {
String message = JaiI18N.getString("RMIServerProxy6");
listener.errorOccurred(message,
new RemoteImagingException(e),
this, false);
// throw new RemoteImagingException(ImageUtil.getStackTraceString(e));
}
} else if (source instanceof RenderedOp) {
/// XXX This should not happen, since by the time a
// RMIServerProxy is created, all its sources should already
// have been rendered. In any case, the following deals
// correctly with the situation if it should arise.
RenderedOp rop = (RenderedOp)source;
RenderedImage rendering = rop.getRendering();
if (!(rendering instanceof Serializable))
rendering = new SerializableRenderedImage(rendering);
try {
remoteImage.setRenderedSource(id, rendering, i);