Examples of failed()


Examples of com.opengamma.engine.depgraph.ResolvedValueCallback.ResolvedValueCallbackChain.failed()

        if (inputProducer != null) {
          inputProducer.addCallback(context, callback);
          inputProducer.release(context);
        } else {
          getTask().setRecursionDetected();
          callback.failed(context, inputRequirement, context.recursiveRequirement(inputRequirement));
        }
      }
      if (lock.decrementAndGet() == 0) {
        s_logger.debug("Additional requirements complete");
        return pushResult(context, substituteWorker, inputs, resolvedOutput, resolvedOutputs, lastWorkerResult);
View Full Code Here

Examples of com.scooterframework.common.validation.ValidationResults.failed()

     * @return List of error messages.
     */
    public static List<Message> getErrorMessages(ActiveRecord record) {
        if (record != null) {
            ValidationResults vr = record.getValidationResults();
            if (vr.failed()) {
                return vr.getErrorMessages();
            }
        }
        return null;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

                Config c = (Config) ((SecurityService) cce.getClassObject()).parent();
                boolean isDefault = iat.isIsDefault();
                if (isDefault) {
                    String trustId = checkIsDefault(c);
                    if (flag && (trustId != null)) {
                        result.failed(_strMgr.getString("DefaultTrustConfigExists", trustId));
                    }
                }
            }
            if (choice.equals(StaticTest.UPDATE)) {
                if (ConfigBean.toBoolean((String) cce.getObject())) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

                if (ConfigBean.toBoolean((String) cce.getObject())) {
                    final IdentityAssertionTrust iat = (IdentityAssertionTrust) cce.getClassObject();
                    final Config c = (Config) ((SecurityService) iat.parent()).parent();
                    String trustId = checkIsDefault(c);
                    if (flag) {
                        result.failed(_strMgr.getString("DefaultTrustConfigExists", trustId));
                    }
                }
            }
        } catch (Exception e) {
            _logger.log(Level.INFO, e.toString());
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

                Config c = (Config) ((SipService) cce.getClassObject()).parent();
                String addr = sl.getExternalSipAddress();
                String port = sl.getExternalSipPort();
                if (sl.getType().equals("internal")) {
                    if (addr != null || port != null) {
                        result.failed(_strMgr.getString("ExternalIsFalse"));
                    }
                }
            }
           if (choice.equals(StaticTest.UPDATE)) {
              if(ServerTags.EXTERNAL_SIP_ADDRESS.equals(cce.getName()) || ServerTags.EXTERNAL_SIP_PORT.equals(cce.getName())) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

           if (choice.equals(StaticTest.UPDATE)) {
              if(ServerTags.EXTERNAL_SIP_ADDRESS.equals(cce.getName()) || ServerTags.EXTERNAL_SIP_PORT.equals(cce.getName())) {
                    final SipListener sl = (SipListener) cce.getClassObject();
                    final Config c = (Config) ((SipService) sl.parent()).parent();
                    if (sl.getType().equals("internal")) {
                            result.failed(_strMgr.getString("ExternalIsFalse"));
                    }
              } 
           }
        } catch (Exception e) {
            _logger.log(Level.INFO, e.toString());
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

                                             // validation
        try{
            if(cce.getChoice().equals(StaticTest.UPDATE) || cce.getChoice().equals(StaticTest.DELETE)) {
           
                if(!getObjectType(cce).equals("user"))
                    result.failed(smh.getLocalString(getClass().getName()+".systemAppNotChangeable",
                                                     "System Application, Attribute Not Changeable"));
            }
        }
        catch (final ConfigException ce){
            _logger.log(Level.WARNING, "domainxmlverifier.exception", ce);
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

            try {
                Config config = (Config) ((HttpService) cce.getClassObject()).parent();
                if( config!=null ) {
                    boolean exists = checkVSExists(vsId, config);
                    if(!exists) {
                        result.failed(smh.getLocalString(getClass().getName() + ".virtualserverNotFound",
                                                         "Attribute(default-virtual-server={0}) : Virtual Server not found", new Object[]{vsId}));
                    } else if (h.isEnabled()){
                            // When the listener is enabled then the virtual
                            // server must be on.
                        if (! isVirtualServerOn(h, config, result)){
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.validation.Result.failed()

                                                         "Attribute(default-virtual-server={0}) : Virtual Server not found", new Object[]{vsId}));
                    } else if (h.isEnabled()){
                            // When the listener is enabled then the virtual
                            // server must be on.
                        if (! isVirtualServerOn(h, config, result)){
                            result.failed(smh.getLocalString(getClass().getName() + ".cannotAddVsNotOn",
                                                             "Cannot add this HttpListener \"{0}\" because it is enabled but its virtual server \"{1}\" has a state other than \"on\" ({2})",
                                                             new Object[]{h.getId(), vsId, getDefaultVirtualServer(vsId, config).getState()}));
                        }
                    }
                }
View Full Code Here

Examples of com.sun.enterprise.tools.verifier.Result.failed()

      } else {
        result.addErrorDetails(smh.getLocalString
            ("tests.componentNameConstructor",
             "For [ {0} ]",
             new Object[] {compName.toString()}));
        result.failed(smh.getLocalString(                       
              getClass().getName() + ".failed",
              "Error: The connection interface [ {0} ] does not implement the close() method",
              new Object[] {c.getName()} ));                               
      }
    }
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.