Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NoSuchFieldException

404161May 16 2004 — edited May 21 2004
My 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;
}

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2004
Added on May 16 2004
5 comments
183 views