Package java.rmi.activation

Examples of java.rmi.activation.ActivationException


        waitStartup();
        ActivationGroupID agid = new ActivationGroupID(this);
        ActivationGroupInfo agi = new ActivationGroupInfo(agid, agdesc);
        if (groupInfoByGroupId.containsKey(agid)) {
            // rmi.2E=This group is already registered.
            throw new ActivationException(Messages.getString("rmi.2E")); //$NON-NLS-1$
        }
        groupInfoByGroupId.put(agid, agi);
        if (!restoreLock) {
            writeDelta(Delta.PUT, "group", agid, agdesc); //$NON-NLS-1$
            // rmi.log.45=Delta was saved:
View Full Code Here


        if (agi == null) {
            // rmi.2F=Group is not registered: {0}
            throw new UnknownGroupException(Messages.getString("rmi.2F", gID)); //$NON-NLS-1$
        } else if (agi.isActive()) {
            // rmi.30=Group is already active: {0}
            throw new ActivationException(Messages.getString("rmi.30", gID)); //$NON-NLS-1$
        }

        // rmi.log.49=ready to execute agi.active()
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.49")); //$NON-NLS-1$
View Full Code Here

        // rmi.log.83=ActivationGroupImpl: ActivationGroupImpl.newInstance started.
        rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.83")); //$NON-NLS-1$
        // Checking that we try to activate object in correct group.
        if (!groupID.equals(adesc.getGroupID())) {
            // rmi.36=Attempt to activate object from different group.
            throw new ActivationException(Messages.getString("rmi.36")); //$NON-NLS-1$
        }

        if (isGroupActive == false) {
            // rmi.37=Attempt to activate object in inactive group.
            throw new ActivationException(Messages.getString("rmi.37")); //$NON-NLS-1$
        }

        /**
         */

 
View Full Code Here

        waitStartup();
        ActivationGroupID agid = new ActivationGroupID(this);
        ActivationGroupInfo agi = new ActivationGroupInfo(agid, agdesc);
        if (groupInfoByGroupId.containsKey(agid)) {
            // rmi.2E=This group is already registered.
            throw new ActivationException(Messages.getString("rmi.2E")); //$NON-NLS-1$
        }
        groupInfoByGroupId.put(agid, agi);
        if (!restoreLock) {
            writeDelta(Delta.PUT, "group", agid, agdesc); //$NON-NLS-1$
            // rmi.log.45=Delta was saved:
View Full Code Here

        if (agi == null) {
            // rmi.2F=Group is not registered: {0}
            throw new UnknownGroupException(Messages.getString("rmi.2F", gID)); //$NON-NLS-1$
        } else if (agi.isActive()) {
            // rmi.30=Group is already active: {0}
            throw new ActivationException(Messages.getString("rmi.30", gID)); //$NON-NLS-1$
        }

        // rmi.log.49=ready to execute agi.active()
        rLog.log(commonDebugLevel, Messages.getString("rmi.log.49")); //$NON-NLS-1$
View Full Code Here

                activationInstantiator = null;
                activateGroup();
                return oi.activate(activationInstantiator);
            }
            // rmi.35=Exception:
            throw new ActivationException(Messages.getString("rmi.35"), signalException); //$NON-NLS-1$
        }
View Full Code Here

        synchronized void activeGroup(ActivationInstantiator inst,
                                      long instIncarnation)
            throws ActivationException, UnknownGroupException
        {
            if (incarnation != instIncarnation) {
                throw new ActivationException("invalid incarnation");
            }

            if (group != null) {
                if (group.equals(inst)) {
                    return;
                } else {
                    throw new ActivationException("group already active");
                }
            }

            if (child != null && status != CREATING) {
                throw new ActivationException("group not being created");
            }

            group = inst;
            status = NORMAL;
            notifyAll();
View Full Code Here

            /**
             * signal that group activation failed, nested exception
             * specifies what exception occurred when the group did not
             * activate
             */
            throw new ActivationException("object activation failed after " +
                                          MAX_TRIES + " tries", detail);
        }
View Full Code Here

                    out.close();


                } catch (IOException e) {
                    terminate();
                    throw new ActivationException(
                        "unable to create activation group", e);
                }

                try {
                    long now = System.currentTimeMillis();
                    long stop = now + execTimeout;
                    do {
                        wait(stop - now);
                        if (group != null) {
                            return group;
                        }
                        now = System.currentTimeMillis();
                    } while (status == CREATING && now < stop);
                } catch (InterruptedException e) {
                }

                terminate();
                throw new ActivationException(
                        (removed ?
                         "activation group unregistered" :
                         "timeout creating child process"));
            } finally {
                if (acquired) {
View Full Code Here

                // nothing
            }
        }

        if (shuttingDown == true) {
            throw new ActivationException(
                "activation system shutting down");
        }
    }
View Full Code Here

TOP

Related Classes of java.rmi.activation.ActivationException

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.