Package org.jboss.fresh.shell

Examples of org.jboss.fresh.shell.ShellIOException


      return list;
    } catch (EOFException ex) {
//log.debug(" --- Shell Impl --- readBuffer() EOFException caught...");
      if (p != null && p.getThrowable() != null) {
//log.debug(" --- Shell Impl --- readBuffer() throwing throwable...");
        throw new ShellIOException(p.getThrowable());
      } else {
//log.debug(" --- Shell Impl --- readBuffer() throwing EOFException...");
        throw ex;
      }
    } catch (IOException ex) {
      throw ex;
    } catch (Exception ex) {
//log.debug(" --- Shell Impl --- readBuffer() Exception caught...");
      log.error(ex.getMessage(), ex);
//log.debug("Throwing ShellException... " + ex.getMessage());
      throw new ShellIOException(ex);
    }
  }
View Full Code Here


      return obj;
      // This is not quite ok. We need Wrap exception to throw ...
    } catch (EOFException ex) {
      if (p.getThrowable() != null) {
        throw new ShellIOException(p.getThrowable());
      } else {
        throw ex;
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
//log.debug("Throwing ShellException... " + ex.getMessage());
      throw new ShellIOException(ex);
    }

  }
View Full Code Here

      }

      b.putBuffer(list, p.getIOTimeout());
    } catch (EOFException ex) {
      if (p.getThrowable() != null) {
        throw new ShellIOException(p.getThrowable());
      } else {
        throw ex;
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
//log.debug("Throwing ShellException... " + ex.getMessage());
      throw new ShellIOException(ex);
    }
  }
View Full Code Here

      if (!res) {
        throw new IOException("Timeout while trying to write in the buffer: " + b);
      }
    } catch (EOFException ex) {
      if (p.getThrowable() != null) {
        throw new ShellIOException(p.getThrowable());
      } else {
        throw ex;
      }
    } catch (Exception ex) {
      log.error(ex.getMessage(), ex);
//log.debug("Throwing ShellException... " + ex.getMessage());
      throw new ShellIOException(ex);
    }
  }
View Full Code Here

      log.debug("closing output " + b);
      // closeAndDiscard explicitly tells OutBuffer that nothing will
      // be read from it any more. Not even what it may still have inside.
      b.closeAndDiscard();
    } else {
      throw new ShellIOException(new ShellException("Wrong stream id: " + streamid));
    }
  }
View Full Code Here

      log.error("Error while executing read(" + id + ")", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellIOException(th);
      }
    }/* finally {
      TxSupport.assignUTForThread(sctx.getUserTransaction());
    }*/
  }
 
View Full Code Here

      log.error("Error while executing read(" + id + ")", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellIOException(th);
      }
    } /*finally {
      TxSupport.clearUTForThread();
    } */
  }
 
View Full Code Here

      log.error("Error while executing read(" + id + ")", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellIOException(th);
      }
    }/* finally {
      TxSupport.clearUTForThread();
    }*/
  }
 
View Full Code Here

      log.error("Error while executing read(" + id + ")", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellIOException(th);
      }
    } /*finally {
      TxSupport.clearUTForThread();
    }   */
  }
 
View Full Code Here

      log.error("Error while executing stream close (processId: " + id + ", streamId: " + streamid + ")", e);
      Throwable th = processThrowable(e);
      if (th instanceof RuntimeException) {
        throw  (RuntimeException) th;
      } else {
        throw new ShellIOException(th);
      }
    } finally {
      //TxSupport.clearUTForThread();
    }
  }
View Full Code Here

TOP

Related Classes of org.jboss.fresh.shell.ShellIOException

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.