Examples of RMIObjectInputStream


Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

     *
     * @throws IOException if any I/O error occured during remote method call
     */
    public void processCall(RemoteCall call) throws IOException {
        // read method and parameters
        RMIObjectInputStream oin = (RMIObjectInputStream) call.getInputStream();
        int op = oin.readInt(); // read operation
        long h = oin.readLong(); // read method hash

        if (op != -1) {
            // Using 1.1. RMI protocol version
            if (skel == null) {
                // rmi.65=Skeleton class not found.
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

            invoke(call);

            // read return value
            // if we pass here then server produced no exceptions
            if (m.getReturnType() != Void.TYPE) {
                RMIObjectInputStream oin =
                        (RMIObjectInputStream) call.getInputStream();

                try {
                    toReturn = oin.readRMIObject(m.getReturnType(), null);
                } catch (IOException ioe) {
                    // rmi.70=IOException occured while unmarshalling return value
                    throw new UnmarshalException(Messages.getString("rmi.70"), ioe); //$NON-NLS-1$
                } catch (ClassNotFoundException cnfe) {
                    // rmi.71=ClassNotFoundException occured while unmarshalling return value
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

     *
     * @throws IOException if an I/O error occured during stream construction
     */
    public ObjectInput getInputStream() throws IOException {
        if (oin == null) {
            oin = new RMIObjectInputStream(conn.getInputStream(), true);
        }
        return oin;
    }
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

     *
     * @throws IOException if an I/O error occured during stream construction
     */
    public ObjectInput getInputStream() throws IOException {
        if (oin == null) {
            oin = new RMIObjectInputStream(conn.getInputStream());
        }
        return oin;
    }
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

            throws IOException, ClassNotFoundException {
        objId = ObjID.read(in);
        boolean needAck = in.readBoolean();

        if (in instanceof RMIObjectInputStream) {
            RMIObjectInputStream oin = (RMIObjectInputStream) in;

            if (oin.isRemoteCallStream()) {
                oin.needDGCAck(needAck);
            }
        }
        RMIObjectInfo info = ExportManager.getInfo(objId);

        if ((info == null) || !info.sref.remoteEquals(this)) {
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

        try {
            // rmi.log.4F=System.in.available = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.4F", //$NON-NLS-1$
                    System.in.available()));

            RMIObjectInputStream ois = new RMIObjectInputStream(
                    new BufferedInputStream(System.in));
            // rmi.log.55=ois = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.55", ois)); //$NON-NLS-1$
            ActivationGroupID agid = (ActivationGroupID) ois.readObject();
            // rmi.log.57=agid = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.57", agid)); //$NON-NLS-1$
            ActivationGroupDesc agdesc = (ActivationGroupDesc) ois.readObject();
            // rmi.log.74=agdesc = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.74", agdesc)); //$NON-NLS-1$
            long incarnation = ois.readLong();
            // rmi.log.7B=incarnation = {0}
            rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.7B", incarnation)); //$NON-NLS-1$
            ActivationGroup.createGroup(agid, agdesc, incarnation);
        } catch (Throwable t) {
            // rmi.log.7C=: Exception: {0}
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

            }

            // wait until RMI call msg is received from client or until client
            // closes the connection
            while (waitCallMsg() != -1) {
                RMIObjectInputStream oin = new RMIObjectInputStream(in);
                final ServerRemoteCall sCall = new ServerRemoteCall(this, oin);
                ObjID id = null;

                try {
                    id = ObjID.read(oin);
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

            }

            // wait until RMI call msg is received from client or until client
            // closes the connection
            while (waitCallMsg() != -1) {
                RMIObjectInputStream oin = new RMIObjectInputStream(in);
                final ServerRemoteCall sCall = new ServerRemoteCall(this, oin);
                ObjID id = null;

                try {
                    id = ObjID.read(oin);
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

     *
     * @throws IOException if an I/O error occurred during stream construction
     */
    public ObjectInput getInputStream() throws IOException {
        if (oin == null) {
            oin = new RMIObjectInputStream(conn.getInputStream());
        }
        return oin;
    }
View Full Code Here

Examples of org.apache.harmony.rmi.transport.RMIObjectInputStream

            throws IOException, ClassNotFoundException {
        objId = ObjID.read(in);
        boolean needAck = in.readBoolean();

        if (in instanceof RMIObjectInputStream) {
            RMIObjectInputStream oin = (RMIObjectInputStream) in;

            if (oin.isRemoteCallStream()) {
                oin.needDGCAck(needAck);
            }
        }
        RMIObjectInfo info = ExportManager.getInfo(objId);

        if ((info == null) || !info.sref.remoteEquals(this)) {
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.