Re: A fetch throws a java.lang.NullPointerException on a sub-record
Re: A fetch throws a java.lang.NullPointerException on a sub-record
- Subject: Re: A fetch throws a java.lang.NullPointerException on a sub-record
- From: Baiss Eric Magnusson <email@hidden>
- Date: Mon, 5 Jul 2010 08:13:46 -0700
Awesome.
That was the problem.
Cheers,
Baiss
On Jul 4, 2010, at 8:55 PM, Chuck Hill wrote:
>
> On Jul 4, 2010, at 5:49 PM, Baiss Eric Magnusson wrote:
>
>> In changing to EODatabaseDataSource in the Session and ERXDisplayGroup in the WOComponent from using templated woo files, I tripped up on the way because I get a <java.lang.NullPointerException> when I try to bring in the current transactions at startup.
>> ...
>> Caused by: java.lang.NullPointerException
>> at com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589)
>> at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132)
>> at er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:123)
>> at Components.CurrentSit.fillDisplayGroup(CurrentSit.java:64)
>> ... 46 more
>
> That seems to come from having a null editing context. Are you somehow not setting the EC for this EODatabaseDataSource?
>
>
> --
> Chuck Hill Senior Consultant / VP Development
>
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden