Package org.soybeanMilk.core

Examples of org.soybeanMilk.core.ExecuteException


   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", "arg0");
    os.set("arg1", "1111");
   
    ExecuteException re=null;
   
    try
    {
      invoke.execute(os);
    }
    catch(ExecuteException e)
    {
      re=e;
    }
   
    Assert.assertNotNull(re);
    Assert.assertTrue( (re.getMessage().startsWith("got null resolver class from")) );
  }
View Full Code Here


            {
              objSource.set(pathNodes[i].getNodeValue(), valuePath.getPathNode(i).getNodeValue());
            }
            catch(Exception e)
            {
              throw new ExecuteException(e);
            }
          }
        }
      }
    }
View Full Code Here

      {
        resolverClass=resolver.getResolverClass(objectSource);
      }
      catch(Exception e)
      {
        throw new ExecuteException(e);
      }
     
      if(resolverClass==null && resolverObject!=null)
        resolverClass=resolverObject.getClass();
     
      if(resolverClass == null)
        throw new ExecuteException("got null resolver class from Resolver "+SbmUtils.toString(resolver));
     
      methodInfo=findMethodInfo(resolverClass, this.methodName, this.args, true);
      if(methodInfo == null)
        methodInfo=findMethodInfo(resolverClass, this.methodName, this.args, false);
     
      if(methodInfo == null)
        throw new ExecuteException("no method named "+SbmUtils.toString(this.methodName)+" with "+SbmUtils.toString(this.args)
            +" arguments can be found in resolver class "+SbmUtils.toString(resolverClass));
     
      setMethodInfo(methodInfo);
    }
   
    Object[] argValues=prepareMethodArgValues(methodInfo, objectSource);
   
    try
    {
      return methodInfo.getMethod().invoke(resolverObject, argValues);
    }
    catch(InvocationTargetException e)
    {
      throw new InvocationExecuteException(this, e.getCause());
    }
    catch(IllegalArgumentException e)
    {
      throw new ExecuteException(e);
    }
    catch(IllegalAccessException e)
    {
      throw new ExecuteException(e);
    }
  }
View Full Code Here

      {
        objectSource.set(resultKey, methodResult);
      }
      catch(ObjectSourceException e)
      {
        throw new ExecuteException(e);
      }
    }
  }
View Full Code Here

      {
        breakerObj=objectSource.get(this.breaker);
      }
      catch(Exception e)
      {
        throw new ExecuteException(e);
      }
     
      if(breakerObj instanceof Boolean)
        breaked=(Boolean)breakerObj;
      else
View Full Code Here

TOP

Related Classes of org.soybeanMilk.core.ExecuteException

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.