Package java.rmi

Examples of java.rmi.UnmarshalException


                // 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, format(rb.getString("postWebHandlerError"), e.toString()));
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

            Class cls = Class.forName(cname);
            ref = (RemoteRef) cls.newInstance();
          }
        catch (InstantiationException e1)
          {
            throw new UnmarshalException("failed to create ref", e1);
          }
        catch (IllegalAccessException e2)
          {
            throw new UnmarshalException("failed to create ref", e2);
          }
        ref.readExternal(in);
      }
    else
      {
View Full Code Here

  private void writeObject(ObjectOutputStream out) throws IOException,
      ClassNotFoundException
  {
    if (ref == null)
      {
        throw new UnmarshalException("no ref to serialize");
      }
    String cname = ref.getRefClass(out);
    if (cname != null && cname.length() > 0)
      {
        out.writeUTF(cname);
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

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

        try {
            final ClassLoader old = AccessController.doPrivileged(new SetCcl(cl));
            try {
                return wrappedClass.cast(mo.get());
            } catch (ClassNotFoundException cnfe) {
                throw new UnmarshalException(cnfe.toString(), cnfe);
            } finally {
                AccessController.doPrivileged(new SetCcl(old));
            }
        } catch (PrivilegedActionException pe) {
            Exception e = extractException(pe);
            if (e instanceof IOException) {
                throw (IOException) e;
            }
            if (e instanceof ClassNotFoundException) {
                throw new UnmarshalException(e.toString(), e);
            }
            logger.warning("unwrap", "Failed to unmarshall object: " + e);
            logger.debug("unwrap", e);
        }
        return null;
View Full Code Here

            Exception e = extractException(pe);
            if (e instanceof IOException) {
                throw (IOException) e;
            }
            if (e instanceof ClassNotFoundException) {
                throw new UnmarshalException(e.toString(), e);
            }
            logger.warning("unwrap", "Failed to unmarshall object: " + e);
            logger.debug("unwrap", e);
        }
        return null;
View Full Code Here

                } // never reached
            }

            // specially treating for an UnmarshalException
            if (org instanceof UnmarshalException) {
                UnmarshalException ume = (UnmarshalException)org;

                if (ume.detail instanceof ClassNotFoundException)
                    throw (ClassNotFoundException) ume.detail;

                /* In Sun's RMI implementation, if a method return
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.