Mapping:
<?xml version="1.0"?>
<mapping>
        <class name="com.fareis.avm.xml.model.Order">
                <map-to xml="Order"/>  
                <field name="ClientOrderNumber"
                       type="string">
                        <bind-xml name="ClientOrderId" node="attribute"/>
                </field>
                <field name="LoanNumber"
                       type="string">
                        <bind-xml name="TransactionLoanNumber"
node="attribute"/>
                </field>
                <field name="BorrowerName"
                       type="string">
                        <bind-xml name="OwnerName" node="attribute"/>
                </field>
                <field name="UserId"
                       type="long">
                        <bind-xml name="UserId" node="attribute"/>
                </field>
                <field name="CostCenter"
                       type="string">
                        <bind-xml name="BankNumber" node="attribute"/>
                </field>
                <field name="SubCostCenter"
                       type="string">
                        <bind-xml name="CostCenter" node="attribute"/>
                </field>
                <field name="LoanType"
                       type="string">
                        <bind-xml name="LoanType" node="attribute"/>
                </field>                                                
                <field name="PropertyType"
                       type="string">
                        <bind-xml name="PropertyType" node="attribute"/>
                </field>
                <field name="PropertyUse"
                       type="string">
                        <bind-xml name="PropertyUse" node="attribute"/>
                </field>                                                
                <field name="ProductType"
                       type="string">
                        <bind-xml name="ProductType" node="attribute"/>
                </field>                                
                <field name="InspectionRequest"
                       type="string">
                        <bind-xml name="PropertyInspectionRequired"
node="attribute"/>
                </field>                                
                <field name="PendingSaleDate"
                       type="string"
                       get-method="">
                        <bind-xml name="PendingSaleDate" node="attribute"/>
                </field>                                
                <field name="RequestDate"
                       type="string">
                        <bind-xml name="RequestedDate" node="attribute"/>
                </field>                                
                <field name="RequestLocation"
                       type="string">
                        <bind-xml name="RequestedLocation"
node="attribute"/>
                </field>                                                
                <field name="Comments"
                       type="string">
                        <bind-xml name="Comments" node="attribute"/>
                </field>

                <field name="propertyAddr"
                       type="com.fareis.avm.util.Address">
                        <bind-xml name="Address"/>
                </field>
                <field name="orderDetailList"
                       type="com.fareis.avm.order.model.OrderDetail"
                          collection="collection">
                        <bind-xml name="ParcelNumber"/>
                </field>
        </class>     


Class:
public class Order implements java.io.Serializable {
    private OrderModel order;
        private Collection orderDetailList;
        private Address propertyAddr;
    
    public Order() {
                System.out.println("here");
                this.order = new OrderModel();
        }
    
    public Order(OrderModel order) {
        this.order = order;
                this.propertyAddr = order.getPropertyAddr();
                this.orderDetailList = order.getOrderDetailList();
    }
    
    public OrderModel getOrder() {return order;}
    
    public void setOrder(OrderModel order) {this.order = order;}
    
    /**
    * get methods for the instance variables
    */
    public long getOrderId() { return this.order.getOrderId(); }
    public long getUserId() {return this.order.getUserId();}
    public int getClientId(){ return this.order.getClientId(); }
    public String getPropertyType(){ return this.order.getPropertyType(); }
    public String getProductType(){ return this.order.getProductType(); }
    public int getCurrencyType(){ return this.order.getCurrencyType(); }
    public String getLoanType(){ return this.order.getLoanType(); }
    public int getOrderStatus(){ return this.order.getOrderStatus(); }
    public int getTransmissionStatus(){ return
this.order.getTransmissionStatus(); }
    public Address getPropertyAddr(){ return this.order.getPropertyAddr(); }
    public String getPropertyUse() {return this.order.getPropertyUse();}
    public String getClientOrderNumber(){ return
this.order.getClientOrderNumber(); }
    public String getPendingSaleFlag(){ return
this.order.getPendingSaleFlag(); }
    public String getPendingSaleDate(){ return
this.order.getPendingSaleDate().getFullDateString(); }
    public double getPendingSaleAmount(){ return
this.order.getPendingSaleAmount(); }
    public String getRequestDate(){ return
this.order.getRequestDate().getFullDateString(); }
    public String getRequestLocation(){ return
this.order.getRequestLocation(); }
    public String getLoanNumber(){ return this.order.getLoanNumber(); }
    public String getBorrowerName(){ return this.order.getBorrowerName(); }
    public String getCostCenter(){ return this.order.getCostCenter(); }
    public String getSubCostCenter(){ return this.order.getSubCostCenter();
}
    public String getComments() {return this.order.getComments();}    
    public Collection getOrderDetailList() {return
this.order.getOrderDetailList(); }    
    public String getInspectionRequest() {return
this.order.getInspectionRequest();}
    public String getContactPermit() {return this.order.getContactPermit();}
    public String getContactName() {return this.order.getContactName();}
    public String getContactTelephoneNbr() {return
this.order.getContactTelephoneNbr();}                      
    
