Yes, seems like that was excatly the problem.
I had some lines like
<$if
[EMAIL PROTECTED] >
0$>
......
<$endif$>
in my templates, and after removing them, EOGenerator started to work.
Thank you very much for your help.
Jan
Am 24.09.2007 um 16:01 schrieb Mike Schrag:
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 "[EMAIL PROTECTED]" 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 PROTECTED]> 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%
40mdimension.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/
jean_francois_veillette%40yahoo.ca
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jan.grathwohl%
40kontrast.de
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]