Package org.jboss.util

Examples of org.jboss.util.NestedRuntimeException


      {
         undeployQueue(name);
      }
      catch (Exception e)
      {
         throw new NestedRuntimeException("deleteQueue() operation failed", e);
      }
   }
View Full Code Here


               }
            }
         } catch (Exception e)
         {
            e.printStackTrace(); // >> junit report
            throw new NestedRuntimeException(e.getMessage(), e);
         }
      }

      if (admin == null)
      {
View Full Code Here

         }
         catch (PrivilegedActionException e1)
         {
            Exception e = e1.getException();
            if (e instanceof NoSuchMethodException == false)
               throw new NestedRuntimeException(e);
         }

         info.setAdvisor(this);
         constructorInfos[i] = info;

         try
         {
            final String name = ConstructorExecutionTransformer.getConstructorInfoFieldName(getSimpleName(clazz), i);
            AccessController.doPrivileged(new PrivilegedExceptionAction<Object>()
            {
               public Object run() throws Exception
               {
                  Field infoField = clazz.getDeclaredField(name);
                  infoField.setAccessible(true);
                  infoField.set(null, new WeakReference<ConstructorInfo>(info));
                  return null;
               }
            });
         }
         catch (PrivilegedActionException e1)
         {
            Exception e = e1.getException();
            if (e instanceof NoSuchFieldException == false)
               throw new NestedRuntimeException(e);
         }
      }
   }
View Full Code Here

         throw (RuntimeException) t;
      if (t instanceof Error)
         throw (Error) t;
      if (t instanceof RollbackException)
         throw new IllegalStateException(context + " tx=" + tx + " marked for rollback.");
      throw new NestedRuntimeException(context + " tx=" + tx + " got unexpected error ", t);
   }
View Full Code Here

      {
         txSynchs.lock(tx);
      }
      catch (InterruptedException e)
      {
         throw new NestedRuntimeException("Unable to get synchronization", e);
      }
   }
View Full Code Here

    public static HandleDelegate getDelegate() {
        try {
            final InitialContext ctx = new InitialContext();
            return (HandleDelegate) ctx.lookup("java:comp/HandleDelegate");
        } catch (NamingException e) {
            throw new NestedRuntimeException(e);
        }
    }
View Full Code Here

      }
      catch (Exception e)
      {
         String error = "Unable to invoke setter method '" + setter + "' " + "on object '" + mcf + "'";
         if (e instanceof InvocationTargetException)
            throw new NestedRuntimeException(error, ((InvocationTargetException) e).getCause());
         else
            throw new NestedRuntimeException(error, e);
      }
      sendNotification(new Notification(MCF_ATTRIBUTE_CHANGED_NOTIFICATION, getServiceName(),
            getNextNotificationSequenceNumber()));
   }
View Full Code Here

      catch (Exception e)
      {
         String error = "Unable to invoke getter method '" + getter + "' " + "on object '" + mcf + "'";
         log.debug(error, e);
         if (e instanceof InvocationTargetException)
            throw new NestedRuntimeException(error, ((InvocationTargetException) e).getCause());
         else
            throw new NestedRuntimeException(error, e);
      }
   }
View Full Code Here

      {
         workManager.startWork(this);
      }
      catch (WorkException e)
      {
         taskRejected(new NestedRuntimeException(e));
         return;
      }
      try
      {
         work.run();
View Full Code Here

         {
            return getCM().getTimeLeftBeforeTransactionTimeout(errorRollback);
         }
         catch (ResourceException e)
         {
            throw new NestedRuntimeException("Unable to retrieve connection manager", e);
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.util.NestedRuntimeException

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.