NoSuchFieldException
404161May 16 2004 — edited May 21 2004My java object has fields with visibility set to private. They've worked fine, but now I added 2 more fields the exact same way and I get a "NoSuchFieldException" for those 2 fields. I can't figure out what the difference is between them. I use TopLink 904 standalone and JDev 9051. Below is the class. The 2 fields are "price" and "serviceID".
Thanks.
package com.diyh.model.javabeans;
import java.util.Vector;
import oracle.toplink.indirection.*;
import java.io.Serializable;
// Note: All methods are done.
public class ServiceCategory implements Serializable
{
private String serviceID;
private String shortName;
private String longName;
private String description;
private String price;
public ServiceCategory()
{
this.shortName = "";
this.longName = "";
this.description = "";
this.price = "";
this.serviceID = "";
}
public String getShortName()
{
return shortName;
}
public void setShortName(String shortName)
{
this.shortName = shortName;
}
public String getLongName()
{
return longName;
}
public void setLongName(String longName)
{
this.longName = longName;
}
public String getDescription()
{
return description;
}
public void setDescription(String description)
{
this.description = description;
}
public String getPrice()
{
return price;
}
public void setPrice(String price)
{
this.price = price;
}
public String getServiceID()
{
return serviceID;
}
public void setServiceID(String serviceID)
{
this.serviceID = serviceID;
}