Re: Inheritance and relationships
Re: Inheritance and relationships
- Subject: Re: Inheritance and relationships
- From: Guido Neitzer <email@hidden>
- Date: Fri, 8 Aug 2008 12:19:59 -0600
On 08.08.2008, at 10:59, Mike Schrag wrote:
That looks wrong. That should be the base class Person:
_EOIntegralKeyGlobalID[Person (java.lang.Long)10049]
Are you by any chance batch fetching in any of these tests? I did
make that change to Wonder's batch fetching to fix some inheritance
related problems (that maybe are related if you're batch
fetching?). Total shot in the dark here, though.
No. I'm doing:
NSArray result =
EOUtilities.objectsForEntityNamed(editingContext,BaseUser.ENTITY_NAME);
I get (probably the only interesting part is the "caused by"):
12:18:10 -- ERXDatabaseContextDelegate -- :153 INFO - Database
Exception occured: java.lang.IllegalStateException: initializeObject:
No snapshot for gid _EOIntegralKeyGlobalID[EventsUser
(java.lang.Long)10049]
12:18:37 -- EVD2WApplication -- :190 FATAL - Reason: InvocationError
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
com
.webobjects
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:614)
at
com
.webobjects
.appserver
._private
.WOComponentDefinition
._componentInstanceInContext(WOComponentDefinition.java:544)
12:18:37 -- EVD2WApplication -- :191 FATAL - Classname: null
12:18:37 -- EVD2WApplication -- :192 FATAL - Action: default
12:18:37 -- EVD2WApplication -- :193 FATAL - Class: class
net.events.designer.appserver.DirectAction
at
com
.webobjects
.appserver
._private
.WOComponentDefinition
.componentInstanceInContext(WOComponentDefinition.java:642)
at
com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:
2332)
at com.webobjects.appserver.WOAction.pageWithName(WOAction.java:125)
at
net
.events
.designer.appserver.DirectAction.defaultAction(DirectAction.java:27)
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:585)
at
com
.webobjects
.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
at
er
.extensions
.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:335)
at
com
.webobjects
.appserver
._private
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
at
com
.webobjects
.appserver
._private
.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
at
er
.extensions
.appserver
.ERXDirectActionRequestHandler
.handleRequest(ERXDirectActionRequestHandler.java:124)
at
com
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:
1687)
at
er
.extensions
.appserver
.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1594)
at
er
.extensions
.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1558)
at
net
.events
.d2w.extensions.EVD2WApplication.dispatchRequest(EVD2WApplication.java:
79)
at
com
.webobjects
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:
226)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.IllegalStateException: initializeObject: No
snapshot for gid _EOIntegralKeyGlobalID[EventsUser
(java.lang.Long)10049]
at
com
.webobjects
.eoaccess.EODatabaseContext.initializeObject(EODatabaseContext.java:
3578)
at
com
.webobjects
.eocontrol
.EOObjectStoreCoordinator
.initializeObject(EOObjectStoreCoordinator.java:597)
at
com
.webobjects
.eocontrol.EOEditingContext.initializeObject(EOEditingContext.java:3768)
at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1040)
at com.webobjects.eoaccess.EODatabaseChannel
$
_EODatabaseChannelFetchResult.initializeObjects(EODatabaseChannel.java:
496)
at
com
.webobjects
.eoaccess
.EODatabaseContext
._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:
3090)
at
com
.webobjects
.eoaccess
.EODatabaseContext
.objectsWithFetchSpecification(EODatabaseContext.java:3195)
at
com
.webobjects
.eocontrol
.EOObjectStoreCoordinator
.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488)
at
com
.webobjects
.eocontrol
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:
4069)
at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:
1109)
at
com
.webobjects
.eocontrol
.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:
4444)
at
com
.webobjects
.eoaccess.EOUtilities.objectsForEntityNamed(EOUtilities.java:79)
at net.events.designer.components.Main.<init>(Main.java:50)
... 26 more
--
http://www.event-s.net
_______________________________________________
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