Examples of OperationNotFoundException


Examples of com.volantis.map.operation.OperationNotFoundException

            // todo: delegate to the Operation Engine here, which does exactly the same
            ServiceReference[] references =
                context.getBundleContext().getServiceReferences(
                    Operation.class.getName(), "(operationType=ics)");
            if (null == references || references.length < 1) {
                throw new OperationNotFoundException(
                    "operation-type-not-found",
                    descriptor.getResourceType());
            } else {
                Result result = Result.UNSUPPORTED;
                for (int i=0; i< references.length &&
                    result == Result.UNSUPPORTED; i++) {

                    ServiceReference ref = references[i];
                    Object service =
                        context.getBundleContext().getService(ref);
                    if (null == service) {
                        Object[] params = new Object[] {
                            ref.getProperty("service.pid"),
                            ref.getBundle().getSymbolicName()
                        };
                        LOGGER.error("service-has-been-unregistered", params);
                    } else {
                        Operation operation =
                            (Operation) service;
                        result  = operation.execute(
                            descriptor, request, response);
                    }
                }
                if (result == Result.UNSUPPORTED) {
                    throw new OperationNotFoundException(
                        "no-plugin-available",
                            new String[] { descriptor.getExternalID(), descriptor.getResourceType() });
                }
            }
        } catch (OperationNotFoundException x) {
View Full Code Here

Examples of com.volantis.map.operation.OperationNotFoundException

            ServiceReference[] references =
                context.getBundleContext().getServiceReferences(
                    Operation.class.getName(), null);
            if (null == references || references.length < 1) {
                throw new OperationNotFoundException(
                    "operation-type-not-found",
                    localDescriptor.getResourceType());
            } else {
                Result result = Result.UNSUPPORTED;
                for (int i=0; i< references.length &&
                    result == Result.UNSUPPORTED; i++) {

                    ServiceReference ref = references[i];
                    Object service =
                        context.getBundleContext().getService(ref);
                    if (null == service) {
                        Object[] params = new Object[] {
                            ref.getProperty("service.pid"),
                            ref.getBundle().getSymbolicName()
                        };
                        LOGGER.error("service-has-been-unregistered", params);
                    } else {
                        Operation operation =
                            (Operation) service;
                        result  = operation.execute(
                            localDescriptor, request, response);
                    }
                }
                if (result == Result.UNSUPPORTED) {
                    throw new OperationNotFoundException(
                            "no-plugin-available",
                                new String[] { localDescriptor.getExternalID(),
                                        localDescriptor.getResourceType() });
                }
            }

        } catch (InvalidSyntaxException e) {
            // this can never happen as we don't use a filter.
            throw new OperationNotFoundException(
                "syntax-error-in-filter", null, e);
        }
    }
View Full Code Here

Examples of org.jresearch.flexess.client.OperationNotFoundException

  @Override
  public boolean check(List<EObject> roleInstances, EObject object, String operation) throws OperationNotFoundException {
    POperation po = operationMatcher.findOperation((PObject) object.eClass(), operation);
    if (po == null) {
      throw new OperationNotFoundException(MessageFormat.format("Operation {0} can''t be found.", operation), operation);
    }
    return policyEvaluator.evaluate(roleInstances, object, po);
  }
View Full Code Here

Examples of org.opengis.coverage.processing.OperationNotFoundException

        OperationDescriptor operation = (OperationDescriptor) registry.getDescriptor(RENDERED_MODE, name);
        if (operation != null) {
            return operation;
        }
       
        throw new OperationNotFoundException(Errors.format(ErrorKeys.OPERATION_NOT_FOUND_$1, name));
    }
View Full Code Here

Examples of org.opengis.coverage.processing.OperationNotFoundException

          }
          final Operation operation = operations.get(name);
          if (operation != null) {
              return operation;
          }
          throw new OperationNotFoundException(Errors.getResources(getLocale()).getString(
                  ErrorKeys.OPERATION_NOT_FOUND_$1, name));
      }
    }
View Full Code Here

Examples of org.opengis.coverage.processing.OperationNotFoundException

       */
      final AbstractOperation op;
      try {
          op = (AbstractOperation) operation;
      } catch (ClassCastException cause) {
          final OperationNotFoundException exception = new OperationNotFoundException(
                      Errors.getResources(getLocale()).getString(
                      ErrorKeys.OPERATION_NOT_FOUND_$1, operationName));
          exception.initCause(cause);
          throw exception;
      }
     
      //set up hints
      final Hints localMergeHints=this.hints.clone();
View Full Code Here

Examples of org.opengis.referencing.operation.OperationNotFoundException

    transformer = new GeometryCoordinateSequenceTransformer(csTransformer);
    MathTransform mathTransform;
    try {
      mathTransform = CRS.findMathTransform(geomCrs, reprojectCrs, true);
    } catch (FactoryException e) {
      throw new OperationNotFoundException(e.getMessage());
    }

    transformer.setMathTransform(mathTransform);

    return transformer;
View Full Code Here

Examples of org.reficio.ws.server.OperationNotFoundException

            invokedOperation = getOperationByInputNames(rootNodes);
            if (invokedOperation != null) {
                return invokedOperation;
            }
        }
        throw new OperationNotFoundException("Cannot match a SOAP operation to the given SOAP request");
    }
View Full Code Here

Examples of org.reficio.ws.server.OperationNotFoundException

    }

    private BindingOperation getOperationByRootQName(Set<Node> rootNodes) throws OperationNotFoundException {
        // check if only one root node exists
        if (rootNodes.isEmpty() || rootNodes.size() > 1) {
            throw new OperationNotFoundException("No unique top-level node containing the operation name in the rpc request.");
        }
        QName root = XmlUtils.nodeToQName(rootNodes.iterator().next());
        return matchElementNameToOperationName(root);
    }
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.