Re: excludeObjectFromPropertyWithKey weird error
Re: excludeObjectFromPropertyWithKey weird error
- Subject: Re: excludeObjectFromPropertyWithKey weird error
- From: Lachlan Deck <email@hidden>
- Date: Mon, 30 Jul 2007 13:35:59 +1000
Hi there,
On 28/07/2007, at 1:04 AM, Chuck Hill wrote:
No. Has your model changed and the Java not been regenerated?
Good suggestion.... double checking...
The only other thing I can think of is a bad call to
takeValueForKey on this EO that is overwriting sessions() with
something else. Try overriding setSessions to log a stack trace if
the value is not instanceof NSArray.
The issue seems to be the current value of sessions() rather than the
value being taken. i.e., null is neither an instance of either
NSArray or NSMutableArray...
Actually I'm now seeing a number of these errors... what's the usual
cause for 'no database snapshot available'? I've seen it at other
times also.
java.lang.IllegalStateException: There is no database snapshot
available for the object {values = {<....>; entityType =
"CourseClass"; this = "<ish.willowservices.soap.eoaccess.CourseClass
1117cc0 _EOIntegralKeyGlobalID[CourseClass (java.lang.Long)928]>"; }
with GlobalID _EOIntegralKeyGlobalID[CourseClass (java.lang.Long)928]
at
com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID
(EODatabaseContext.java:4205)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobal
ID(EOObjectStoreCoordinator.java:682)
at
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID
(EOEditingContext.java:3904)
at
com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID
(EOEditingContext.java:3904)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault
(EODatabaseContext.java:4418)
at
com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitialization
OfObject(EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead
(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count
(_EOCheapCopyMutableArray.java:92)
at com.webobjects.foundation.NSArray.containsObject
(NSArray.java:601)
at
com.ish.webobjects.eocontrol.ISHGenericRecord.excludeObjectFromPropertyW
ithKey(ISHGenericRecord.java:75)
at
com.ish.willow.eoaccess.model._CourseClass.removeFromSessions
(_CourseClass.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at
com.webobjects.eocontrol.EOCustomObject.removeObjectFromPropertyWithKey(
EOCustomObject.java:1011)
at
com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelationsh
ipWithKey(EOCustomObject.java:1066)
The other possibility that I'll need to check out is whether this is
another /feature/ of vertical inheritance (as its reverse
relationship is mandatory from the sub-entity).
On Jul 27, 2007, at 12:43 AM, Lachlan Deck wrote:
anyone seen something similar to the below before?
java.lang.IllegalArgumentException: removeObjectToPropertyWithKey:
the key sessions is not a Array or one of its subclasses - unable
to remove the value.
at
com.webobjects.eocontrol.EOCustomObject.excludeObjectFromPropertyWith
Key(EOCustomObject.java:987)
at
com.ish.willow.eoaccess.model._CourseClass.removeFromSessions
(_CourseClass.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.webobjects.foundation.NSSelector._safeInvokeMethod
(NSSelector.java:120)
at
com.webobjects.eocontrol.EOCustomObject.removeObjectFromPropertyWithK
ey(EOCustomObject.java:1011)
at
com.webobjects.eocontrol.EOCustomObject.addObjectToBothSidesOfRelatio
nshipWithKey(EOCustomObject.java:1066)
with regards,
--
Lachlan Deck
_______________________________________________
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