Enumerating EOs in a new thread
Enumerating EOs in a new thread
- Subject: Enumerating EOs in a new thread
- From: Paul Stringer <email@hidden>
- Date: Fri, 25 Jan 2008 12:27:04 +0100
I'm attempting to pass an enumeration of eo's into the background in
a separate thread thus prevent it delaying unnecessarily a response.
After a quick attempt I got the error below. Looks like I'm doing
something EOF is not expecting here but my knowledge isn't deep
enough to understand what that is. I've encountered this before when
working with EO's in separate threads, are there some rules to follow
when doing so?
Exception in thread "Thread-1" java.lang.NullPointerException
at com.webobjects.eocontrol.EOFaultHandler._lockResources
(EOFaultHandler.java:265)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitialization
OfObject(EOAccessArrayFaultHandler.java:64)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.objectEnumerator
(_EOCheapCopyMutableArray.java:102)
at com.kisky.treasuremytext.helpers.ActionHelper
$PerformMultipleActionsTask.run(ActionHelper.java:375)
To understand more what I'm trying to do here to see if there is a
better way maybe - I'm enumerating through a large number of EOs
checking some conditions on each before deciding if I want to perform
some arbitrary action (in this case send an email), I do not need to
make any changes to the EOs themselves.
Thanks
Paul S
Treasuremytext.com
_______________________________________________
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