Package com.espertech.esper.client

Examples of com.espertech.esper.client.EPException


    {
        if (!groupView.hasViews())
        {
            String message = "Unexpected empty list of child nodes for group view";
            log.fatal(".copySubViews " + message);
            throw new EPException(message);
        }

        Object subviewHolder;
        if (groupView.getViews().length == 1) {
            subviewHolder = copyChildView(groupView, propertyNames, groupByValues, agentInstanceContext, groupView.getViews()[0]);
View Full Code Here


    private static View copyChildView(GroupByView groupView, String[] propertyNames, Object groupByValues, AgentInstanceViewFactoryChainContext agentInstanceContext, View originalChildView) {
        if (originalChildView instanceof MergeView)
        {
            String message = "Unexpected merge view as child of group-by view";
            log.fatal(".copySubViews " + message);
            throw new EPException(message);
        }

        if (!(originalChildView instanceof CloneableView))
        {
            throw new EPException("Unexpected error copying subview " + originalChildView.getClass().getName());
        }
        CloneableView cloneableView = (CloneableView) originalChildView;

        // Copy child node
        View copyChildView = cloneableView.cloneView();
View Full Code Here

                }
            }

            if (!(subView instanceof CloneableView))
            {
                throw new EPException("Unexpected error copying subview");
            }
            CloneableView cloneableView = (CloneableView) subView;
            View copiedChild = cloneableView.cloneView();
            copyView.addView(copiedChild);
View Full Code Here

            builder = factory.newDocumentBuilder();
            document = builder.parse(new InputSource(new StringReader(string)));
        }
        catch (ParserConfigurationException ex)
        {
            throw new EPException("Could not get a DOM parser configuration", ex);
        }
        catch (SAXException ex)
        {
            throw new EPException("Could not parse configuration", ex);
        }
        catch (IOException ex)
        {
            throw new EPException("Could not read configuration", ex);
        }

        return parse(document);
    }
View Full Code Here

        {
            namedNode = (OMElement)node;
        }
        else
        {
            throw new EPException("Unexpected AXIOM node of type '" + node.getClass() + "' encountered, please supply a Document or Element node");
        }

        String rootElementNameRequired = eventType.getConfig().getRootElementName();
        String rootElementNameFound = namedNode.getLocalName();
        if (!rootElementNameFound.equals(rootElementNameRequired))
        {
            throw new EPException("Unexpected root element name '" + rootElementNameFound + "' encountered, expected '" + rootElementNameRequired + "'");
        }

        if (isRoute)
        {
            runtimeEventSender.routeEventBean(new AxiomEventBean(namedNode, eventType));
View Full Code Here

      {
        return file.toURL().openStream();
      }
      catch (IOException e)
      {
        throw new EPException(e);
      }
    }
    if(url != null)
    {
      try
      {
        return url.openStream();
      }
      catch (IOException e)
      {
        throw new EPException(e);
      }
    }
    else
    {
      return resolvePathAsStream(classpathResource);
View Full Code Here

      }
      if ( stream == null ) {
        stream = CSVReader.class.getClassLoader().getResourceAsStream( path );
      }
      if ( stream == null ) {
        throw new EPException( path + " not found" );
      }

      return stream;
    }
View Full Code Here

      }
      // this method silently ignores read only properties on the dest bean but we should
      // have caught them in CSVInputAdapter.constructPropertyTypes.
      BeanUtils.copyProperties(beanToSend, mapToSend);
    } catch (Exception e) {
      throw new EPException("Cannot populate bean instance", e);
    }
  }
View Full Code Here

        {
            log.debug(".start");
        }
        if(runtime == null)
    {
      throw new EPException("Attempting to start an Adapter that hasn't had the epService provided");
    }
    startTime = getCurrentTime();
    if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled()))
        {
            log.debug(".start startTime==" + startTime);
View Full Code Here

      {
        Thread.sleep(sleepTime);
      }
      catch (InterruptedException ex)
      {
        throw new EPException(ex);
      }
      return true;
    }
  }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.EPException

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.