Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.OJBRuntimeException


                result = (DList) broker.getCollectionByQuery(DListImpl_2.class, q);
            }
            catch (PersistenceBrokerException e)
            {
                getLog().error("Query failed", e);
                throw new OJBRuntimeException(e);
            }
        }
        finally
        {
            // cleanup stuff
View Full Code Here


            }
        }
        catch (PersistenceBrokerException e)
        {
            log.error("Could not put identity to NamedRoots. Key was "+key+", identity was "+oid, e);
            throw new OJBRuntimeException(e);
        }
    }
View Full Code Here

            }
        }
        catch (PersistenceBrokerException e)
        {
            log.error("Could not unbind identity with key "+key+" from NamedRoots", e);
            throw new OJBRuntimeException(e);
        }
    }
View Full Code Here

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

            }
            catch(Throwable e)
            {
                System.err.println("Error in client: " + e.getMessage());
                test.interruptThreads();
                throw new OJBRuntimeException("[" + PBTestClient.class.getName()
                        + "] Stress test client cause exception, thread was " + Thread.currentThread(), 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 (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
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

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.