Package org.wso2.carbon.dataservices.core

Examples of org.wso2.carbon.dataservices.core.DataServiceFault


        }
     
      /* no data is pre-fetched for static elements */
      return null;
    } catch (XMLStreamException e) {
      throw new DataServiceFault(e, "Error in XML generation at StaticOutputElement.execute");
    }
  }
View Full Code Here


                        return new ExternalParam(this.getName(),new ParamValue(
                                udtAttributes[i].toString()), this.getParamType());
                    }
                }
            } catch (SQLException e) {
                throw new DataServiceFault(e, "Error while extracting UDT attribute values");
            }
        }
        return params.getParam(this.getParamType(), this.getParam());
    }
View Full Code Here

        try {
            TransactionManager txManager = DBUtils.getContainerTransactionManager(
                    this.getContainerUserTransactionName());
            this.txManager = new DSSXATransactionManager(txManager);
        } catch (Exception e) {
            throw new DataServiceFault(e, "Cannot create XA transaction manager");
        }
    }
View Full Code Here

                if (this.isEnableXA()) {
                    this.getDSSTxManager().rollback();
                } else {
                    TLConnectionStore.rollbackAllAndClose();
                }
                throw new DataServiceFault(e, "Error in ending transaction");
            }
        } else if (activeNestedTransactions.get() < 0) {
            activeNestedTransactions.set(0);
        }
    }
View Full Code Here

                if (owner != null && owner.equals(this.getName())) {
                    eventBroker.unsubscribe(subs.getId());
                }
            }
        } catch (EventBrokerException e) {
            throw new DataServiceFault(e);
        }
    }
View Full Code Here

                    this.extractParams(params), prefetchData, prefetchedData);
        } catch (DataServiceFault e) {
            this.fillInDataServiceFault(e, requestName, params);
            throw e;
        } catch (Exception e) {
            DataServiceFault dsf = new DataServiceFault(e);
            this.fillInDataServiceFault(dsf, requestName, params);
            log.error(dsf.getFullMessage(), e);
            throw dsf;
        }
    }
View Full Code Here

  }
 
  public void init() throws DataServiceFault {
    this.query = this.getDataService().getQuery(this.getQueryId());
    if (this.query == null) {
      throw new DataServiceFault(
          "Query with the query id: '" + this.getQueryId() + "' cannot be found");
    }
  }
View Full Code Here

          subEl = subElItr.next();
          endpointUrls.add(subEl.getText());
        }
        return new XPathEventTrigger(dataService, id, expression, targetTopic, endpointUrls);
    } catch (Exception e) {
      throw new DataServiceFault(e, "Error in create XPathEventTrigger");
    }
  }
View Full Code Here

        paramObj = params.getParam(paramName);
      }
      if (paramObj != null) {
          qparams.put(withParam.getName(), paramObj.getValue());
      } else {
        throw new DataServiceFault(FaultCodes.INCOMPATIBLE_PARAMETERS_ERROR,
            "Error in 'CallQuery.extractParams', cannot find parameter with type:" +
            paramType + " name:" + withParam.getOriginalName());
      }
    }
    Set<ExternalParam> remainingEntries = new HashSet<ExternalParam>(params.getEntries().values());
View Full Code Here

    private void validateWithParam() throws DataServiceFault {
      /* validate name, should be an NCName */
      if (DBSFields.QUERY_PARAM.equals(this.getParamType()) &&
          !NCName.isValid(this.getParam())) {
        throw new DataServiceFault("Invalid query param name: '" + this.getParam() +
            "', must be an NCName.");
      }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.dataservices.core.DataServiceFault

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.