Examples of InvalidStateException


Examples of org.apache.openjpa.util.InvalidStateException

                        evict(cache);
                    }
                }
                lastRun = now;
            } catch (Exception e) {
                throw new InvalidStateException(_loc.get("scheduler-fail"), e).
                    setFatal(true);
            }
        }

        _log.info(_loc.get("scheduler-stop"));
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

            if (_extendedTransaction != null) {
                try {
                    _registerSync.invoke(_extendedTransaction,
                        new Object[] { new WASSynchronization(arg0) });
                } catch (Exception e) {
                    throw new InvalidStateException(_loc
                        .get("was-reflection-exception")).setCause(e);
                }
            } else {
                throw new InvalidStateException(_loc.get("was-lookup-error"));
            }
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

         */
        private byte[] getGlobalId() {
            try {
                return (byte[]) _getGlobalId.invoke(_extendedTransaction, null);
            } catch (Exception e) {
                throw new InvalidStateException(_loc
                    .get("was-reflection-exception")).setCause(e);
            }
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

        /**
         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public void begin() throws NotSupportedException, SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "begin"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

         * IllegalStateException
         */
        public void commit() throws HeuristicMixedException,
            HeuristicRollbackException, IllegalStateException,
            RollbackException, SecurityException, SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "commit"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public void resume(Transaction arg0) throws IllegalStateException,
            InvalidTransactionException, SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "resume"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

        /**
         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public void setTransactionTimeout(int arg0) throws SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "setTransactionTimeout"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

        /**
         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public Transaction suspend() throws SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "suspend"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public boolean delistResource(XAResource arg0, int arg1)
            throws IllegalStateException, SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "delistResource"));
        }
View Full Code Here

Examples of org.apache.openjpa.util.InvalidStateException

         * Unimplemented, WAS does not provide this level of control. Throws an
         * IllegalStateException
         */
        public boolean enlistResource(XAResource arg0)
            throws IllegalStateException, RollbackException, SystemException {
            throw new InvalidStateException(_loc.get("was-unsupported-op",
                "enlistResource"));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.