Package java.rmi.activation

Examples of java.rmi.activation.UnknownObjectException


    public boolean inactiveObject(ActivationID id) throws ActivationException,
            UnknownObjectException, RemoteException {
        ActiveObject ao = (ActiveObject) active_objects.get(id);
        if (ao == null) {
            // rmi.93=Object was not registered or already deactivated.
            throw new UnknownObjectException(Messages.getString("rmi.93")); //$NON-NLS-1$
        }

        Activatable.unexportObject(ao.getImpl(), false);
        super.inactiveObject(id);
        active_objects.remove(id);
View Full Code Here


                .get(agid);
        ActivationDesc adesc = info.getActivationDesc(aID);

        if (adesc == null) {
            // rmi.31=No ActivationDesc for ActivationID {0}
            throw new UnknownObjectException(Messages.getString("rmi.31", aID)); //$NON-NLS-1$
        }
        return adesc;
    }
View Full Code Here

        waitStartup();
        ActivationGroupInfo agi = (ActivationGroupInfo) groupInfoByGroupId
                .get(agid);
        if (agi == null) {
            // rmi.32=No ActivationGroupDesc for ActivationGroupID {0}
            throw new UnknownObjectException(Messages.getString("rmi.32", agid)); //$NON-NLS-1$
        }
        return agi.getActivationGroupDesc();
    }
View Full Code Here

        private ObjectEntry getObjectEntry(ActivationID id)
            throws UnknownObjectException
        {
            if (removed) {
                throw new UnknownObjectException("object's group removed");
            }
            ObjectEntry objEntry = objects.get(id);
            if (objEntry == null) {
                throw new UnknownObjectException("object unknown");
            }
            return objEntry;
        }
View Full Code Here

                     ActivationInstantiator inst)
            throws RemoteException, ActivationException
        {
            MarshalledObject<? extends Remote> nstub = stub;
            if (removed) {
                throw new UnknownObjectException("object removed");
            } else if (!force && nstub != null) {
                return nstub;
            }

            nstub = inst.newInstance(id, desc);
View Full Code Here

            ActivationGroupID groupID = idTable.get(id);
            if (groupID != null) {
                return groupID;
            }
        }
        throw new UnknownObjectException("unknown object: " + id);
    }
View Full Code Here

            GroupEntry entry = groupTable.get(gid);
            if (entry != null) {
                return entry;
            }
        }
        throw new UnknownObjectException("object's group removed");
    }
View Full Code Here

public class UnknownObjectExceptionTest extends TestCase {
    /**
     * Test method for {@link java.rmi.activation.UnknownObjectException#UnknownObjectException(java.lang.String)}.
     */
    public void testUnknownObjectException() {
        UnknownObjectException e = new UnknownObjectException("fixture");
        assertEquals("fixture", e.getMessage());
        assertNull(e.getCause());
        assertNull(e.detail);
        try {
            e.initCause(new NullPointerException());
            fail("did not throw illegal state exception");
        } catch (IllegalStateException ise) {
        }
    }
View Full Code Here

    }
    entry = (ActiveEntry) active.get(id);
      }
      if (entry == null) {
    // REMIND: should this be silent?
    throw new UnknownObjectException("object not active");
      }

      try {
    if (!Activatable.unexportObject(entry.impl, false)) {
        return false;
View Full Code Here

    }
    entry = (ActiveEntry) active.get(id);
      }
      if (entry == null) {
    // REMIND: should this be silent?
    throw new UnknownObjectException("object not active");
      }

      if (!exporter.unexport(false)) {
    return false;
      }
View Full Code Here

TOP

Related Classes of java.rmi.activation.UnknownObjectException

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.