Package java.rmi

Examples of java.rmi.UnmarshalException


  if (obj == null)
      return null;
  try {
      return obj.get();
  } catch (IOException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  } catch (ClassNotFoundException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  }
    }
View Full Code Here


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

  if (wrapper == null)
      return null;
  try {
      return wrapper.get();
  } catch (IOException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  } catch (ClassNotFoundException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  }
    }
View Full Code Here

  integrity = MarshalledWrapper.integrityEnforced(in);
  if (hash == 0) {
      try {
    computeHash();
      } catch (Exception e) {
    throw new UnmarshalException("unable to calculate the type"
               + " hash for " + name, e);
      }
  }
    }
View Full Code Here

      ClassLoading.loadClass(codebase, name, null, integrity, null);
  EntryClass local;
  try {
      local = ClassMapper.toEntryClassBase(cls).eclass;
  } catch (MarshalException e) {
      throw new UnmarshalException("problem obtaining local version of "
           + toString(), e);
  }
  if (hash != local.hash)
      throw new UnmarshalException("incoming entry type: " + toString()
           + " is not assignable to the local"
           + " version of the type: " + local);
  return cls;
    }
View Full Code Here

     */
    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

                // the message context in any way that would impact which
                // method is invoked.
                Method postHandlerMethod = wsUtil.getInvMethod(
                        (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context);
                if( !webServiceMethodInPreHandler.equals(postHandlerMethod) ) {
                    throw new UnmarshalException("Original method " + webServiceMethodInPreHandler +
                            " does not match post-handler method ");
                }
            }
        } catch(Exception e) {
            logger.log(Level.WARNING, LogUtils.POST_WEBHANDLER_ERROR, e.toString());
View Full Code Here

                // which method is invoked.

                Method methodBefore = inv.getWebServiceMethod();
               
                if (methodBefore != null && !methodBefore.equals(inv.method)) {
                    inv.exception = new UnmarshalException
          (localStrings.getLocalString
          ("enterprise.webservice.postHandlerMethodMismatch",
          "Original Method {0} does not match post-handler method {1}",
          new Object[] { methodBefore, inv.method }));
            throw inv.exception;
View Full Code Here

                // the message context in any way that would impact which
                // method is invoked.
                Method postHandlerMethod = wsUtil.getInvMethod(
                        (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context);
                if( !webServiceMethodInPreHandler.equals(postHandlerMethod) ) {
                    throw new UnmarshalException("Original method " + webServiceMethodInPreHandler +
                         " does not match post-handler method ");
                }
            }
        } catch(Exception e) {
            wsUtil.throwSOAPFaultException(e.getMessage(),
View Full Code Here

                    // authorization check was performed.
                    setWebServiceMethod(m);
                }
            } catch(Exception e) {
                String errorMsg = "Error unmarshalling method {" + method + "} for ejb ";
                ie = new UnmarshalException(errorMsg);
                ie.initCause(e);
            }
            if ( ie != null ) {
                exception = ie;
                throw ie;
View Full Code Here

TOP

Related Classes of java.rmi.UnmarshalException

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.