Re: Error Message:
Re: Error Message:
- Subject: Re: Error Message:
- From: Anjo Krank <email@hidden>
- Date: Tue, 11 Apr 2006 22:04:30 +0200
Am 11.04.2006 um 20:48 schrieb Chuck Hill:
On Apr 11, 2006, at 11:36 AM, Jeffrey Pearson wrote:
Can someone tell me what this error means? I'd like to know what
it actually means so I can learn to troubleshoot on my own and not
have to coming running to you guys every time. Id appreciate it.
You are probably asking the wrong people to start with :-) but we
will get to that in a second.
Oh well, as long as the people read all the other lists too...
java.lang.RuntimeException: Found null delegate. You can disable
this check by setting
er.extensions.ERXRaiseOnMissingEditingContextDelegate=false in
your WebObjects.properties
First, this is talking about er.extensions.* so this is a Project
WONDER question, not a WebObjects question. You are likely to get
more knowledgeable answers on the WONDER mailing list.
Second, the error message tells you how to fix it. Edit or create
a file name WebObjects.properties and add it to the resources of
your project. Add this line to it:
er.extensions.ERXRaiseOnMissingEditingContextDelegate=false
It looks like the WONDER editing context is expecting there to be a
delegate (see com.webobjects.eocontrol.EOEditingContext.Delegate)
and you have not set one. Maybe you need one, maybe you don't. I
have no idea. The WONDER folks would know.
Wonder uses an editing context factory, which is "a good
thing" (tm). As long as you create your ECs via
ERXEC.newEditingContext() you shouldn't have any problems.
As to this particular error message: in order to do some of the
Wonder magic (like localized exception messages, will/didDelete
methods on EOs etc) an editing context delegate is needed. If you
create the ECs with the factory, you wouldn't need to bother, but if
you do it otherwise, you need to set the ECs delegate by calling
ERXEC.factory().setDefaultDelegateOnEditingContext(editingContext);
Cheers, Anjo
_______________________________________________
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