throw new MarshalException("unable to read objID", e);
} catch (java.rmi.MarshalException rmie) { if (rmie.getCause() != null && rmie.getCause() instanceof javax.net.ssl.SSLException && rmie.getCause().getMessage() != null && rmie.getCause().getMessage().startsWith("Connection has been shutdown")) { //$NON-NLS-1$ ret_response = invoke(command); OutgoingCommandTrace.finish(command, ret_response);
ex = new MarshalException(""); try { proxied.echoException(1, ex);
/** * Converts an Entry to an EntryRep. Any exception that results * is bundled up into a MarshalException. */ private EntryRep(Entry entry, boolean needCodebase) throws RemoteException { EntryClassBase ecb = ClassMapper.toEntryClassBase(entry.getClass()); eclass = ecb.eclass; codebase = needCodebase ? ecb.codebase : null; try { EntryField[] efields = ClassMapper.getFields(entry.getClass()); fields = new Object[efields.length]; for (int i = efields.length; --i >= 0; ) { EntryField f = efields[i]; Object val = f.field.get(entry); if (f.marshal && val != null) val = new MarshalledWrapper(val); fields[i] = val; } } catch (IOException e) { throw new MarshalException("error marshalling arguments", e); } catch (IllegalAccessException e) { throw new MarshalException("error marshalling arguments", e); } flds = Collections.synchronizedList(Arrays.asList(fields != null ? fields : new Object[0])); }
throw new MarshalException("Unable to calculate type hash for " + name, e);
/** * Converts an Entry to an EntryRep. Any exception that results is bundled up into a * MarshalException. */ public EntryRep(Entry entry) throws RemoteException { EntryClassBase ecb = ClassMapper.toEntryClassBase(entry.getClass()); eclass = ecb.eclass; codebase = ecb.codebase; try { EntryField[] efields = ClassMapper.getFields(entry.getClass()); fields = new Object[efields.length]; for (int i = efields.length; --i >= 0; ) { EntryField f = efields[i]; Object val = f.field.get(entry); if (f.marshal && val != null) val = new MarshalledWrapper(val); fields[i] = val; } } catch (IOException e) { throw new MarshalException("error marshalling arguments", e); } catch (IllegalAccessException e) { throw new MarshalException("error marshalling arguments", e); } }
hash = computeHash(name); } catch (Exception e) { throw new MarshalException("unable to calculate the type hash for " + name, e);
/** * Should only be called by ClassMapper */ public ServiceType(Class clazz, ServiceType superclass, ServiceType[] interfaces) throws MarshalException { if (!Proxy.isProxyClass(clazz)) { name = clazz.getName(); } else if (interfaces.length == 0) { name = ";"; } else { StringBuffer buf = new StringBuffer(); for (int i = 0; i < interfaces.length; i++) { buf.append(';'); buf.append(interfaces[i].getName()); } name = buf.toString(); } this.superclass = superclass; if (clazz != Object.class) this.interfaces = interfaces; try { computeHash(); } catch (Exception e) { throw new MarshalException("unable to calculate the type hash for " + name, e); } }
throw new MarshalException("Unable to calculate type hash for " + name, e);
/** * Converts a ServiceItem to an Item. Any exception that results is bundled up into a * MarshalException. */ public Item(ServiceItem item) throws RemoteException { Object svc = item.service; if (enableImplToStubReplacement && svc instanceof Remote) { try { svc = RemoteObject.toStub((Remote) svc); if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "replacing {0} with {1}", new Object[]{item.service, svc}); } } catch (NoSuchObjectException e) { } } serviceID = item.serviceID; ServiceTypeBase stb = ClassMapper.toServiceTypeBase(svc.getClass()); serviceType = stb.type; codebase = stb.codebase; try { service = new MarshalledWrapper(svc); } catch (IOException e) { throw new MarshalException("error marshalling arguments", e); } attributeSets = EntryRep.toEntryRep(item.attributeSets, true); }
} catch (Exception e) { MarshalException me = new MarshalException("marshalling ActivateDesc", e); logger.throwing(ActivateWrapper.class.getName(), "register", me);
/** * Converts a ServiceItem to an Item. Any exception that results * is bundled up into a MarshalException. */ public Item(ServiceItem item) throws RemoteException { Object svc = item.service; if (enableImplToStubReplacement && svc instanceof Remote) { try { svc = RemoteObject.toStub((Remote) svc); if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "replacing {0} with {1}", new Object[]{ item.service, svc }); } } catch (NoSuchObjectException e) { } } // Now we need to create the bootstrap proxy for the new lookup method. bootstrapProxy = Bootstrap.create(svc); serviceID = item.serviceID; ServiceTypeBase stb = ClassMapper.toServiceTypeBase(svc.getClass()); serviceType = stb.type; codebase = stb.codebase; try { service = new MarshalledWrapper(svc); } catch (IOException e) { throw new MarshalException("error marshalling arguments", e); } attributeSets = EntryRep.toEntryRep(item.attributeSets, true); }
data = new MarshalledObject(desc); } catch (Exception e) { MarshalException me = new MarshalException("marshalling ActivateDesc", e); logger.throwing(ActivateWrapper.class.getName(), "register", me);
throw new MarshalException("unable to read objID", e);
return new MarshalException(message, ex); return new MarshalException(message, ex); return new MarshalException(message, inner);
out.writeObject ( $param_String_1 ); } catch ( java.io.IOException e ) { throw new java.rmi.MarshalException ( "error marshalling arguments", e );
return new MarshalException(message, ex); } else if (ex instanceof INV_OBJREF) { RemoteException newEx = new NoSuchObjectException(message); return new AccessException(message, ex); } else if (ex instanceof MARSHAL) { return new MarshalException(message, ex); } else if (ex instanceof OBJECT_NOT_EXIST) { RemoteException newEx = new NoSuchObjectException(message); return new MarshalException(message,inner); } else if (ex instanceof ACTIVITY_REQUIRED) { try {
return new MarshalException(message, ex); return new MarshalException(message, ex); return new MarshalException(message, inner);
out.writeObject ( $param_String_1 ); } catch ( java.io.IOException e ) { throw new java.rmi.MarshalException ( "error marshalling arguments", e );