Package java.rmi

Examples of java.rmi.AccessException


      log.throwing ("com.sun.grid.jgrid.proxy.ComputeProxy", "processBindCall", e);
     
      return;
    }
   
    this.processException (out, new AccessException ("Bind operation not permitted on this server"));
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processBindCall");
  }
View Full Code Here


      this.processException (out, new StubNotFoundException ("Unable to find stub class", e));
      log.throwing ("com.sun.grid.jgrid.ComputeEngine", "processRebindCall", e);
      return;
    }
   
    this.processException (out, new AccessException ("Rebind operation not permitted on this server"));
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processRebindCall");
  }
View Full Code Here

      log.throwing ("com.sun.grid.jgrid.ComputeEngine", "processUnbindCall", e);
     
      return;
    }
   
    this.processException (out, new AccessException ("Unbind operation not permitted on this server"));
   
    log.exiting ("com.sun.grid.jgrid.proxy.ComputeProxy", "processUnbindCall");
  }
View Full Code Here

            return new EJBException(e.getMessage()).initCause(getCause(e));
        }

        if (remote && e instanceof EJBAccessException) {
            if (e.getCause() instanceof Exception) {
                return new AccessException(e.getMessage(), (Exception) e.getCause());
            } else {
                return new AccessException(e.getMessage());
            }
        }
        if (!remote && e instanceof EJBTransactionRolledbackException) {
            return new TransactionRolledbackLocalException(e.getMessage()).initCause(getCause(e));
        }
View Full Code Here

                } else {
                    if (interfaceType.isLocal()) {
                        throw (AccessLocalException)new AccessLocalException(exc.getMessage()).initCause(exc);
                    } else {
                        try {
                            throw new AccessException(exc.getMessage()).initCause(exc);
                        } catch (IllegalStateException vmbug) {
                            // Sun JDK 1.5 bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4871783
                            // bug affects using initCause on any RemoteException subclasses in Sun 1.5_07 or lower
                            throw new AccessException(exc.getMessage(), (Exception) exc);
                        }
                    }
                }

            }
View Full Code Here

                    throw exc;
                } else {
                    if (interfaceType.isLocal()) {
                        throw new AccessLocalException(exc.getMessage()).initCause(exc.getCause());
                    } else {
                        throw new AccessException(exc.getMessage());
                    }
                }

            }
            throw exc;
View Full Code Here

                    throw exc;
                } else {
                    if (interfaceType.isLocal()) {
                        throw (AccessLocalException)new AccessLocalException(exc.getMessage()).initCause(exc);
                    } else {
                        throw new AccessException(exc.getMessage()).initCause(exc);
                    }
                }

            }
            throw exc;
View Full Code Here

            NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());
            noSuchObjectException.detail = ex;
            return noSuchObjectException;
        }
        if (ex instanceof NO_PERMISSION) {
            return new AccessException(ex.getMessage(), ex);
        }
        if (ex instanceof MARSHAL) {
            return new MarshalException(ex.getMessage(), ex);
        }
        if (ex instanceof UNKNOWN) {
View Full Code Here

            NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());
            noSuchObjectException.detail = ex;
            return noSuchObjectException;
        }
        if (ex instanceof NO_PERMISSION) {
            return new AccessException(ex.getMessage(), ex);
        }
        if (ex instanceof MARSHAL) {
            return new MarshalException(ex.getMessage(), ex);
        }
        if (ex instanceof UNKNOWN) {
View Full Code Here

            NoSuchObjectException noSuchObjectException = new NoSuchObjectException(ex.getMessage());
            noSuchObjectException.detail = ex;
            return noSuchObjectException;
        }
        if (ex instanceof NO_PERMISSION) {
            return new AccessException(ex.getMessage(), ex);
        }
        if (ex instanceof MARSHAL) {
            return new MarshalException(ex.getMessage(), ex);
        }
        if (ex instanceof UNKNOWN) {
View Full Code Here

TOP

Related Classes of java.rmi.AccessException

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.