Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling
Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling
- Subject: Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 Apr 2004 20:19:27 -0700
First off, are you certain you are only using
session().defaultEditingContext()? If so, the exception below looks
like a bug to me. Please report it at bugreport.apple.com
You can avoid the problem by locking the object store co-ordinator
before calling filteredArrayWithQualifier:
EOObjectStoreCoordinator.DefaultCoordinator().lock(); // should be OK
in this case to depend on the default
try {
// filter here
} finally {
EOObjectStoreCoordinator.DefaultCoordinator().unlock();
}
Chuck
On Apr 15, 2004, at 2:16 PM, Jacky Gagnon wrote:
Hi,
I activated AllowsConcurrentRequestHandling and the log for debuging. I
get many errors when I use EOQualifier.filteredArrayWithQualifier in
WOComponent and i don't exactly understand because I use the
defaultEditingContext and i don't store data in Application. Maybe i
miss something...
Anyone have an idea?
Thanks!
Jacky
[2004-04-15 17:04:28 EDT] <WorkerThread5> *** EODatabaseContext: access
without lock!
[2004-04-15 17:04:28 EDT] <WorkerThread5> java.lang.Exception: This is
not a real exception, just a stack trace of the location of the missing
lock:
at
com.webobjects.eoaccess.EODatabaseContext._EOAssertSafeMultiThreadedAcc
e
ss(EODatabaseContext.java:4423)
at
com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseCon
t
ext.java:4376)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializatio
n
OfObject(EOAccessArrayFaultHandler.java:63)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopy
M
utableArray.java:37)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMut
a
bleArray.java:91)
at
com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier(EOQuali
f
ier.java:628)
at mycomponent.getData(mycomponent.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAcce
s
sor.java:54)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject
(
NSKeyValueCoding.java:1160)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueF
o
rKey(NSKeyValueCoding.java:1268)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1544)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVal
u
eCoding.java:498)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementati
o
n.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:
1605)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponen
t
(WOKeyValueAssociation.java:46)
at
com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:
740)
at
com.webobjects.appserver._private.WOBindingNameAssociation.valueInCompo
n
ent(WOBindingNameAssociation.java:35)
at
com.webobjects.appserver._private.WOString.appendToResponse(WOString.ja
v
a:55)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WORepetition.appendToResponse(WORepet
i
tion.java:273)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
a
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
997)
at
com.webobjects.appserver._private.WOComponentReference.appendToResponse
(
WOComponentReference.java:120)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WOForm.appendChildrenToResponse(WOFor
m
.java:124)
at
com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse
(
WOHTMLDynamicElement.java:424)
at
com.webobjects.appserver._private.WOForm.appendToResponse(WOForm.java:
118)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
a
micGroup.java:130)
at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(W
O
ComponentContent.java:43)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
a
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
997)
at
com.webobjects.appserver._private.WOComponentReference.appendToResponse
(
WOComponentReference.java:120)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
s
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODyn
a
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:
997)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.