Examples of ContainerException


Examples of org.jboss.forge.container.exception.ContainerException

            Thread.sleep(10);
         }
      }
      catch (Exception e)
      {
         throw new ContainerException("Addon [" + addon + "]  was not started.", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

            Thread.sleep(10);
         }
      }
      catch (Exception e)
      {
         throw new ContainerException("Addon [" + addon + "] was not stopped.", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

      {
         throw re;
      }
      catch (Exception e)
      {
         throw new ContainerException("Addon [" + addon + "] was not started.", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

      {
         throw re;
      }
      catch (Exception e)
      {
         throw new ContainerException("Addon [" + addon + "] was not stopped.", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

      {
         throw e;
      }
      catch (Exception e)
      {
         throw new ContainerException("Error invoking Task within ClassLoader [" + loader + "]", e);
      }
      finally
      {
         SecurityActions.setContextClassLoader(original);
         if (log.isLoggable(Level.FINE))
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

      {
         return loader.loadClass(typeName);
      }
      catch (ClassNotFoundException e)
      {
         throw new ContainerException(e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.container.exception.ContainerException

      {
         return loader.loadClass(type.getName());
      }
      catch (ClassNotFoundException e)
      {
         throw new ContainerException(e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.furnace.exception.ContainerException

   public Object invoke(final Object self, final Method thisMethod, final Method proceed, final Object[] args)
            throws Throwable
   {
      if (Thread.currentThread().isInterrupted())
      {
         throw new ContainerException("Thread.interrupt() requested.");
      }

      Callable<Object> task = new Callable<Object>()
      {
         @Override
         public Object call() throws Exception
         {
            try
            {
               if (thisMethod.getDeclaringClass().getName().equals(ForgeProxy.class.getName()))
               {
                  if (thisMethod.getName().equals("getDelegate"))
                     return ClassLoaderInterceptor.this.getDelegate();
                  if (thisMethod.getName().equals("getHandler"))
                     return ClassLoaderInterceptor.this.getHandler();
               }
            }
            catch (Exception e)
            {
            }

            ClassLoader previousLoader = null;
            Object result;
            try
            {
               previousLoader = setCurrentLoader(loader);

               if (thisMethod.equals(EQUALS_METHOD))
               {
                  Object object = args[0];
                  Object unwrapped = Proxies.unwrap(object);
                  args[0] = unwrapped;
               }

               result = thisMethod.invoke(delegate, args);
            }
            catch (InvocationTargetException e)
            {
               if (e.getCause() instanceof Exception)
                  throw (Exception) e.getCause();
               throw e;
            }
            finally
            {
               setCurrentLoader(previousLoader);
            }
            return result;
         }
      };

      Object result = ClassLoaders.executeIn(loader, task);

      if (Thread.currentThread().isInterrupted())
      {
         throw new ContainerException("Thread.interrupt() requested.");
      }

      return result;
   }
View Full Code Here

Examples of org.jboss.forge.furnace.exception.ContainerException

      {
         return loader.loadClass(typeName);
      }
      catch (ClassNotFoundException | LinkageError e)
      {
         throw new ContainerException("Could not locate class [" + typeName + "] in Loader [" + loader + "]", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.furnace.exception.ContainerException

      {
         return loader.loadClass(type.getName());
      }
      catch (ClassNotFoundException | LinkageError e)
      {
         throw new ContainerException("Could not locate class [" + type.getName() + "] in Loader [" + loader + "]", e);
      }
   }
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.