    /**
    * set methods for the instance variables
    */                                                                     
    public void setOrderId(long orderId){ this.order.setOrderId(orderId); }
    public void setUserId(long userId){ this.order.setUserId(userId); }
    public void setClientId(int clientId){ this.order.setClientId(clientId);
}
    public void setPropertyType(String propertyType){
this.order.setPropertyType(propertyType); }
    public void setProductType(String productType){
this.order.setProductType(productType); }
    public void setCurrencyType(int currencyType){
this.order.setCurrencyType(currencyType); }
    public void setLoanType(String loanType){
this.order.setLoanType(loanType); }
    public void setOrderStatus(int orderStatus){
this.order.setOrderStatus(orderStatus); }
    public void setTransmissionStatus(int transmissionStatus){
this.order.setTransmissionStatus(transmissionStatus); }
        
    public void setPropertyAddr(Address propertyAddr){
this.order.setPropertyAddr(propertyAddr); }
        
    public void setPropertyUse(String propertyUse) {
this.order.setPropertyUse(propertyUse); }
    public void setClientOrderNumber(String clientOrderNumber){
this.order.setClientOrderNumber(clientOrderNumber); }
    public void setPendingSaleFlag(String pendingSaleFlag){
this.order.setPendingSaleFlag(pendingSaleFlag); }
    public void setPendingSaleDate(String pendingSaleDate){ 
        
this.order.setPendingSaleDate(Calendar.fromMMDDYYY(pendingSaleDate)); 
        }
    public void setPendingSaleAmount(double pendingSaleAmount){
this.order.setPendingSaleAmount(pendingSaleAmount); }
    public void setRequestDate(String requestDate){ 
        
this.order.setRequestDate(Calendar.fromMMDDYYY(requestDate)); 
        }
    public void setRequestLocation(String requestLocation){
this.order.setRequestLocation(requestLocation); }
    public void setLoanNumber(String loanNumber){
this.order.setLoanNumber(loanNumber); }
    public void setBorrowerName(java.lang.String borrowerName){
this.order.setBorrowerName(borrowerName); }
    public void setCostCenter(String costCenter) {
this.order.setCostCenter(costCenter); }
    public void setSubCostCenter(String subCostCenter) {
this.order.setSubCostCenter(subCostCenter); }
    public void setComments(String comments) {
this.order.setComments(comments); }

    public void setOrderDetailList(Collection orderDetailList){
this.order.setOrderDetailList(orderDetailList); }
  
        public void setInspectionRequest(String inspectionRequest) {
this.order.setInspectionRequest(inspectionRequest); }
    public void setContactPermit(String contactpermit) {
this.order.setContactPermit(contactpermit); }
    public void setContactName(String contactName) {
this.order.setContactName(contactName); }
    public void setContactTelephoneNbr(String contactTelephoneNbr) {
this.order.setContactTelephoneNbr(contactTelephoneNbr); }
}

I appreciate your help,
Thanks,
David

-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Nice, vague error


"Escandell, David" wrote:
> 
> Has anyone seen this sort of error message before?
> 
> org.exolab.castor.mapping.MappingException: Nested error:
> org.exolab.castor.mapp
> ing.MappingException: The method  in class com.fareis.avm.xml.model.Order
> accept
> ing/returning object of type class java.lang.String was not found
> 
> Unfortunately, it doesnt tell alot.  Hopefully, though, someone else has
> seen it and can comment on it.
> 

Yes, it is telling you that Castor is trying to call a get/set method
in  the class com.fareis.avm.xml.model.Order and that the method is
missing. The error seems odd, as if it's not reporting the method that
it's trying to call. Send the class mapping for the
com.fareis.avm.xml.model.Order and we'll have a look. 
--
Bruce Snyder
Software Engineer
I W I T N E S S, Inc.

Mitigating the regulatory and legal risks 
associated with doing business digitally.

+1 303-545-9000 x126  Office
+1 303-545-9155       Fax
2995 Wilderness Pl., Suite 2N
Boulder, CO 80301 USA
http://www.iwitness.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to