java.lang.ClassCastException
java.lang.ClassCastException
- Subject: java.lang.ClassCastException
- From: Shravan <email@hidden>
- Date: Mon, 3 Jan 2005 09:50:19 +1100
Hi All!
Can anyone tell me why i am getting a ClassCastException at line 1 below
import com.webobjects.foundation.*;
import com.webobjects.eocontrol.*;
import java.math.BigDecimal;
import java.util.*;
import com.webobjects.eoaccess.*;
public class USERS extends EOGenericRecord {
public USERS() {
super();
}
.
.
.
.
.
public static USERS authenticateUser(EOEditingContext ec, String aUsername,String aPassword) throws EOObjectNotAvailableException, EOUtilities.MoreThanOneException
{
USERS userWithIdentity = (USERS) EOUtilities.objectMatchingKeyAndValue(ec,"username",aUsername);//(1)
if (!userWithIdentity.isPasswordOk(aPassword))
{
throw new EOObjectNotAvailableException("Unable to authenticate password!!");
}
return userWithIdentity;
}
}
Thankyou,
Cheers
Shravan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden