On Feb 8, 2008, at 5:24 AM, Frédéric JECKER wrote:

Hi,

I handle deep object graphs and sometimes, coming from nowhere I run into LazyGenericRecordBinding errors:

[2008-02-08 14:01:29 CET] <WorkerThread4> java.lang.NullPointerException at com.webobjects.eocontrol.EOCustomObject.willReadRelationship (EOCustomObject.java:1293) at com.webobjects.eocontrol._EOMutableKnownKeyDictionary $Initializer$_LazyGenericRecordBinding.valueInObject (_EOMutableKnownKeyDictionary.java:560)

What exactly are these  and what are the best practices to avoid them?

_LazyGenericRecordBinding is part of EOF, you don't want to avoid them.


After further testing I noticed that it seems that some properties cannot be read or worse, not loaded as expected.
A simple sysout of the property in cause solves the problem....

That looks more like a bug in your code. Is that EO in an editing context?

Chuck


--

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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to