Re: I must be missing something...
Re: I must be missing something...
- Subject: Re: I must be missing something...
- From: Johan Henselmans <email@hidden>
- Date: Sun, 9 Mar 2008 04:30:50 +0100
On 9 mrt 2008, at 04:09, Chuck Hill wrote:
On Mar 8, 2008, at 6:50 PM, Johan Henselmans wrote:
I have this nice repetition, in which people can choose a date. Now
suddenly, after I converted the whole thing from Xcode to WOLips
(and doing the EOGenerator separation of custom logic and standard
logic, I suddenly get this from calling the list:
java.lang.IllegalArgumentException: While trying to invoke the set
method "public void
Session.setTrainingdata(nl.netsense.nidf.BL.Trainingdata)" on an
object of type Session we received an argument of type
com.webobjects.eocontrol.EOGenericRecord. This often happens if you
forget to use a formatter.
The thing was a very simple list , with an item to be selected.
It's getting late, I must overlook something. Any idea?
Repetition1: WORepetition {
item = session.trainingdata;
list = session.trainingDataList;
}
Check the log for other messages when the app first launches.
Getting EOGenericRecord instead of your specific class might mean
that the model is not loading. That particular exception might
possibly indicate that your new templates are using the wrong super
class for _TrainingData.
Chuck
As usual, nail on the head:
Mar 09 03:40:34 cursusaanmelding[50001]
(ERXEntityClassDescription.java:564) WARN
er.extensions.ERXEntityClassDescription - Invalid class name for
entity: Trainingdata exception: java.lang.ClassNotFoundException:
nl.netsense.nidf.Trainingdata using
com.webobjects.eocontrol.EOGenericRecord instead
I had changed the models class cast, from nl.netsense.nidf. to
nl.netsense.nidf.BL, via refactor,rename, so it showed in the Sources
of the Framework, but it was not in the EOModel reflected, (there it
still was nl.netsense.nidf), After I had changed that, (and indeed
made sure that the framework was installed ) the problem disappeared.
Thanks!
--
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
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852
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