Examples of RemoteException


Examples of java.rmi.RemoteException

               InvocationType type = mi.getType();
               boolean isLocal = (type == InvocationType.LOCAL || type == InvocationType.LOCALHOME);
               if (isLocal)
                  throw new EJBException("Unable to get an instance from the pool/cache", e);
               else
                  throw new RemoteException("Unable to get an intance from the pool/cache", e);
            }
           
            // Associate it with the method invocation
            mi.setEnterpriseContext(ctx);
            // Set the JACC EnterpriseBean PolicyContextHandler data
View Full Code Here

Examples of java.rmi.RemoteException

      BeanLock lock = getLockManager().getLock(id);
      lock.sync();
      try
      {
         if (cache.get(id) == null)
            throw new RemoteException("Session no longer exists: " + id);
      }
      finally
      {
         lock.releaseSync();
         getLockManager().removeLockRef(id);
View Full Code Here

Examples of java.rmi.RemoteException

      }
      catch (NonReentrantLock.ReentranceException re)
      {
         if (mi.getType() == InvocationType.REMOTE)
         {
            throw new RemoteException("Reentrant method call detected: "
                    + container.getBeanMetaData().getEjbName() + " "
                    + ctx.getId().toString());
         }
         else
         {
View Full Code Here

Examples of java.rmi.RemoteException

      else
        extMgr.insert(ext,txId);
    }
    catch (Throwable t) {
      // t.printStackTrace();
      throw new RemoteException(t.toString());
    }
  }
View Full Code Here

Examples of java.rmi.RemoteException

        exMngr= rams[0];
      else
        exMngr = rams[1];
    }
    catch (java.io.IOException e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

Examples of java.rmi.RemoteException

            log.trace("H(g): " + CryptoUtil.tob64(hg));
         }
      }
      catch (IOException e)
      {
         throw new RemoteException("Error during user info retrieval", e);
      }
      catch (KeyException e)
      {
         throw e;
      }
      catch (Throwable t)
      {
         log.error("Unexpected exception in getSRPParameters", t);
         throw new RemoteException("Unexpected exception in getSRPParameters", t);
      }

      // Generate a session id if the user may run multiple sessions
      Integer sessionID = SRPSessionKey.NO_SESSION_ID;
      if( multipleSessions == true )
View Full Code Here

Examples of java.rmi.RemoteException

               challenge = CryptoUtil.accessSealedObject(params.cipherAlgorithm, tmpKey,
                  params.cipherIV, auxChallenge);
            }
            catch (GeneralSecurityException e)
            {
               throw new RemoteException("Failed to access SealedObject", e);
            }
            auxChallenge = challenge;
         }
         if( trace )
            log.trace("Verifing aux challenge");
         this.verifierStore.verifyUserChallenge(username, auxChallenge);
      }
      else if( requireAuxChallenge == true )
      {
         throw new RemoteException("A non-null auxChallenge is required for verification");
      }

      // Inform the listener the user has been validated
      if (listener != null)
         listener.verifiedUser(key, session);
View Full Code Here

Examples of java.rmi.RemoteException

      {
         return getEJBHome(invocation);
      }
      else if (m.equals(GET_PRIMARY_KEY))
      {
         throw new RemoteException("Call to getPrimaryKey not allowed on session bean");
      }
      else if (m.equals(IS_IDENTICAL))
      {
         Object[] args = invocation.getArguments();
         String argsString = args[0].toString();
View Full Code Here

Examples of java.rmi.RemoteException

        log.info("echo, CalleeRemote.call="+ids[1]+", vmid="+ids[0]);
      }
      catch(Exception e)
      {
         log.error("Failed to invoke CalleeRemote.call", e);
         throw new RemoteException("Failed to invoke CalleeRemote.call", e);
      }
      return ids;
   }
View Full Code Here

Examples of java.rmi.RemoteException

         throw e;
      }
      catch (Throwable t)
      {
         t.printStackTrace();
         throw new RemoteException("Error during getEJBObject", t);
      }
   }
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.