• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
java.lang.ClassCastException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: java.lang.ClassCastException
      • From: Christian Pekeler <email@hidden>
  • Prev by Date: Re: Xcode 1.5 Release Notes D2W
  • Next by Date: Re: java.lang.ClassCastException
  • Previous by thread: Re: [ANN] ChangeNotificationCenter
  • Next by thread: Re: java.lang.ClassCastException
  • Index(es):
    • Date
    • Thread