Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Jeff Schmitz
I added one of the inverse relationships back in, and using ERXEC to create the new editing context I do NOT get the error. Just to make sure everything else was the same, I changed back to using "new EOEditingContext" to create the editing context, and the error returns. So, whatever is c

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Mike Schrag
Yep, that's what I did, as well as removing the offending "inverse" relationships. I changed to the ERXEC.newEditingContext originally to get rid of the "you don't have a delegate" error. What I didn't try was adding the "inverse" relationships back in while using ERXEC to create the new

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread netBrackets
Yep, that's what I did, as well as removing the offending "inverse" relationships. I changed to the ERXEC.newEditingContext originally to get rid of the "you don't have a delegate" error. What I didn't try was adding the "inverse" relationships back in while using ERXEC to create the new editi

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Mike Schrag
Actually, I was using: EOObjectStoreCoordinator parentObjectStore = new EOObjectStoreCoordinator(); EOEditingContext threadEditingContext = new EOEditingContext(parentObjectStore); You're using Wonder, right? I just setup a test case of this and it worked fine, except that you

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Guido Neitzer
On 06.08.2008, at 03:19, Jeff Schmitz wrote: and with that, I still was getting the error until I removed a couple of the inverse relationships. Note that I didn't have to remove them all of them, just a couple of them. Not sure what made those cause trouble. Is it possible that EOF is

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Jeff Schmitz
Actually, I was using: EOObjectStoreCoordinator parentObjectStore = new EOObjectStoreCoordinator(); EOEditingContext threadEditingContext = new EOEditingContext(parentObjectStore); and with that, I still was getting the error until I removed a couple of the inverse relat

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-05 Thread Chuck Hill
On Aug 5, 2008, at 9:05 PM, Jeff Schmitz wrote: I fixed the problem by removing a couple of inverse relationships, and I also needed to use ERXEC.newEditingContext(parentObjectStore) to create my new editing context (instead of just new EOEditingContext), and now it works. Since I wasn't

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-05 Thread Jeff Schmitz
I fixed the problem by removing a couple of inverse relationships, and I also needed to use ERXEC.newEditingContext(parentObjectStore) to create my new editing context (instead of just new EOEditingContext), and now it works. Since I wasn't using these inverse relationships anyway it's no

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-05 Thread Jeff Schmitz
OK, I took the thread completely out of the equation and call updateResults directly from the main processing thread, but still the first fetch I try using the new EC and Object Store Coordinator I get the error: java.lang.IllegalStateException: Attempt to access an EO that has either n

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-05 Thread Kieran Kelleher
Normally, the pattern I use is to create a separate class that implements Runnable or Callable. Not sure if your use of an inline anonymous class inside the WOComponent has anything to do with your problem I just don't know since I don't use that pattern for threads. Might be worth refa

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Jeff Schmitz
As I look closer at the exception trace, the problem seems to have something to do with the fetch traversing inverse relationships that are setup within the model. Notice the following part of the stack trace: at com.netbracketsfw.model._Pricing.pools(_Pricing.java:86) the prici

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Jeff Schmitz
Sure, here's how the thread is kicked off. updateResultsThread and updateResults are both functions in the Component class. public void updateResultsThread(final int winCmd) { t = new Thread("updateResults") { public void run() {

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Kieran Kelleher
This may be just a trivial coding sequence problem Jeff. Why not post your whole Runnable (or Callable) class so we can see what you are doing ? On Aug 4, 2008, at 12:01 AM, Jeff Schmitz wrote: Hello, Continuing on with trying to access EOs in a background thread, I'm trying to give

Creating new EOObjectStoreCoordinator for thread

2008-08-03 Thread Jeff Schmitz
Hello, Continuing on with trying to access EOs in a background thread, I'm trying to give the background thread its own EOObjectStoreCoordinator. To create a new EOObjectStoreCoordinator, I'm using the following code: EOObjectStoreCoordinator parentObjectStore = new EOObjectSto