Package org.apache.harmony.rmi.transport

Examples of org.apache.harmony.rmi.transport.RMIObjectOutputStream.writeObject()


                skel.dispatch((Remote) ref.get(), call, op, h);
            } catch (Throwable t) {
                Exception ex = prepareException(m, t);
                RMIObjectOutputStream oout =
                        (RMIObjectOutputStream) call.getResultStream(false);
                oout.writeObject(ex);
            }

            try {
                call.getOutputStream().flush();
            } catch (IOException ioe) {
View Full Code Here


        RMIObjectOutputStream oout =
                (RMIObjectOutputStream) call.getResultStream(toThrow == null);

        try {
            if (toThrow != null) {
                oout.writeObject(toThrow);
            } else if (toReturn != null) {
                oout.writeRMIObject(toReturn, m.getReturnType());
            } else if (m.getReturnType() != Void.TYPE) {
                oout.writeObject(null);
            }
View Full Code Here

            if (toThrow != null) {
                oout.writeObject(toThrow);
            } else if (toReturn != null) {
                oout.writeRMIObject(toReturn, m.getReturnType());
            } else if (m.getReturnType() != Void.TYPE) {
                oout.writeObject(null);
            }
            oout.flush();
        } catch (Error er) {
            // rmi.67=Error occured while marshalling return value
            throw new ServerError(Messages.getString("rmi.67"), er); //$NON-NLS-1$
View Full Code Here

                OutputStream os = process.getOutputStream();
                RMIObjectOutputStream oos = new RMIObjectOutputStream(
                        new BufferedOutputStream(os));

                oos.writeObject(agid);

                // rmi.log.66=Agid written: {0}
                rLog.log(commonDebugLevel, Messages.getString("rmi.log.66", agid)); //$NON-NLS-1$
                oos.writeObject(agdesc);
                // rmi.log.67=Agdesc written: {0}
View Full Code Here

                oos.writeObject(agid);

                // rmi.log.66=Agid written: {0}
                rLog.log(commonDebugLevel, Messages.getString("rmi.log.66", agid)); //$NON-NLS-1$
                oos.writeObject(agdesc);
                // rmi.log.67=Agdesc written: {0}
                rLog.log(commonDebugLevel, Messages.getString("rmi.log.67", agdesc)); //$NON-NLS-1$

                oos.writeLong(incarnation);
                // rmi.log.68=incarnation written: {0}
View Full Code Here

                                sCall.getOutputStream();
                    } else {
                        oout = (RMIObjectOutputStream)
                                sCall.getResultStream(false);
                    }
                    oout.writeObject(exToReturn);
                    oout.flush();
                }

                if (sref != null) {
                    if (!sref.isSystem()) {
View Full Code Here

                                sCall.getOutputStream();
                    } else {
                        oout = (RMIObjectOutputStream)
                                sCall.getResultStream(false);
                    }
                    oout.writeObject(exToReturn);
                    oout.flush();
                }

                if (sref != null) {
                    if (!sref.isSystem()) {
View Full Code Here

                skel.dispatch((Remote) ref.get(), call, op, h);
            } catch (Throwable t) {
                Exception ex = prepareException(m, t);
                RMIObjectOutputStream oout =
                        (RMIObjectOutputStream) call.getResultStream(false);
                oout.writeObject(ex);
            }

            try {
                call.getOutputStream().flush();
            } catch (IOException ioe) {
View Full Code Here

        RMIObjectOutputStream oout =
                (RMIObjectOutputStream) call.getResultStream(toThrow == null);

        try {
            if (toThrow != null) {
                oout.writeObject(toThrow);
            } else if (toReturn != null) {
                oout.writeRMIObject(toReturn, m.getReturnType());
            } else if (m.getReturnType() != Void.TYPE) {
                oout.writeObject(null);
            }
View Full Code Here

            if (toThrow != null) {
                oout.writeObject(toThrow);
            } else if (toReturn != null) {
                oout.writeRMIObject(toReturn, m.getReturnType());
            } else if (m.getReturnType() != Void.TYPE) {
                oout.writeObject(null);
            }
            oout.flush();
        } catch (Error er) {
            // rmi.67=Error occurred while marshalling return value
            throw new ServerError(Messages.getString("rmi.67"), er); //$NON-NLS-1$
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.