Package com.arjuna.ats.arjuna.exceptions

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


        }

        public void remove() throws ObjectStoreException
        {
            if (!getStore().remove_committed(getSavingUid(), type()))
                throw new ObjectStoreException();
        }
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.FileSystemStore_2a"), e);
                }
            }
        }

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

        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"), e);
                    }
                }

                tmpFile = null;
            }
        }

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

        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"), e);
                    }
                }
            }
        }
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"), e);
                            }
                        }
                    }
                }
                else
                {
                    // ignore
                }
            }
        }

        /* terminate list */

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

        state.setBuffer(store.buffer());

        store = null;
View Full Code Here

/*     */   public void sync() throws SyncFailedException, ObjectStoreException
/*     */   {
/* 296 */     if (this._imple != null)
/* 297 */       this._imple.sync();
/*     */     else
/* 299 */       throw new ObjectStoreException(tsLogger.log_mesg.getString("com.arjuna.ats.arjuna.objectstore.ObjectStore_1"));
/*     */   }
View Full Code Here

/* 247 */       this._objectStoreDir = arjPropertyManager.propertyManager.getProperty("com.arjuna.ats.arjuna.objectstore.objectStoreDir");
/* 248 */       if ((this._objectStoreDir == null) || (this._objectStoreDir.length() == 0)) {
/* 249 */         this._objectStoreDir = Configuration.objectStoreRoot();
/*     */       }
/* 251 */       if ((this._objectStoreDir == null) || (this._objectStoreDir.length() == 0)) {
/* 252 */         throw new ObjectStoreException("com.arjuna.ats.arjuna.objectstore.objectStoreDir not set.");
/*     */       }
/* 254 */       if (!this._objectStoreDir.endsWith(File.separator)) {
/* 255 */         this._objectStoreDir += File.separator;
/*     */       }
/*     */
View Full Code Here

/*     */           Object myBlob;
/*  98 */           if (retryConnection(e, pool)) {
/*  99 */             myBlob = read_state(objUid, tName, ft, tableName);
/*     */             return myBlob;
/*     */           }
/* 101 */           throw new ObjectStoreException(e.toString());
/*     */         }
/*     */         finally
/*     */         {
/*     */           try
/*     */           {
/* 108 */             if (rs != null)
/* 109 */               rs.close();
/*     */           }
/*     */           catch (Exception re) {
/*     */           }
/* 113 */           freePool(pool);
/*     */         }
/*     */       }
/*     */     }
/*     */     else {
/* 118 */       throw new ObjectStoreException("oracle.read_state - object with uid " + objUid + " has no TypeName");
/*     */     }
/* 120 */     return (InputObjectState)newImage;
/*     */   }
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.