2012-7-5 15:06: invoke
严重:() for servlet LotteryServlet threw exception
:Duplicate field name&signature in class file Fastjson_ASM_DateDataModel_2
.defineClass1(Native Method)
(:632)
(:616)
(:24)
(:91)
(:333)
(:311)
(:260)
(:506)
(:489)
(:484)
(:294)
(:62)
(:34)
.doMsg00(:253)
(:74)
(:637)
(:717)
(:290)
(:206)
(:233)
(:191)
(:127)
(:102)
(:109)
(:298)
.http11.(:864)
.http11.Http11AprProtocol$(:579)
$(:1665)
(:662)
出错地方:
package ;
public class DateDataModel2
{
privateString poscode; // 玩法ID
privateLong salmoney; // 当天销售金额
privateLong cashmoney; // 当前兑奖金额
publiclong getSalmoney()
{
returnsalmoney;
}
publicvoid setSalmoney(long salmoney)
{
= salmoney;
}
publicString getPoscode()
{
returnposcode;
}
publicvoid setPoscode(String poscode)
{
= poscode;
}
publicvoid setSalmoney(Long salmoney)
{
= salmoney;
}
publicvoid setCashmoney(Long cashmoney)
{
= cashmoney;
}
publiclong getCashmoney()
{
returncashmoney;
}
publicvoid setCashmoney(long cashmoney)
{
= cashmoney;
}
}
原因:
setSalmoney()和setCashmoney各2个。
解决:
setSalmoney()和setCashmoney各去掉1个即可。
如下即可解决:
;
publicclassDateDataModel
{
privateStringposcode;//玩法ID
privateLongsalmoney; //当天销售金额
privateLongcashmoney; //当前兑奖金额
//public long getSalmoney()
//{
//return salmoney;
//}
//
//public void setSalmoney(long salmoney)
//{
// = salmoney;
//}
publicString getPoscode()
{
returnposcode;
}
publicvoidsetPoscode(String poscode)
{
= poscode;
}
publicLong getSalmoney() {
returnsalmoney;
}
publicvoidsetSalmoney(Long salmoney)
{
= salmoney;
}
publicvoidsetCashmoney(Long cashmoney)
{
= cashmoney;
}
publicLong getCashmoney() {
returncashmoney;
}
//public long getCashmoney()
//{
//return cashmoney;
//}
//
//public void setCashmoney(long cashmoney)
//{
// = cashmoney;
//}
}