Examples of UnmarshalException


Examples of com.bring.api.exceptions.UnmarshalException

            Unmarshaller unmarshaller = context.createUnmarshaller();
            T p = (T) unmarshaller.unmarshal(inputStream);
            return p;
        }
        catch (JAXBException e) {
            throw new UnmarshalException(e);
        }
    }
View Full Code Here

Examples of com.xmlit.project.client.UnmarshalException

*/
    try {
      return createElement(element, struct, doc, matches, context);
    } catch (Exception e) {

      throw new UnmarshalException("Last possition is:" + lastPossition,
          e, lastPossition);
    }

  }
View Full Code Here

Examples of java.rmi.UnmarshalException

    activator.activate(this, force);
       return mobj.get();
   } catch (RemoteException e) {
       throw e;
   } catch (IOException e) {
       throw new UnmarshalException("activation failed", e);
   } catch (ClassNotFoundException e) {
       throw new UnmarshalException("activation failed", e);
  }
 
    }
View Full Code Here

Examples of java.rmi.UnmarshalException

       throwArray[2] =
     new ConnectIOException("ConnectIOException");
       throwArray[1] =
     new RemoteException("RemoteException");
       throwArray[0] =
     new UnmarshalException("UnmarshalException");

       return throwArray;
    }
View Full Code Here

Examples of java.rmi.UnmarshalException

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

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

Examples of java.rmi.UnmarshalException

     */
    private static UnusableEntryException throwNewUnusableEntryException(
            String msg, Exception nested)
  throws UnusableEntryException
    {
  final UnmarshalException ue = new UnmarshalException(msg, nested);
  final UnusableEntryException uee = new UnusableEntryException(ue);

  if (logger.isLoggable(Levels.FAILED)) {
      logger.log(Levels.FAILED, msg, uee);
  }
View Full Code Here

Examples of java.rmi.UnmarshalException

       throwArray[2] =
     new ConnectIOException("ConnectIOException");
       throwArray[1] =
     new RemoteException("RemoteException");
       throwArray[0] =
     new UnmarshalException("UnmarshalException");

       return throwArray;
    }
View Full Code Here

Examples of java.rmi.UnmarshalException

      typeHashes.put(className, new Long(value));
      return false// new class
  } else {
      if (hash.longValue() != value) {
    final String msg = "Class mismatch: " + className;
    final UnmarshalException ue = new UnmarshalException(msg);
    opsLogger.log(Levels.FAILED, msg, ue);
    throw ue;
      }
  }
  return true;    // match
View Full Code Here

Examples of java.rmi.UnmarshalException

     */
    private UnmarshalException brokenTxn(TransactionManager mgr, long id,
           Exception nested)
  throws UnmarshalException
    {
  final UnmarshalException ue = new UnmarshalException(
            "Outrigger has a transaction with this id(" + id + "), but can't" +
      "unmarshal its copy of manager to confirm it is the same " +
      "transaction",
      nested);
 
View Full Code Here

Examples of java.rmi.UnmarshalException

      return null;

  default:
      // REMIND: close the response input stream?
      // REMIND: Do we really want this failure mode here?
      return new UnmarshalException("unexpected invocation status: " +
            Integer.toHexString(status));
  }
    }
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.