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

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

  /* terminate list */

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

  state.setBuffer(store.buffer());

  store = null;
View Full Code Here

        {
            Uid.nullUid().pack(store);
        }
        catch (IOException e)
        {
            throw new ObjectStoreException("allObjUids - could not pack end of list Uid.");
        }

        buff.setBuffer(store.buffer());

        return true;
View Full Code Here

            return true;
        }
        catch (IOException e)
        {
            throw new ObjectStoreException(tsLogger.arjLoggerI18N.getString("com.arjuna.ats.internal.arjuna.objectstore.packProblem"));
        }
    }
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
                    {
                        if (rs != null)
                            rs.close();
                    }
                            // Ignore
                    catch (Exception re) {}
                    freePool(pool);
                }
            }
        }
        else
            throw new ObjectStoreException("oracle.read_state - object with uid "+objUid+" has no TypeName");

        return newImage;
    }
View Full Code Here

    public boolean write_state (Uid objUid, String tName, OutputObjectState state, int s, String tableName) throws ObjectStoreException
    {
        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())
        {
            int pool = getPool();
            try
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.