Package org.apache.uima.aae.error

Examples of org.apache.uima.aae.error.InvalidMessageException


        if (handler != null) {
          handler.handle(messageContext);
        }
      } else {
        if (!isStaleMessage(aMessage)) {
          controller.getErrorHandlerChain().handle(new InvalidMessageException(),
                  HandlerBase.populateErrorContext(messageContext), controller);
        }
      }

    } catch (Throwable t) {
View Full Code Here


      catch ( Exception e)
      {
        throw new AsynchAEException(e);
      }
    }
    throw new AsynchAEException(new InvalidMessageException("Unable to produce Message Object"));
  }
View Full Code Here

          handler.handle( messageContext );
        }
      }
      else
      {
        controller.getErrorHandlerChain().handle(new InvalidMessageException(), HandlerBase.populateErrorContext( messageContext ), controller);     
      }
   
    }
    catch( Throwable t)
    {
View Full Code Here

    {
      payload = ((Integer) message.getIntProperty(AsynchAEMessage.Payload)).intValue();
    }
    else
    {
      throw new InvalidMessageException("Message Does not Contain Payload property");
    }

    return ( AsynchAEMessage.Exception == payload ? true : false);
  }
View Full Code Here

          UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(),
                      "handleProcessRequestWithXMI", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_message_has_no_cargo__INFO",
                      new Object[] { aMessageContext.getEndpoint().getEndpoint() });
          getController().
            getOutputChannel().
              sendReply(new InvalidMessageException("No XMI data in message"), casReferenceId, aMessageContext.getEndpoint(),AsynchAEMessage.Process);
          //  Dont process this empty message
          return;
        }
       
        UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINEST, CLASS_NAME.getName(),
View Full Code Here

          UIMAFramework.getLogger(CLASS_NAME).logrb(Level.INFO, CLASS_NAME.getName(),
                      "handleProcessRequestWithXCAS", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_message_has_no_cargo__INFO",
                      new Object[] { aMessageContext.getEndpoint().getEndpoint() });
          getController().
            getOutputChannel().
              sendReply(new InvalidMessageException("No XMI data in message"), casReferenceId, aMessageContext.getEndpoint(),AsynchAEMessage.Process);
          //  Dont process this empty message
          return;
        }
       
        UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINE, CLASS_NAME.getName(),
View Full Code Here

                    "handleProcessRequestWithCASReference", UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_message_has_cas_refid__INFO",
                    new Object[] { aMessageContext.getEndpoint().getEndpoint() });
       
        getController().
          getOutputChannel().
            sendReply(new InvalidMessageException("No Cas Reference Id Received From Delegate In message"), null, aMessageContext.getEndpoint(),AsynchAEMessage.Process);
        //  Dont process this empty message
        return;

      }
//      Endpoint replyToEndpoint = aMessageContext.getEndpoint();
View Full Code Here

  private boolean isException(Message message) throws Exception {
    int payload;
    if (message.propertyExists(AsynchAEMessage.Payload)) {
      payload = ((Integer) message.getIntProperty(AsynchAEMessage.Payload)).intValue();
    } else {
      throw new InvalidMessageException("Message Does not Contain Payload property");
    }

    return (AsynchAEMessage.Exception == payload ? true : false);
  }
View Full Code Here

              throw ex;
            }
          } catch (Exception e) {
            throw new AsynchAEException(e);
        }
        throw new AsynchAEException(new InvalidMessageException("Unable to produce Message Object"));
  }
  }
View Full Code Here

            } catch (Exception e) {
              throw new AsynchAEException(e);
            }
          }
          throw new AsynchAEException(
                  new InvalidMessageException("Unable to produce BytesMessage Object"));
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.aae.error.InvalidMessageException

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.