Examples of TransportException


Examples of org.infinispan.client.hotrod.exceptions.TransportException

            if (log.isTraceEnabled()) {
               log.trace("Offset: " + offset + ", len=" + len + ", size=" + size);
            }
            read = socket.getInputStream().read(result, offset, len);
         } catch (IOException e) {
            throw new TransportException(e);
         }
         if (read == -1) {
            throw new RuntimeException("End of stream reached!");
         }
         if (read + offset == size) {
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

      try {
         return (Transport) connectionPool.borrowObject(server);
      } catch (Exception e) {
         String message = "Could not fetch transport";
         log.error(message, e);
         throw new TransportException(message, e);
      } finally {
         logConnectionInfo(server);
      }
   }
View Full Code Here

Examples of org.openeai.transport.TransportException

      return theObject.create(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the create request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

      return theObject.update(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the update request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

      return theObject.delete(deleteAction, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the delete request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

      return theObject.query(keyObject, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the query request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }   
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

      return theObject.query(keyObject, this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the generate request for object " +
        theObject.getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }       
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

        XmlDocumentReader xmlReader = new XmlDocumentReader();
        responseDoc = xmlReader.initializeDocument(new ByteArrayInputStream(responseText.getBytes()), theObject.getValidation());
      }
       catch (XmlDocumentReaderException e) {
        logger.fatal("Error parsing Standard Response document.  Contents: " + responseText);
        throw new TransportException("Standard Response document is not valid!  Exception: " + e.getMessage(), e);
       }
    }
    catch (JMSException e) {
      throw new TransportException(e.getMessage(), e);
    }

    return responseDoc;
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

        }
      }
      catch (JMSException je) {
        logger.fatal("Error rolling transaction back or determining the transaction mode.");
        logger.fatal(je.getMessage(), je);
        throw new TransportException(je.getMessage(), je);
      }
    }
    catch (Exception e) {
      logger.fatal("Unknown exception occurred while attempting to publish the message.  Exception: " + e.getMessage());
      logger.fatal(e.getMessage(), e);
      TextMessage tMsg = (TextMessage)outMessage;
      try {
        logger.fatal("Message contents: \n" + tMsg.getText());
      }
      catch (JMSException je2) { }
      throw new TransportException(e.getMessage(), e);
    }
    return true;
  }
View Full Code Here

Examples of org.openeai.transport.TransportException

      theObject.createSync(this);
    }
    catch (Exception e) {
      String errMessage = "Error processing the create sync for object " +
        getClass().getName() + "  Exception: " + e.getMessage();
      throw new TransportException(errMessage, e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.