Package org.apache.qpid.server.store

Examples of org.apache.qpid.server.store.StoreException


        }
        catch (SQLException e)
        {
            closeConnection(conn);
            throw new StoreException("Error establishing on disk size", e);
        }
        finally
        {
            closePreparedStatement(stmt);
        }
View Full Code Here


                    AbstractBDBMessageStore.this.addContent(txn, _messageId, 0,
                                                    _data == null ? ByteBuffer.allocate(0) : ByteBuffer.wrap(_data));
                }
                catch(DatabaseException e)
                {
                    throw new StoreException(e);
                }
                finally
                {
                    _metaData = null;
                    _data = null;
View Full Code Here

            return configuredObject;
        }
        catch (IOException e)
        {
            //should never happen
            throw new StoreException(e);
        }

    }
View Full Code Here

            tupleOutput.writeString(object.getType());
            tupleOutput.writeString(writer.toString());
        }
        catch (JsonMappingException e)
        {
            throw new StoreException(e);
        }
        catch (JsonGenerationException e)
        {
            throw new StoreException(e);
        }
        catch (IOException e)
        {
            throw new StoreException(e);
        }
    }
View Full Code Here

            catch (DatabaseException e)
            {
                LOGGER.error("Exception during transaction begin, closing store environment.", e);
                closeEnvironmentSafely();

                throw new StoreException("Exception during transaction begin, store environment closed.", e);
            }
        }
View Full Code Here

            {
                return new FieldTable(new DataInputStream(new ByteArrayInputStream(data)),length);
            }
            catch (IOException e)
            {
                throw new StoreException(e);
            }

        }

    }
View Full Code Here

                updateConfigVersion(newConfigVersion);
            }
        }
        catch (DatabaseException e)
        {
            throw new StoreException("Error recovering persistent state: " + e.getMessage(), e);
        }

    }
View Full Code Here

            {
                IntegerBinding.intToEntry(newConfigVersion, value);
                OperationStatus status = cursor.put(key, value);
                if (status != OperationStatus.SUCCESS)
                {
                    throw new StoreException("Error setting config version: " + status);
                }
            }
            cursor.close();
            cursor = null;
            txn.commit();
View Full Code Here

            IntegerBinding.intToEntry(0,value);
            ByteBinding.byteToEntry((byte) 0,key);
            OperationStatus status = _configVersionDb.put(null, key, value);
            if (status != OperationStatus.SUCCESS)
            {
                throw new StoreException("Error initialising config version: " + status);
            }
            return 0;
        }
        finally
        {
View Full Code Here

                    tx.abort();
                    tx = null;
                }
                catch (DatabaseException e1)
                {
                    throw new StoreException("Error aborting transaction " + e1, e1);
                }
            }

            throw new StoreException("Error removing message with id " + messageId + " from database: " + e.getMessage(), e);
        }
        finally
        {
            if (tx != null)
            {
                try
                {
                    tx.abort();
                    tx = null;
                }
                catch (DatabaseException e1)
                {
                    throw new StoreException("Error aborting transaction " + e1, e1);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.store.StoreException

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.