Package com.arjuna.ats.arjuna.exceptions

Examples of com.arjuna.ats.arjuna.exceptions.ObjectStoreException


         * Not a number at start of file.
         */
    }
    catch (IOException e)
    {
        throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_2a"));
    }
      }
  }

  try
  {
      Uid.nullUid().pack(store);
  }
  catch (IOException e)
  {
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_3"));
  }

  state.setBuffer(store.buffer());

  store = null;
View Full Code Here


      result = allTypes(store, entry[i]);
        }
        catch (IOException e)
        {
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_4"));
        }
    }

    tmpFile = null;
      }
  }

  try
  {
      store.packString("");
  }
  catch (IOException e)
  {
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_5"));
  }

  foundTypes.setBuffer(store.buffer());

  return result;
View Full Code Here

                    }
                    else
                        return fd;
                }
                else
                    throw new ObjectStoreException("FileSystemStore.openAndLock failed to create hierarchy "+fname);
            }

            if (!lock(fd, lmode, create))
                fd = null;
        }
View Full Code Here

      tmpFile = null;
        }
        catch (IOException e)
        {
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_7"));
        }
    }
      }
  }
View Full Code Here

      } while (!f.exists() && (retryLimit > 0));

      return f.exists();
  }
  else
      throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore_8"));
    }
View Full Code Here

      _objectStoreDir = arjPropertyManager.propertyManager.getProperty(Environment.OBJECTSTORE_DIR);
      if (_objectStoreDir == null || _objectStoreDir.length() == 0)
        _objectStoreDir = com.arjuna.ats.arjuna.common.Configuration.objectStoreRoot();

      if (_objectStoreDir == null || _objectStoreDir.length() == 0)
    throw new ObjectStoreException(Environment.OBJECTSTORE_DIR+" not set.");
 
      if (!_objectStoreDir.endsWith(File.separator))
    _objectStoreDir = _objectStoreDir + File.separator;

      /*
 
View Full Code Here

              tsLogger.arjLoggerI18N.warn("com.arjuna.ats.internal.arjuna.objectstore.drivers.oracle_8_0_1");
                    }
        }
        catch (Exception e)
        {
          throw new ObjectStoreException(e.toString());
        }
        finally
        {
          try
          {
            rs.close();
          }
          // Ignore
          catch (Exception re) {}
          freePool(pool);
        }
      }
    }
    else
      throw new ObjectStoreException("oracle_8_0.read_state - object with uid "+objUid+" has no TypeName");

    return newImage;
  }
View Full Code Here

    boolean result = false;

    int imageSize = (int) state.length();

    if (imageSize > _maxStateSize)
      throw new ObjectStoreException("Object state is too large - maximum size allowed: " + _maxStateSize);

    byte[] b = state.buffer();

    if (imageSize > 0 && storeValid())
    {
View Full Code Here

        catch (Throwable e)
        {
          if(retryConnection(e, pool)) {
            return read_state(objUid, tName, ft, tableName);
          } else {
            throw new ObjectStoreException(e.toString());
          }
        }
        finally
        {
          try
          {
            rs.close();
          }
          // Ignore
          catch (Exception re) {}
          freePool(pool);
        }
      }
    }
    else
      throw new ObjectStoreException("sqlserver.read_state - object with uid "+objUid+" has no TypeName");

    return newImage;
  }
View Full Code Here

    boolean result = false;

    int imageSize = (int) state.length();

    if (imageSize > _maxStateSize)
      throw new ObjectStoreException("Object state is too large - maximum size allowed: " + _maxStateSize);

    byte[] b = state.buffer();

    if (imageSize > 0 && storeValid())
    {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.exceptions.ObjectStoreException

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.