• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A fetch throws a java.lang.NullPointerException on a sub-record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >A fetch throws a java.lang.NullPointerException on a sub-record (From: Baiss Eric Magnusson <email@hidden>)
 >Re: A fetch throws a java.lang.NullPointerException on a sub-record (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Extending components but using binding and html of parent
  • Next by Date: OT: JPEG EXIF Image Orientation
  • Previous by thread: Re: A fetch throws a java.lang.NullPointerException on a sub-record
  • Next by thread: Extending components but using binding and html of parent
  • Index(es):
    • Date
    • Thread