Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » java.lang.IllegalArgumentException
java.lang.IllegalArgumentException [message #35570] Mon, 12 June 2006 08:46 Go to next message
Eclipse UserFriend
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 #35604 is a reply to message #35570] Mon, 12 June 2006 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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!!!!
>
>
Re: java.lang.IllegalArgumentException [message #35670 is a reply to message #35604] Mon, 12 June 2006 19:26 Go to previous message
Eclipse Webmaster is currently offline Eclipse WebmasterFriend
Messages: 607343
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
Previous Topic:Bundles are really there but!!!!
Next Topic:Reference Material on Libraries, Deployment, Jars
Goto Forum:
  


Current Time: Thu Apr 25 21:49:50 GMT 2024

Powered by FUDForum. Page generated in 0.02934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top