All pastes #955618 Raw Edit

Stuff

public text v1 · immutable
#955618 ·published 2008-03-24 19:34 UTC
rendered paste body
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/aluink/programs/cas/Sunrise/hostedservices/sws/trunk/build.xml:99: Error starting wsgen:
2 counts of IllegalAnnotationExceptions


  @WebMethod                                                                                                                                                                                                        
  public List lookupCustomer(Map criteria){                                                                                                                                                                         
    Expression expr = null;                                                                                                                                                                                         
    Expression tmpExpr;                                                                                                                                                                                             
    List attributes = new ArrayList();                                                                                                                                                                              
                                                                                                                                                                                                                    
    attributes.add(Customer.ADDRESS1_PROPERTY);                                                                                                                                                                     
    attributes.add(Customer.ADDRESS2_PROPERTY);                                                                                                                                                                     
    attributes.add(Customer.CITY_PROPERTY);                                                                                                                                                                         
    attributes.add(Customer.FIRST_NAME_PROPERTY);                                                                                                                                                                   
    attributes.add(Customer.LAST_NAME_PROPERTY);                                                                                                                                                                    
    attributes.add(Customer.LOYALTY_ACCOUNT_CODE_PROPERTY);                                                                                                                                                         
    attributes.add(Customer.MIDDLE_INITIAL_PROPERTY);                                                                                                                                                               
    attributes.add(Customer.PHONE_PROPERTY);                                                                                                                                                                        
    attributes.add(Customer.POSTAL_CODE_PROPERTY);                                                                                                                                                                  
    attributes.add(Customer.STATE_PROVINCE_PROPERTY);                                                                                                                                                               
    attributes.add(Customer.NUMBER_PROPERTY);                                                                                                                                                                       
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    
    ListIterator<String> itr = attributes.listIterator();                                                                                                                                                           
    while(itr.hasNext()){                                                                                                                                                                                           
      String attr = itr.next();                                                                                                                                                                                     
      if(criteria.containsKey(attr)){                                                                                                                                                                               
        expr = expr.andExp(ExpressionFactory.matchExp(attr, criteria.get(attr)));                                                                                                                                   
      }                                                                                                                                                                                                             
    }                                                                                                                                                                                                               
                                                                                                                                                                                                                    
    List customers = context.performQuery(new SelectQuery(Customer.class, expr));                                                                                                                                   
                                                                                                                                                                                                                    
    return customers;                                                                                                                                                                                               
  }