Package java.rmi

Examples of java.rmi.ServerException


            throw (Error) t;
         throw new InvocationTargetException(t);
      }
      catch (IOException e)
      {
         throw new ServerException("IOE", e);
      }
   }
View Full Code Here


         // Bind the home in the JNDI naming space
         rebindHomeProxy();
      }
      catch(Exception e)
      {
         throw new ServerException("Could not bind home", e);
      }
   }
View Full Code Here

         Method method = type.getMethod("create", new Class[0]);
         return (EJBObject) method.invoke(home, new Object[0]);
      }
      catch (Exception e)
      {
         throw new ServerException("Could not get EJBObject", e);
      }
   }
View Full Code Here

         // call findByPrimary on the target
         return (EJBObject) method.invoke(home, new Object[]{id});
      }
      catch (Exception e)
      {
         throw new ServerException("Could not get EJBObject", e);
      }
   }
View Full Code Here

         EJBHome home = (EJBHome) ic.lookup(jndiName);
         return home;
      }
      catch (NamingException e)
      {
         throw new ServerException("Could not get EJBHome", e);
      }
   }
View Full Code Here

      catch(RemoteException aex)
      {
         // per Jira issue JBREM-61
         if(strictRMIException)
         {
            throw new ServerException(aex.getMessage(), aex);
         }
         else
         {
            throw aex;
         }
View Full Code Here

         EJBHome home = (EJBHome) ic.lookup(jndiName);
         return home;
      }
      catch (NamingException e)
      {
         throw new ServerException("Could not get EJBHome", e);
      }
   }
View Full Code Here

               String msg = formatException("Unexpected Throwable", e);
               throw new EJBException(msg);
            }
            else
            {
               ServerException ex = new ServerException("Unexpected Throwable");
               ex.detail = e;
               throw ex;
            }
         }
View Full Code Here

            _volumeDao.remove(volume.getId());
            txn.commit();

        } catch (UnknownHostException uhe) {
            s_logger.warn("Unable to delete volume on filer ", uhe);
            throw new ServerException("Unable to delete volume on filer", uhe);
        } catch (NaAPIFailedException naf) {
            s_logger.warn("Unable to delete volume on filer ", naf);
            if (naf.getErrno() == 13040) {
                s_logger.info("Deleting the volume: " + volName);
                _volumeDao.remove(volume.getId());
                txn.commit();
            }

            throw new ServerException("Unable to delete volume on filer", naf);
        } catch (NaException nae) {
            txn.rollback();
            s_logger.warn("Unable to delete volume on filer ", nae);
            throw new ServerException("Unable to delete volume on filer", nae);
        } catch (IOException ioe) {
            txn.rollback();
            s_logger.warn("Unable to delete volume on filer ", ioe);
            throw new ServerException("Unable to delete volume on filer", ioe);
        } finally {
            if (pool != null) {
                _poolDao.releaseFromLockTable(pool.getId());
            }
            if (s != null)
View Full Code Here

            if (volumeCreated) {
                try {
                    deleteRogueVolume(volName, s);//deletes created volume on filer
                } catch (NaException e) {
                    s_logger.warn("Failed to cleanup created volume whilst rolling back on the netapp filer:", e);
                    throw new ServerException("Unable to create volume via cloudtools."
                        + "Failed to cleanup created volume on netapp filer whilst rolling back on the cloud db:", e);
                } catch (IOException e) {
                    s_logger.warn("Failed to cleanup created volume whilst rolling back on the netapp filer:", e);
                    throw new ServerException("Unable to create volume via cloudtools."
                        + "Failed to cleanup created volume on netapp filer whilst rolling back on the cloud db:", e);
                }
            }
            throw new ServerException("Unable to create volume", nae);
        } catch (IOException ioe) {
            s_logger.warn("Failed to create volume on the netapp filer:", ioe);
            txn.rollback();
            if (volumeCreated) {
                try {
                    deleteRogueVolume(volName, s);//deletes created volume on filer
                } catch (NaException e) {
                    s_logger.warn("Failed to cleanup created volume whilst rolling back on the netapp filer:", e);
                    throw new ServerException("Unable to create volume via cloudtools."
                        + "Failed to cleanup created volume on netapp filer whilst rolling back on the cloud db:", e);
                } catch (IOException e) {
                    s_logger.warn("Failed to cleanup created volume whilst rolling back on the netapp filer:", e);
                    throw new ServerException("Unable to create volume via cloudtools."
                        + "Failed to cleanup created volume on netapp filer whilst rolling back on the cloud db:", e);
                }
            }
            throw new ServerException("Unable to create volume", ioe);
        } finally {
            if (s != null)
                s.close();
            if (pool != null)
                _poolDao.releaseFromLockTable(pool.getId());
View Full Code Here

TOP

Related Classes of java.rmi.ServerException

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.