Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.OJBRuntimeException


            }
        }
        catch (LockNotGrantedException e)
        {
            log.error("Failure while storing objects " + objects, e);
            throw new OJBRuntimeException("Failure while storing objects", e);
        }
        return objects;
    }
View Full Code Here


            return (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here

            db.open(BeanConstants.DEF_DATABASE_NAME, Database.OPEN_READ_WRITE);
        }
        catch (ODMGException e)
        {
            log.error("Database open failed", e);
            throw new OJBRuntimeException("Unable to open database using ODMG api", e);
        }
    }
View Full Code Here

                }
            }
            catch (Exception e)
            {
                e.printStackTrace();
                throw new OJBRuntimeException(e);
            }
        }
View Full Code Here

            }
        }
        catch (SQLException e)
        {
            // should never be reached
            throw new OJBRuntimeException("Restore of connection autocommit state failed", e);
        }
    }
View Full Code Here

            }
        }
        catch (SQLException e)
        {
            // should never be reached
            throw new OJBRuntimeException("Restore of connection autocommit state failed", e);
        }
    }
View Full Code Here

            lm.setLockTimeout(LockManager.DEFAULT_LOCK_TIMEOUT);
            return lm;
        }
        catch(Exception e)
        {
            throw new OJBRuntimeException("Unexpected failure while start LockManager", e);
        }
    }
View Full Code Here

                bean = ((ODMGSessionHome) object).create();
            }
            catch(Exception e)
            {
                e.printStackTrace();
                throw new OJBRuntimeException("Can't lookup bean: " + ODMGSessionHome.JNDI_NAME, e);
            }
        }
View Full Code Here

            }
            catch(Throwable e)
            {
                System.err.println("Error in client: " + e.getMessage());
                test.interruptThreads();
                throw new OJBRuntimeException("[" + ODMGTestClient.class.getName()
                        + "] Stress test client cause exception, thread was " + Thread.currentThread(), e);
            }
        }
View Full Code Here

            {
                return newInstance(target, NO_ARGS_CLASS, NO_ARGS, makeAccessible);
            }
            catch (InvocationTargetException e)
            {
                throw new OJBRuntimeException("Unexpected exception while instantiate class '"
                        + target + "' with default constructor", e);
            }
            catch (NoSuchMethodException e)
            {
                throw new OJBRuntimeException("Unexpected exception while instantiate class '"
                        + target + "' with default constructor", e);
            }
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.OJBRuntimeException

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.