Package javax.jms

Examples of javax.jms.MessageEOFException


    try {
      return inputStream.readUTF();
    } catch (Exception e) {
      JMSException jE = null;
      if (e instanceof EOFException)
        jE = new MessageEOFException("Unexpected end of bytes array.");
      else if (e instanceof IOException)
        jE = new JMSException("Could not read the bytes array.");
      jE.setLinkedException(e);
      throw jE;
    }
View Full Code Here


   private final void resetDataStream() throws JMSException {
      try {
         this.dataIs.reset();
      }
      catch (IOException ex) {
         throw new MessageEOFException(ME + ".resetDataStream: " + ex.getMessage(),
               ErrorCode.RESOURCE_UNAVAILABLE.getErrorCode());
      }
     
   }
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readBoolean();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readBoolean: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readBoolean: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readByte();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readByte: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readByte: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readUnsignedByte();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readUnsignedByte: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readUnsignedByte: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readShort();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readShort: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readShort: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readUnsignedShort();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readUnsignedShort: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readUnsignedShort: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readChar();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readChar: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readChar: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readInt();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readInt: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readInt: " + ex.getMessage(),
View Full Code Here

      try {
         this.dataIs.mark(10);
         return this.dataIs.readLong();
      }
      catch (EOFException ex) {
         throw new MessageEOFException(ME + ".readLong: " + ex.getMessage(),
               ErrorCode.USER_MESSAGE_INVALID.getErrorCode());
      }
      catch (IOException ex) {
         resetDataStream();
         throw new JMSException(ME + ".readLong: " + ex.getMessage(),
View Full Code Here

TOP

Related Classes of javax.jms.MessageEOFException

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.