Package java.rmi

Examples of java.rmi.MarshalException


         log.error("Error loading classes from remote call result.", ex);
         throw (ClassNotFoundException) ex;
      }
      else if (ex instanceof SocketTimeoutException)
      {
         throw new MarshalException("Socket timed out.  Waited " + socketWrapper.getTimeout() + " milliseconds for response while calling on " +
                                    getLocator(), ex);
      }

      throw new MarshalException("Failed to communicate.  Problem during marshalling/unmarshalling", ex);

   }
View Full Code Here


         log.error("Error loading classes from remote call result.", ex);
         throw (ClassNotFoundException) ex;
      }
      else if (ex instanceof SocketTimeoutException)
      {
         throw new MarshalException("Socket timed out.  Waited " + socketWrapper.getTimeout() + " milliseconds for response while calling on " +
                                    getLocator(), ex);
      }
      else if (ex instanceof InterruptedException && isWrapInterruptedException())
      {
         log.debug(this, ex);
         throw new RuntimeException(ex);
      }
     
      throw new MarshalException("Failed to communicate.  Problem during marshalling/unmarshalling", ex);

   }
View Full Code Here

      {
         log.debug(this, ex);
         throw new RuntimeException(ex);
      }
     
      throw new MarshalException(
         "Failed to communicate. Problem during marshalling/unmarshalling.", ex);
   }
View Full Code Here

    /**
     * {@link java.rmi.MarshalException#MarshalException(java.lang.String, java.lang.Exception)}.
     */
    public void testMarshalExceptionStringException() {
        NullPointerException npe = new NullPointerException();
        MarshalException e = new MarshalException("fixture", npe);
        assertTrue(e.getMessage().indexOf("fixture") > -1);
        assertSame(npe, e.getCause());
        assertSame(npe, e.detail);
    }
View Full Code Here

    /**
     * {@link java.rmi.MarshalException#MarshalException(java.lang.String)}.
     */
    public void testMarshalExceptionString() {
        MarshalException e = new MarshalException("fixture");
        assertEquals("fixture", e.getMessage());
        assertNull(e.getCause());
        assertNull(e.detail);
    }
View Full Code Here

      
       /* 01) any instance of java.rmi.MarshalException in which the
          value of the exception's detail field is an instance of
          java.io.ObjectStreamException */
       badInvException01 =
     new MarshalException("LeaseExpirationTest",
      new StreamCorruptedException("LeaseExpirationTest"));
       badInvOwner01 =
     new FailingOpCountingOwner(badInvException01, 0, renewGrant);

       /* 02) any instance of java.rmi.UnmarshalException in which the
View Full Code Here

      out.close();
      ok = true;
  } catch (Exception e) {
      if (e instanceof IOException) {
    if (wroteMethod && request.getDeliveryStatus()) {
        e = new MarshalException("error marshalling arguments", e);
    } else {
        e = wrapSafeIOException((IOException) e, oe);
    }
      }
      return new Failure(e,
View Full Code Here

  serviceType = stb.type;
  codebase = stb.codebase;
  try {
      service = new MarshalledWrapper(svc);
  } catch (IOException e) {
      throw new MarshalException("error marshalling arguments", e);
  }
  attributeSets = EntryRep.toEntryRep(item.attributeSets, true);
    }
View Full Code Here

  MarshalledObject data;
  try {
      data = new MarshalledObject(desc);
  } catch (Exception e) {
            MarshalException me =
          new MarshalException("marshalling ActivateDesc", e);
      logger.throwing(ActivateWrapper.class.getName(),
          "register", me);
      throw me;
  }
 
View Full Code Here

      false, set);
  createAndRegisterLease(
      new LinkageError("Synthetic LinkageError"),
      false, set);
  createAndRegisterLease(
      new MarshalException("Synthetic MarshalException",
          new InvalidClassException("Synthetic")),
          true, set);
  createAndRegisterLease(
      new MarshalException("Synthetic MarshalException", null),
         false, set);
  createAndRegisterLease(
      new MarshalException("Synthetic MarshalException",
         new IOException()),
         false, set);
  createAndRegisterLease(
      new UnmarshalException("Synthetic UnmarshalException",
           new InvalidClassException("Synthetic")),
View Full Code Here

TOP

Related Classes of java.rmi.MarshalException

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.