java.lang.IllegalArgumentException [message #35570] |
Mon, 12 June 2006 04:46  |
Eclipse User |
|
|
|
Originally posted by: faireni.walla.com
i got this error:
ERROR [org.hibernate.proxy.BasicLazyInitializer] CGLIB Enhancement failed:
my.com.shinyang.ilms.model.MCurrency
java.lang.IllegalArgumentException: Superclass has no null constructors
but nopackage my.com.shinyang.ilms.model;
import java.util.Date;
import my.com.shinyang.ilms.ui.table.TableData;
public class MCurrency implements java.io.Serializable, TableData {
// Fields
private String code;
private int rate;
private String description;
private int unit;
private Date fromDate;
private Date toDate;
// Constructors
public MCurrency(String code, String description, Date fromDate, Date
toDate, int rate, int unit) {
this.code = code;
this.description = description;
this.rate = rate;
this.unit = unit;
this.fromDate = fromDate;
this.toDate = toDate;
}
/** minimal constructor */
public MCurrency(String code) {
this.code = code;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getFromDate() {
return fromDate;
}
public void setFromDate(Date fromDate) {
this.fromDate = fromDate;
}
public int getRate() {
return rate;
}
public void setRate(int rate) {
this.rate = rate;
}
public Date getToDate() {
return toDate;
}
public void setToDate(Date toDate) {
this.toDate = toDate;
}
public int getUnit() {
return unit;
}
public void setUnit(int unit) {
this.unit = unit;
}
}
can anyone help??? thanks!!!!
|
|
|
|
Re: java.lang.IllegalArgumentException [message #35670 is a reply to message #35604] |
Mon, 12 June 2006 15:26  |
Eclipse Webmaster Messages: 607353 Registered: July 2009 |
Senior Member |
|
|
There's hardly any on-topic discussion in this group.
I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=146669 for this.
D.
Ed Merks wrote:
> I'm not sure how this relates to Eclipse. The foundation newsgroup is
> not really the place to ask questions about code anyway. The platform
> newsgroup is better for general questions about Eclipse programming, but
> this doesn't seem to ask a question that's in any way related to Eclipse
> as far as I can tell.
>
>
> faireni wrote:
>
>> i got this error:
>>
>> ERROR [org.hibernate.proxy.BasicLazyInitializer] CGLIB Enhancement
>> failed: my.com.shinyang.ilms.model.MCurrency
>> java.lang.IllegalArgumentException: Superclass has no null
>> constructors but nopackage my.com.shinyang.ilms.model;
>>
>> import java.util.Date;
>>
>> import my.com.shinyang.ilms.ui.table.TableData;
>>
>> public class MCurrency implements java.io.Serializable, TableData {
>>
>>
>> // Fields private String code;
>> private int rate;
>> private String description;
>> private int unit;
>> private Date fromDate;
>> private Date toDate;
>>
>> // Constructors
>>
>> public MCurrency(String code, String description, Date fromDate,
>> Date toDate, int rate, int unit) {
>> this.code = code;
>> this.description = description;
>> this.rate = rate;
>> this.unit = unit;
>> this.fromDate = fromDate;
>> this.toDate = toDate;
>> }
>>
>> /** minimal constructor */
>> public MCurrency(String code) {
>> this.code = code;
>> }
>>
>> public String getCode() {
>> return code;
>> }
>>
>> public void setCode(String code) {
>> this.code = code;
>> }
>>
>> public String getDescription() {
>> return description;
>> }
>>
>> public void setDescription(String description) {
>> this.description = description;
>> }
>>
>> public Date getFromDate() {
>> return fromDate;
>> }
>>
>> public void setFromDate(Date fromDate) {
>> this.fromDate = fromDate;
>> }
>>
>> public int getRate() {
>> return rate;
>> }
>>
>> public void setRate(int rate) {
>> this.rate = rate;
>> }
>>
>> public Date getToDate() {
>> return toDate;
>> }
>>
>> public void setToDate(Date toDate) {
>> this.toDate = toDate;
>> }
>>
>> public int getUnit() {
>> return unit;
>> }
>>
>> public void setUnit(int unit) {
>> this.unit = unit;
>> }
>> }
>>
>> can anyone help??? thanks!!!!
>>
>>
--
Eclipse WebMaster - webmaster@eclipse.org
Questions? Consult the WebMaster FAQ at
http://wiki.eclipse.org/index.php/Webmaster_FAQ
View my status at http://wiki.eclipse.org/index.php/WebMaster
|
|
|
Powered by
FUDForum. Page generated in 0.24245 seconds