Package org.jboss.forge.container.exception

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


            {
               throw e;
            }
            catch (Exception e)
            {
               throw new ContainerException(
                        "Failed during invocation of proxy method [" + delegate.getClass().getName() + "."
                                 + thisMethod.getName() + "()] in ClassLoader [" + loader + "]", e);
            }
         }
      };
View Full Code Here


            Future<Void> future = registry.getAddon(addonToDeploy).getFuture();
            future.get();
            Addon addon = registry.getAddon(addonToDeploy);
            if (addon.getStatus().isFailed())
            {
               ContainerException e = new ContainerException("Addon " + addonToDeploy + " failed to deploy.");
               deployment.deployedWithError(e);
               throw e;
            }
         }
         catch (Exception e)
View Full Code Here

         method.setAccessible(true);
         method.invoke(null);
      }
      catch (Exception e)
      {
         throw new ContainerException("Could not install Modules MBean server", e);
      }
   }
View Full Code Here

                        );
            }
         }
         catch (IOException e)
         {
            throw new ContainerException("Could not load resources from [" + file.getAbsolutePath() + "]", e);
         }
      }
   }
View Full Code Here

      {
         ModuleIdentifier moduleId = findCompatibleInstalledModule(dependency.getId());

         if (moduleId == null && !dependency.isOptional())
         {
            throw new ContainerException("Dependency [" + dependency + "] could not be loaded for addon [" + found
                     + "]");
         }
         else
         {
            builder.addDependency(DependencySpec.createModuleDependencySpec(
View Full Code Here

      public T get()
      {
         T instance = store.get(findParentModuleCl(getClassLoader()));
         if (instance == null)
         {
            throw new ContainerException("Singleton is not set in ClassLoader [" + getClassLoader() + "]");
         }
         return instance;
      }
View Full Code Here

               }
            }
         }
         catch (Exception e)
         {
            throw new ContainerException("Problems encountered during propagation of event [" + event
                     + "] with qualifiers [" + qualifiers + "]", e);
         }
      }
      else
      {
View Full Code Here

      {
         throw e;
      }
      catch (Exception e)
      {
         throw new ContainerException(e);
      }
      finally
      {
         lock.unlock();
      }
View Full Code Here

                                       .getPosition()];
                           }
                        }
                        else
                        {
                           throw new ContainerException(
                                    "Cannot handle producer for non-Field and non-Method member type: " + member);
                        }

                        return ExportedInstanceLazyLoader.create(
                                 BeanManagerUtils.getContextualInstance(manager, AddonRegistry.class),
View Full Code Here

               }
               return result;
            }
            catch (Exception e)
            {
               throw new ContainerException("Error while fetching exported instance", e);
            }
         }
      });
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.container.exception.ContainerException

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.