Package org.teiid.core

Examples of org.teiid.core.TeiidComponentException


                    FrameUtil.replaceWithNullNode(critNode);
                    pushRaiseNull = true;
                }
            //none of the following exceptions should ever occur
            } catch(BlockedException e) {
                throw new TeiidComponentException(e);
            } catch (ExpressionEvaluationException e) {
                throw new TeiidComponentException(e);
            }
        }
       
        if (pushRaiseNull) {
            rules.push(RuleConstants.RAISE_NULL);
View Full Code Here


  public void assertIdentity(SessionToken checkSession) throws InvalidSessionException, TeiidComponentException {
    SessionMetadata sessionInfo = null;
    try {
      sessionInfo = this.service.validateSession(checkSession.getSessionID());
    } catch (SessionServiceException e) {
      throw new TeiidComponentException(e);
    }
   
    if (sessionInfo == null) {
      throw new InvalidSessionException();
    }
View Full Code Here

  public <T> T getService(final Class<T> iface) {
    return iface.cast(Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class[] {iface}, new InvocationHandler() {

      public Object invoke(Object arg0, final Method arg1, final Object[] arg2) throws Throwable {
        if (shutdown) {
          throw ExceptionUtil.convertException(arg1, new TeiidComponentException(RuntimePlugin.Util.getString("LocalTransportHandler.Transport_shutdown"))); //$NON-NLS-1$
        }
        try {
          if (passthrough && !arg1.getDeclaringClass().equals(ILogon.class)) {
            // check to make sure the current security context same as logged one
            if (!csr.getSecurityHelper().sameSubject(workContext.getSession().getSecurityDomain(), workContext.getSession().getSecurityContext(), workContext.getSubject())) {
View Full Code Here

                                Command command,
                                String modelName,
                                String connectorBindingId, int nodeID, int limit) throws TeiidComponentException {
       
        if(modelName != null && validModels != null && ! validModels.contains(modelName)) {
            throw new TeiidComponentException("Detected query against invalid model: " + modelName + ": " + command)//$NON-NLS-1$//$NON-NLS-2$
        }
        this.commandHistory.add(command);
       
        List projectedSymbols = command.getProjectedSymbols();

        String commandString = null;
        if (lbf == null) {
          commandString = command.toString();
        } else {
          commandString = lbf.translate(command).toString();
        }
       
        List[] rows = data.get(commandString);
        if(rows == null) {
            if (mustRegisterCommands) {
                throw new TeiidComponentException("Unknown command: " + commandString)//$NON-NLS-1$
            }
            // Create one row of nulls
            rows = new List[1];
            rows[0] = new ArrayList();
           
View Full Code Here

        BufferManager bufferMgr = BufferManagerFactory.getStandaloneBufferManager();
        CommandContext context = new CommandContext("pID", null, null, null, 1);                                 //$NON-NLS-1$
        QueryProcessor processor = new QueryProcessor(plan, context, bufferMgr, dataMgr);
        processor.setNonBlocking(true);
        BatchCollector collector = processor.createBatchCollector();
        TeiidComponentException failOnDefaultException = null;
        try{
            collector.collectTuples();
        } catch (TeiidComponentException e){
            failOnDefaultException = e;
        }
View Full Code Here

        try {
            if(! CapabilitiesUtil.supportsAggregateFunction(modelID, obj, metadata, capFinder)) {
                markInvalid(obj, "Aggregate function pushdown not supported by source"); //$NON-NLS-1$
            }        
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

       
        // Check capabilities of the elements
        try {
            checkElementsAreSearchable(obj, SupportConstants.Element.SEARCHABLE_COMPARE);                               
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

            }
            if (! CapabilitiesUtil.supportsScalarFunction(modelID, obj, metadata, capFinder)) {
                markInvalid(obj, (obj.isImplicit()?"(implicit) ":"") + obj.getName() + " function not supported by source"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            }
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

        // Check capabilities of the elements
        try {
            checkElementsAreSearchable(obj, SupportConstants.Element.SEARCHABLE_LIKE);
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

            if (maxSize > 0 && crit.getValues().size() > maxSize) {
                markInvalid(crit, "SetCriteria size exceeds maximum for source"); //$NON-NLS-1$
                return;
            }
        } catch(QueryMetadataException e) {
            handleException(new TeiidComponentException(e));
        } catch(TeiidComponentException e) {
            handleException(e);           
        }
    }
View Full Code Here

TOP

Related Classes of org.teiid.core.TeiidComponentException

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.