Examples of ContainerException


Examples of ca.nengo.ui.models.NodeContainer.ContainerException

         
          Node node;
          try {
            node = getModel().clone();
          } catch (CloneNotSupportedException e) {
            throw new ContainerException("Could not clone node: " + e.getMessage());
          }
          Point2D newPosition = localToGlobal(new Point2D.Double(0, 0));
          newPosition = wo.globalToLocal(newPosition);
          newPosition = nodeContainer.localToView(newPosition);
View Full Code Here

Examples of com.nokia.dempsy.container.ContainerException

      {
         invocationMethods = new AnnotatedMethodInvoker(mpClass, MessageHandler.class);
      }
      catch(IllegalArgumentException ex)
      {
         throw new ContainerException(ex.getMessage());
      }
      Set<Class<?>> keys = invocationMethods.getMethods().keySet();
      for(Class<?> key: keys)
      {
         Method messageKey = AnnotatedMethodInvoker.introspectAnnotationSingle(key, MessageKey.class);
View Full Code Here

Examples of com.nokia.dempsy.container.ContainerException

    */
   public Object invoke(Object instance, Object message, StatsCollector statsCollector) throws ContainerException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
   {
      Class<?> messageClass = message.getClass();
      if(!isMessageSupported(message))
         throw new ContainerException(mpClassName + ": no handler for messages of type: " + messageClass.getName());

      StatsCollector.TimerContext tctx = null;
      try
      {
         tctx = statsCollector.handleMessageStarted();
View Full Code Here

Examples of com.nokia.dempsy.container.ContainerException

   //----------------------------------------------------------------------------

   private void validateAsMP() throws ContainerException
   {
      if(mpClass.getAnnotation(MessageProcessor.class) == null)
         throw new ContainerException("MP class not annotated as MessageProcessor: " + mpClassName);
   }
View Full Code Here

Examples of com.nokia.dempsy.container.ContainerException

         // we do *NOT* allow inherited implementation
         return mpClass.getDeclaredMethod("clone");
      }
      catch(SecurityException e)
      {
         throw new ContainerException("container does not have access to the message processor class \"" + mpClassName + "\"", e);
      }
      catch(NoSuchMethodException e)
      {
         throw new ContainerException("The message processor class \"" + mpClassName + "\" does not declare the clone() method.");
      }
   }
View Full Code Here

Examples of com.sun.jersey.api.container.ContainerException

        message += " [status: " + status.getFamily() + " reason: " + status.getReasonPhrase() +"]";
          log.warning(message);
      } else {
        message += " [status: " + status.getFamily() + " reason: " + status.getReasonPhrase() +"]";
        log.severe(message);
        throw new ContainerException(message);
      }
   
      return responseMap;
    }
View Full Code Here

Examples of org.exoplatform.container.spi.ContainerException

         for (int i = 0; i < foundClasses.length; i++)
         {
            ComponentAdapter<T> componentAdapter = found.get(i);
            foundClasses[i] = componentAdapter.getComponentImplementation();
         }
         throw new ContainerException("Several ComponentAdapter found for " + componentType);
      }
   }
View Full Code Here

Examples of org.exoplatform.container.spi.ContainerException

         security.checkPermission(ContainerPermissions.MANAGE_COMPONENT_PERMISSION);

      Object componentKey = componentAdapter.getComponentKey();
      if (componentKeyToAdapterCache.putIfAbsent(componentKey, componentAdapter) != null)
      {
         throw new ContainerException("Key " + componentKey + " duplicated");
      }
      componentAdapters.add(componentAdapter);
      return componentAdapter;
   }
View Full Code Here

Examples of org.exoplatform.container.spi.ContainerException

         pc.registerComponentInstance(contrivedKey, contrivedComp);
         try
         {
            if (getComponentInstance(contrivedKey, Object.class) != null)
            {
               throw new ContainerException(
                  "Cannot register a container to itself. The container is already implicitly registered.");
            }
         }
         finally
         {
View Full Code Here

Examples of org.glassfish.jersey.server.ContainerException

            final PersistenceUnit annotation = injectee.getParent().getAnnotation(PersistenceUnit.class);
            final String unitName = annotation.unitName();

            if (!persistenceUnits.containsKey(unitName)) {
                throw new ContainerException(LocalizationMessages.PERSISTENCE_UNIT_NOT_CONFIGURED(unitName));
            }

            return Proxy.newProxyInstance(
                    this.getClass().getClassLoader(),
                    new Class[]{EntityManagerFactory.class},
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.