• 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: EOGenerator Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOGenerator Error


  • Subject: Re: EOGenerator Error
  • From: Mike Schrag <email@hidden>
  • Date: Mon, 24 Sep 2007 10:01:51 -0400

This error appears to be coming out of template parsing itself, meaning I believe he's doing something like (in pseudocode):

for (EORelationship relationship : entity.relationships()) {
	...
	relationship.count();
	...
}

Meaning, I think he's actually calling the count method of the EORelationship itself in Velocity rather than calling the count method on the NSArray value returned from evaluating that relationship at runtime. I think it's mixup between "real" code and the "meta" code of the template.

ms

On Sep 24, 2007, at 9:38 AM, Jean-François Veillette wrote:

add the '@' sign, try "aa.@count" instead of "aa.count".

- jfv

Le 07-09-24 à 08:49, Mike Schrag a écrit :

It sounds like you are calling "count" on a relationship in your template, which is not a method on eorelationship.

ms

On Sep 24, 2007, at 5:04 AM, Jan Grathwohl <email@hidden> wrote:

Hi,

I am currently trying to set up a new development system with WO 5.3.3, OS X 10.4, but EOGenerator won't work (Version 1.7 downloaded from rubicode.com).

If I run it from within Eclipse, I get a blank error message, and if I copy the content of the .eogen file to the command line and execute it there, I get the following error output:

janbook:~/workspace/SSOBusinessLogic jangrathwohl$ /Developer/bin/ eogenerator -destination generated -java -javaTemplate SSOJavaSource.eotemplate -model Resources/SSO.eomodeld - subclassDestination src -subclassJavaTemplate SSOJavaSubclassSource.eotemplate -templatedir etc/eogenerator - verbose
Search path is:
(
"etc/eogenerator",
"/Users/jangrathwohl/Library/EOGenerator",
"/Users/jangrathwohl/Developer/EOGenerator",
"/Library/EOGenerator",
"/Developer/EOGenerator",
"/Network/Library/EOGenerator",
"/Network/Developer/EOGenerator",
"/Developer/bin"
)
Generating class file generated/_ApplicationUserData.java from template SSOJavaSource.eotemplate
Using template at path etc/eogenerator/SSOJavaSource.eotemplate
2007-09-24 10:31:05.450 eogenerator[2287] *** Uncaught exception: <NSUnknownKeyException> [<EORelationship 0x371d00> valueForUndefinedKey:]: this class is not key value coding- compliant for the key count.
Trace/BPT trap


I have tried it with several different EOModels, which all generate without problems on our old systems with WO 5.2, OS X 10.3

Can someone on this list give me some hints what this error message means or how it can be fixed?

Thanks

Jan


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden



_______________________________________________
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: EOGenerator Error
      • From: Jan Grathwohl <email@hidden>
References: 
 >EOGenerator Error (From: Jan Grathwohl <email@hidden>)
 >Re: EOGenerator Error (From: Mike Schrag <email@hidden>)
 >Re: EOGenerator Error (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: EOGenerator Error
  • Next by Date: Intellij IDEA
  • Previous by thread: Re: EOGenerator Error
  • Next by thread: Re: EOGenerator Error
  • Index(es):
    • Date
    • Thread