Package it.eng.spagobi.utilities.engines

Examples of it.eng.spagobi.utilities.engines.SpagoBIEngineServiceException


      try {
        query = SerializerFactory.getDeserializer("application/json").deserializeQuery(jsonEncodedQuery, getEngineInstance().getDataSource());
        //query = QueryEncoder.decode(queryRecords, queryFilters, queryFilterExp, getDatamartModel());
      } catch (SerializationException e) {
        String message = "Impossible to decode query string comming from client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
      Query queryBkp = getEngineInstance().getActiveQuery();
      query.setId( queryBkp.getId() );
      getEngineInstance().setActiveQuery(query);
      result = saveAnalysisState();
      getEngineInstance().setActiveQuery(queryBkp);
     
      if(!result.trim().toLowerCase().startsWith("ok")) {
        throw new SpagoBIEngineServiceException(getActionName(), result);
      }
     
      try {
        writeBackToClient( new JSONSuccess( result ) );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
    } catch(Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
View Full Code Here


          getEngineInstance().resetActiveQuery();
        }       
       
      } catch (SerializationException e) {
        String message = "Impossible to syncronize the query with the server. Query passed by the client is malformed";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
   
    } catch(Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
View Full Code Here

      Collection errors = errorHandler.getErrors();
      Iterator it = errors.iterator();
      while (it.hasNext()) {
        EMFAbstractError error = (EMFAbstractError) it.next();
        if (error.getSeverity().equals(EMFErrorSeverity.ERROR)) {
          throw new SpagoBIEngineServiceException(getActionName(), error.getMessage(), null);
        }
      }
    }
  }
View Full Code Here

     
      try {
        writeBackToClient( new JSONSuccess(nodeJSON) );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
    } catch(Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
View Full Code Here

        try {
          //statement.execute(0, 1, 1, true);
          logger.debug("Query [" + query.getName() + "] validated sucesfully");
        } catch (Throwable t) {
          logger.debug("Query [" + query.getName() + "] is not valid");
          throw new SpagoBIEngineServiceException(getActionName(), "Query [" + query.getName() + "] is not valid", t);
        }
      }
     
      try {
        writeBackToClient( new JSONAcknowledge() );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
    } catch(Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
      logger.debug("OUT");
View Full Code Here

   
    try {
      writeBackToClient(new JSONAcknowledge())
    } catch (IOException e) {
      String message = "Impossible to write back the responce to the client";
      throw new SpagoBIEngineServiceException(getActionName(), message, e);
    }
  }
View Full Code Here

        } else {
          writeBackToClient( new JSONSuccess( array, callback ));
        }
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
    } catch (Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
View Full Code Here

     
      try {
        results = new JSONObject();
        results.put("fields", serialize(selectFields));
      } catch(Throwable t) {
        throw new SpagoBIEngineServiceException(getActionName(), "Impossible to serialize selected fields list", t);
      }
     
      try {
        writeBackToClient( new JSONSuccess(results) );
      } catch (IOException e) {
        throw new SpagoBIEngineServiceException(getActionName(), "Impossible to write back the responce to the client", e);
      }
     
    }  finally {
      logger.debug("OUT");
    }   
View Full Code Here

        JSONObject selectFieldJSON = new JSONObject();
        try {
          selectFieldJSON.put("name", dataMartSelectField.getUniqueName());
          selectFieldJSON.put("alias", dataMartSelectField.getAlias());
        } catch (JSONException e) {
          throw new SpagoBIEngineServiceException(getActionName(), "An error occurred while serializing field [" + dataMartSelectField.getUniqueName() + " - " + dataMartSelectField.getAlias() +"]", e);
        }
        selectedFieldsJSON.put(selectFieldJSON);
      }
    }
   
View Full Code Here

     
      try {
        writeBackToClient( new JSONSuccess(toReturn) );
      } catch (IOException e) {
        String message = "Impossible to write back the responce to the client";
        throw new SpagoBIEngineServiceException(getActionName(), message, e);
      }
     
    } catch (Throwable t) {
      throw SpagoBIEngineServiceExceptionHandler.getInstance().getWrappedException(getActionName(), getEngineInstance(), t);
    } finally {
View Full Code Here

TOP

Related Classes of it.eng.spagobi.utilities.engines.SpagoBIEngineServiceException

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.