• 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
Re: EOF issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF issue


  • Subject: Re: EOF issue
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 10 Sep 2010 11:58:35 -0700

On Sep 10, 2010, at 11:55 AM, Farrukh Ijaz wrote:

> Hi,
>
> Try moving the classes inside a java package instead of the default package. AppUser.ENTITY_NAME represents the table name

No, it represents the Entity name.  The Entity and Table names may  be different.


> hence can't be replaced with AppUser.class.getName()

But EOUtilities.objectMatchingValues used the entity name so AppUser.ENTITY_NAME is correct.

The problem is either that the class name in the model does not match the FQ name in Java, or the classes are not in the runtime environment for some reason.


Chuck


> On 10, ستمبر 2010, at 9:22 PM, Michael Gargano <email@hidden> wrote:
>
>> the classes are in packages under the sources folder.  I was using AppUser. ENTITY_NAME which is not FQ, but I also replaced that with AppUser.class.getName() and I got the same error.  I'm stumped.  This isn't a complicated app.
>>
>> Sent from my iPhone
>>
>> On Sep 10, 2010, at 2:19 PM, Chuck Hill <email@hidden> wrote:
>>
>>> Are the class names in the model fully qualified?  Are the Java classes in packages and under the Sources folder?
>>>
>>>
>>> On Sep 10, 2010, at 11:17 AM, Michael Gargano wrote:
>>>
>>>> no, I the project's resource folder.  it's getting pulled into the build.
>>>>
>>>> Sent from my iPhone
>>>>
>>>> On Sep 10, 2010, at 2:13 PM, Chuck Hill <email@hidden> wrote:
>>>>
>>>>> That sounds like you have the model in the project but not the code.  Is this model in a framework?
>>>>>
>>>>>
>>>>> On Sep 10, 2010, at 11:11 AM, Michael Gargano wrote:
>>>>>
>>>>>> Yes, all of the above.  :)
>>>>>>
>>>>>> AppUser user=(AppUser)EOUtilities.objectMatchingValues(session().defaultEditingContext(),AppUser.ENTITY_NAME,loginDict);
>>>>>>
>>>>>>
>>>>>> Error is  ERROR er.extensions.eof.ERXEntityClassDescription - Error registering model:  PerfTestEOModel
>>>>>>
>>>>>> ClassNotFoundException:  AppUser
>>>>>>
>>>>>>
>>>>>> it's against a postgres db
>>>>>>
>>>>>> Sent from my iPhone
>>>>>>
>>>>>> On Sep 10, 2010, at 2:04 PM, Chuck Hill <email@hidden> wrote:
>>>>>>
>>>>>>> Details?  Code?  Exceptions?  Hints?
>>>>>>>
>>>>>>>
>>>>>>> On Sep 10, 2010, at 10:59 AM, Michael Gargano wrote:
>>>>>>>
>>>>>>>> hi all,
>>>>>>>>
>>>>>>>> I'm having an issue with EOUtilities.objectMatchingValues... it keeps giving me ClassNotFoundExceptions telling me it cannot find the class for the entity.  I tried entity.ENTITY_NAME and entity.class.getName().  and nothing, it tells me I need the FQ class name still.  (this is a wonder app)
>>>>>>>>
>>>>>>>> ideas?
>>>>>>>>
>>>>>>>> thanks
>>>>>>>> -mike
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>> --
>>>>>>> Chuck Hill             Senior Consultant / VP Development
>>>>>>>
>>>>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>>>>> http://www.global-village.net/products/practical_webobjects
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> Chuck Hill             Senior Consultant / VP Development
>>>>>
>>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>>> http://www.global-village.net/products/practical_webobjects
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>> --
>>> Chuck Hill             Senior Consultant / VP Development
>>>
>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/products/practical_webobjects
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> _______________________________________________
>> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >EOF issue (From: Michael Gargano <email@hidden>)
 >Re: EOF issue (From: Chuck Hill <email@hidden>)
 >Re: EOF issue (From: Chuck Hill <email@hidden>)
 >Re: EOF issue (From: Michael Gargano <email@hidden>)
 >Re: EOF issue (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: D2W Auto-Qualifying all listings
  • Next by Date: Re: EOF issue
  • Previous by thread: Re: EOF issue
  • Next by thread: Re: EOF issue
  • Index(es):
    • Date
    • Thread