Examples of RemoteException


Examples of java.rmi.RemoteException

  public Enumeration listLayouts()
    throws RemoteException {
    try {
      return fetchLayoutHome().findAll();
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

Examples of java.rmi.RemoteException

  public Enumeration listUsers()
    throws RemoteException {
    try {
      return fetchUserHome().findAll();
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

Examples of java.rmi.RemoteException

  public void removePortlet(String userName, long choiceId)
    throws CreateException, FinderException, NamingException, RemoteException, RemoveException {
    User user = fetchUserHome().findByUserName(userName);
    Choice choice = fetchChoiceHome().findByPrimaryKey(new ChoicePK(choiceId));
    if(choice.getUserId()!=user.getId())
      throw new RemoteException(userName+" couldn't remove choice with id "+choiceId);
    choice.remove();
  }
View Full Code Here

Examples of org.apache.hadoop.ipc.RemoteException

        }
        int state = in.readInt(); // Read the state.  Currently unused.
        if (isError) {
          if (call != null) {
            //noinspection ThrowableInstanceNeverThrown
            call.setException(new RemoteException(WritableUtils.readString(in),
                WritableUtils.readString(in)));
          }
        } else {
          Writable value = ReflectionUtils.newInstance(valueClass, conf);
          value.readFields(in);                 // read value
View Full Code Here

Examples of org.apache.tajo.rpc.RemoteException

      TableMeta meta;
      try {
        meta = TableUtil.getTableMeta(conf, tablePath);
      } catch (IOException e) {
        throw new RemoteException(e);
      }

      if (meta.getStat() == null) {
        long totalSize;
        try {
View Full Code Here

Examples of org.infinispan.remoting.RemoteException

         for (Map.Entry<Address, Response> rsp : rsps.entrySet()) {
            if (rsp.getValue() instanceof CacheNotFoundResponse) {
               if (globalConfiguration.transport().strictPeerToPeer()) {
                  String message = String.format("Cache %s has not been started on node %s", cacheName,
                        rsp.getKey());
                  throw new RemoteException(message, new NamedCacheNotFoundException(cacheName, message));
               }
            }
         }
      }
   }
View Full Code Here

Examples of org.lilyproject.repository.api.RemoteException

        restoreCauses(avroException.getRemoteCauses(), exception);
        return exception;
    }

    public RemoteException convert(AvroRemoteException exception) {
        return new RemoteException(exception.getMessage(), exception);
    }
View Full Code Here

Examples of org.modeshape.web.client.RemoteException

                Node child = it.nextNode();
                node.addChild(new JcrNode(repository, workspace, child.getName(), child.getPath(), child.getPrimaryNodeType().getName()));
            }
            return node;
        } catch (AccessDeniedException | SecurityException ade) {
            throw new RemoteException(RemoteException.SECURITY_ERROR, ade.getMessage());
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.