public SocketDirAndPort(File socketDir, int port) throws RemoteException { try { this.socketDir = socketDir.getCanonicalFile(); } catch (IOException e) { throw (RemoteException) new RemoteException(e.getMessage()).initCause(e); } this.port = port; }
PortAssigner getPortAssignerFromRegistry() throws RemoteException, NotBoundException { PortAssigner assigner; synchronized (PortAssigner.class) { try { assigner = (PortAssigner) lookup(PORT_ASSIGNER_ID); } catch (MalformedURLException e) { throw (RemoteException) new RemoteException(e.getMessage()).initCause(e); } return assigner; } }
public void connect(Remote target, Remote source) throws java.rmi.RemoteException { if (!(source instanceof javax.rmi.CORBA.Stub)) source = toStub(source); ObjectImpl obj; if (target instanceof ObjectImpl) { obj = (ObjectImpl) target; } else { try { exportObject(target); } catch (java.rmi.RemoteException ex) { // ignore "already exported test" // } try { obj = (ObjectImpl) toStub(target); } catch (java.rmi.NoSuchObjectException ex) { throw (java.rmi.RemoteException)new java.rmi.RemoteException("cannot convert to stub!").initCause(ex); } } try { ((javax.rmi.CORBA.Stub) source).connect(((ObjectImpl) obj)._orb()); } catch (org.omg.CORBA.BAD_OPERATION bad_operation) { throw (RemoteException)new RemoteException(bad_operation.getMessage()) .initCause(bad_operation); } }
rexc.initCause( exc ) ; throw rexc ;
rexc.initCause(exc); throw rexc;
rexc.initCause(exc); throw rexc;