Package java.rmi

Examples of java.rmi.RemoteException


    @Override
    public void disableHost(String hostName) throws RemoteException {
        try {
            HostsFileUtils.disableHost(hostName);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here


    @Override
    public boolean exists(String hostName) throws RemoteException {
        try {
            return HostsFileUtils.exists(hostName);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

    @Override
    public void removeHost(String hostName) throws RemoteException {
        try {
            HostsFileUtils.removeHost(hostName);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

   * @throws RemoteException if state is set to error
   */
  protected void checkResponseMayThrow(BaseResponseObject responseObject) throws RemoteException {
    if(responseObject.getResstate() != null && responseObject.getResstate().contains("error")) {
      if(StringUtils.hasText(responseObject.resmsg)) {
        throw new RemoteException(responseObject.resmsg);
      } else {
        throw new RemoteException();
      }
    }
  }
View Full Code Here

     */
    private static PlanarImage getSource(Long id) throws RemoteException {
        Object obj = null;
        if(sources == null ||
           (obj = sources.get(id)) == null) {
            throw new RemoteException(JaiI18N.getString("RMIImageImpl2"));
        }

        return (PlanarImage)obj;
    }
View Full Code Here

    private static PropertySource getPropertySource(Long id)
        throws RemoteException {
        Object obj = null;
        if(propertySources == null ||
           (obj = propertySources.get(id)) == null) {
            throw new RemoteException(JaiI18N.getString("RMIImageImpl2"));
        }

        return (PropertySource)obj;
    }
View Full Code Here

     */
    private static PlanarImage getSource(Long id) throws RemoteException {
  Object obj = null;
  if(nodes == null ||
     (obj = nodes.get(id)) == null) {
      throw new RemoteException(JaiI18N.getString("RMIImageImpl2"));
  }
  return (PlanarImage)obj;
    }
View Full Code Here

    org.apache.juddi.registry.local.InquiryService inquiryService =
      new org.apache.juddi.registry.local.InquiryService();
    try {
      response = inquiryService.inquire(request);
    } catch (Exception e) {
      throw new RemoteException(e.getLocalizedMessage(), e);
    }
    return response;
  }
View Full Code Here

    org.apache.juddi.registry.local.PublishService publishService =
      new org.apache.juddi.registry.local.PublishService();
    try {
      response = publishService.publish(request);
    } catch (Exception e) {
      throw new RemoteException(e.getLocalizedMessage(), e);
    }
    return response;
  }
View Full Code Here

        } catch (InterruptedException e) {}
        wait = timeout - (System.currentTimeMillis() - call.lastActivity);
      } while (!call.done && wait > 0);

      if (call.error != null) {
        throw new RemoteException(call.error);
      } else if (!call.done) {
        throw new IOException("timed out waiting for response");
      } else {
        return call.value;
      }
View Full Code Here

TOP

Related Classes of java.rmi.RemoteException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.