• 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
More Info on Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More Info on Error


  • Subject: More Info on Error
  • From: "Riaz Lalehzari" <email@hidden>
  • Date: Mon, 06 Jan 2003 05:58:19 +0000

Hello again,

This might help. I found where in my code the exception is happening:

   public boolean verifyLogin() {

       String validUser = "no";
       EOEditingContext ec = new EOEditingContext();

// Create "guest" user, if not yet defined
try
{ //Java Class Name of entity, key for the query, Value to look for
guest = (Person_C) EOUtilities.objectMatchingKeyAndValue(ec,"Users","username", "guest");
}
catch (EOObjectNotAvailableException exception1) //if this person does not exist then make a guest user
{
********** guest = new Person_C(); //FINE UP TO HERE
*!*!*!*!** guest.setUsername("guest"); //!!! EXCEPTION IS TRIGGERED HERE!!!!


       .......
       }
}
This is the class with the 'setUsername' method in it:

public class Person_C extends EOCustomObject {
   public Person_C()
   {

   }

   ...

   public void setUsername(String value) {
       takeStoredValueForKey(value, "username");
   }
}


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: More Info on Error
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WO Tutorial - Component Communication
  • Next by Date: Re: More Info on Error
  • Previous by thread: Re: Accessing Database
  • Next by thread: Re: More Info on Error
  • Index(es):
    • Date
    • Thread