Examples of InvocationException


Examples of org.gatein.pc.api.invocation.InvocationException

   {
      // Get the context of the portlet that the client want to use
      final PortletContext portletContext = invocation.getTarget();
      if (portletContext == null)
      {
         throw new InvocationException("No portlet context provided");
      }

      // Get the access mode
      InstanceContext instanceCtx = invocation.getInstanceContext();
      AccessMode access = instanceCtx.getAccessMode();
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationException

        if (runAs != null) { // Run As
            // return the principal associated with the old security context
            ComponentInvocation ci = invMgr.getCurrentInvocation();

            if (ci == null) {
                throw new InvocationException(); // 4646060
            }
            sc = (SecurityContext) ci.getOldSecurityContext();

        } else {
            // lets optimize a little. no need to look up oldsecctx
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationException

        if (runAs != null) { // Run As
            // return the principal associated with the old security context
            ComponentInvocation ci = invMgr.getCurrentInvocation();

            if (ci == null) {
                throw new InvocationException(); // 4646060
            }
            sc = (SecurityContext) ci.getOldSecurityContext();

        } else {
            // lets optimize a little. no need to look up oldsecctx
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationException

        if (runAs != null) { // Run As
            // return the principal associated with the old security context
            ComponentInvocation ci = invMgr.getCurrentInvocation();

            if (ci == null) {
                throw new InvocationException(); // 4646060
            }
            sc = (SecurityContext) ci.getOldSecurityContext();

        } else {
            // lets optimize a little. no need to look up oldsecctx
View Full Code Here

Examples of org.glassfish.api.invocation.InvocationException

                            h, XAResource.TMSUCCESS);
                }
                try {
                    mc.dissociateConnections();
                } catch (ResourceException re) {
                    InvocationException ie = new InvocationException(
                            re.getMessage());
                    ie.initCause(re);
                    throw ie;
                } finally {
                    if (h.getResourceState().isBusy()) {
                        putbackDirectToPool(h, spec.getPoolInfo());
                    }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.InvocationException

         }
         field.set(target, value);
      }
      catch (Exception e)
      {
         throw new InvocationException(e);
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.InvocationException

         }
         field.set(target, value);
      }
      catch (Exception e)
      {
         throw new InvocationException(e.getCause());
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.InvocationException

            // Exception already wrapped by another Observer down the chain.
            if(cause instanceof InvocationException)
            {
               throw (InvocationException)cause;
            }
            throw new InvocationException(cause);
         }
         throw new InvocationException(e);
      }
   }
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.InvocationException

         }
         field.set(target, value);
      }
      catch (Exception e)
      {
         throw new InvocationException(e);
      }
   }
View Full Code Here

Examples of org.jboss.invocation.InvocationException

            t = ite.getTargetException();
         }
         /* Wrap the exception in an InvocationException to distinguish
            between application and transport exceptions
         */
         InvocationException appException = new InvocationException(t);
         // Marshall the exception
         if( returnValueAsAttribute == null || returnValueAsAttribute.booleanValue() == false )
         {
            if (response.isCommitted())
            {
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.