Examples of IoException


Examples of br.net.woodstock.rockframework.io.IOException

    super();
    try {
      InputStream inputStream = ClassLoaderUtils.getResourceAsStream(EHCacheManagerImpl.CACHE_FILE);
      this.manager = net.sf.ehcache.CacheManager.create(inputStream);
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
View Full Code Here

Examples of com.sun.star.io.IOException

    *  <li>exception occured because of component is readonly
    *  and wasn't stored</li>
    * </ol>
    */
    public void _store() {
        IOException ioE = null;

        try {
            oObj.store();
            stored = true;
        } catch (IOException e) {
            stored = false;
            ioE = e;
        }
        if (oObj.hasLocation() && !oObj.isReadonly()) {
            tRes.tested("store()", stored);
            if (!stored) {
                log.println("Couldn't store : " + ioE.getMessage());
                ioE.printStackTrace(log);
            }
        } else {
            tRes.tested("store()", !stored);
            if (stored) {
                if (!oObj.hasLocation()) {
View Full Code Here

Examples of com.zaranux.client.crypto.IOException

                throw new InvalidKeyException ("invalid key format");

            BigInteger version = val.data.getBigInteger();

            if (!version.equals(this.version)) {
                throw new IOException("version mismatch: (supported: " //+
                                     // Debug.toHexString(this.version) +
                                     // ", parsed: " +
                                     // Debug.toHexString(version)
                    );
            }
View Full Code Here

Examples of com.zaranux.client.java.io.IOException


    /** Checks to make sure that the stream has not been closed */
    private void ensureOpen() throws IOException {
        if (out == null)
            throw new IOException("Stream closed");
    }
View Full Code Here

Examples of java.io.IOException

          else if ("tvbrowser".equals(type)) {
            curItem=new TvbrowserSoftwareUpdateItem(className);
          }

          if (curItem==null) {
            throw new IOException("invalid software update file");
          }

          updateItems.add(curItem);
        }
        else {
View Full Code Here

Examples of java.io.IOException

      */
      // conn = DriverManager.getConnection(connurl, props); // MySQL (the database must exist and start seperately)
      conn = getConnection();
      conn.setAutoCommit(false);
    } catch (IllegalAccessException exc) {
      throw new IOException(exc.getMessage());
    } catch (ClassNotFoundException exc) {
      throw new IOException(exc.getMessage());
    } catch (InstantiationException exc) {
      throw new IOException(exc.getMessage());
    } catch (SQLException sqle) {
      throw new IOException(sqle.getMessage());
    }

    try {
      // Creating a statement lets us issue commands against the connection.
      Statement s = conn.createStatement();
      // We create the table.
//         s.execute("create cached table JoramDB(name VARCHAR PRIMARY KEY, content VARBINARY(256))");
      /*
      s.execute("CREATE TABLE JoramDB (name VARCHAR(256), content LONG VARCHAR FOR BIT DATA, PRIMARY KEY(name))");
      */
      s.execute("CREATE TABLE JoramDB (name VARCHAR(256), content longblob, primary key(name))"); // MySQL
      s.close();
      conn.commit();
    } catch (SQLException sqle) {
        String exceptionString = sqle.toString();
        if (exceptionString.indexOf("CREATE command denied") == -1)
        {
            sqle.printStackTrace();
        }
    } catch (Exception e) {
        e.printStackTrace();
    }

    try {
      insertStmt = conn.prepareStatement("INSERT INTO JoramDB VALUES (?, ?)");
      updateStmt = conn.prepareStatement("UPDATE JoramDB SET content=? WHERE name=?");
      deleteStmt = conn.prepareStatement("DELETE FROM JoramDB WHERE name=?");
    } catch (SQLException sqle) {
      sqle.printStackTrace();
      throw new IOException(sqle.getMessage());
    } catch (Exception e) {
      e.printStackTrace();
      // throw e;
    }
  }
View Full Code Here

Examples of java.io.IOException

      if (reconnectLoop)
          logger.log(BasicLevel.WARN, "Database reconnection problem at list");

      logger.log(BasicLevel.WARN, "list, problem list " + prefix);
      sqle.printStackTrace();
      throw new IOException(sqle.getMessage());
    } catch (Exception e) {
        logger.log(BasicLevel.WARN, "list, problem list " + prefix + " in e with " + e.getMessage());
        e.printStackTrace();
        throw new IOException(e.getMessage());
    }
  }
View Full Code Here

Examples of java.io.IOException

      String exceptionString = e.toString();
      if (exceptionString.indexOf("KNOWN PROBLEM") == -1)
      {
          e.printStackTrace();
      }
      throw new IOException(e.getMessage());
    } finally {
      ois.close();
      bis.close();
    }
  }
View Full Code Here

Examples of java.io.IOException

      if (reconnectLoop)
          logger.log(BasicLevel.WARN, "Database reconnection problem at load");

      logger.log(BasicLevel.WARN, "load, problem load " + name);
      sqle.printStackTrace();
      throw new IOException(sqle.getMessage());
    } catch (Exception e) {
       String exceptionString = e.toString();
       if (exceptionString.indexOf("KNOWN PROBLEM") == -1)
       {
          logger.log(BasicLevel.WARN, "load, problem load " + name + " in e with " + e.getMessage());
View Full Code Here

Examples of java.io.IOException

          if (reconnectLoop)
              logger.log(BasicLevel.WARN, "Database reconnection problem at delete");

          logger.log(BasicLevel.WARN, "delete, problem delete " + name);
          sqle.printStackTrace();
          throw new IOException(sqle.getMessage());
      }
    } catch (Exception e) {
      logger.log(BasicLevel.WARN, "delete, problem delete " + name + " in e with " + e.getMessage());
      e.printStackTrace();
      // throw 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.