Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling [Solved]
Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling [Solved]
- Subject: Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling [Solved]
- From: Jacky Gagnon <email@hidden>
- Date: Fri, 16 Apr 2004 10:31:16 -0400
The problem was with my installation of WO on Linux! Not with my code
or WO...
Thanks for your help!
Jacky :-)
Le 04-04-15, ` 23:19, Chuck Hill a icrit :
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._EOAssertSafeMultiThreadedAc
ce
ss(EODatabaseContext.java:4423)
at
com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseCo
nt
ext.java:4376)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializati
on
OfObject(EOAccessArrayFaultHandler.java:63)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCop
yM
utableArray.java:37)
at
com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMu
ta
bleArray.java:91)
at
com.webobjects.eocontrol.EOQualifier.filteredArrayWithQualifier(EOQual
if
ier.java:628)
at mycomponent.getData(mycomponent.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
av
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
or
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAcc
es
sor.java:54)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObjec
t(
NSKeyValueCoding.java:1160)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.value
Fo
rKey(NSKeyValueCoding.java:1268)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:
1544)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVa
lu
eCoding.java:498)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementat
io
n.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:
1605)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInCompone
nt
(WOKeyValueAssociation.java:46)
at
com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:
740)
at
com.webobjects.appserver._private.WOBindingNameAssociation.valueInComp
on
ent(WOBindingNameAssociation.java:35)
at
com.webobjects.appserver._private.WOString.appendToResponse(WOString.j
av
a:55)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WORepetition.appendToResponse(WORepe
ti
tion.java:273)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODy
na
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java
:
997)
at
com.webobjects.appserver._private.WOComponentReference.appendToRespons
e(
WOComponentReference.java:120)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WOForm.appendChildrenToResponse(WOFo
rm
.java:124)
at
com.webobjects.appserver._private.WOHTMLDynamicElement.appendToRespons
e(
WOHTMLDynamicElement.java:424)
at
com.webobjects.appserver._private.WOForm.appendToResponse(WOForm.java:
118)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODy
na
micGroup.java:130)
at
com.webobjects.appserver._private.WOComponentContent.appendToResponse(
WO
ComponentContent.java:43)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODy
na
micGroup.java:130)
at
com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java
:
997)
at
com.webobjects.appserver._private.WOComponentReference.appendToRespons
e(
WOComponentReference.java:120)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespo
ns
e(WODynamicGroup.java:121)
at
com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODy
na
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.