Hi, I need some help please.
When I include this qualifier in a qualifier constructed of other qualifiers ANDed and ORed, I get the stack trace shown below. If I leave it out of the qualifier construct, I have no problems. Any idea why this is wrong? endDate is an NSTimestamp mapped to DateTime column.
EOQualifier endEqualsNullQualifier = new EOKeyValueQualifier( "endDate", EOQualifier.QualifierOperatorEqual, NSKeyValueCoding.NullValue );
The log output and error stack trace:
17018 DEBUG [Thread-1] (STEDispatcher, processScheduledTasks, 90) - totalQualifier = ((startDate <= (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT') and ((endDate = null), (endDate >= (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT')) and (nextEventDue < (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT'))
17020 DEBUG [Thread-1] (STEDispatcher, processScheduledTasks, 104) - Fetch Spec = <class com.webobjects.eocontrol.EOFetchSpecification(entityName=CTScheduledTask, qualifier=((startDate <= (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT') and ((endDate = null), (endDate >= (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT')) and (nextEventDue < (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/GMT')), isDeep=false, usesDistinct=false, sortOrdering=(<class com.webobjects.eocontrol.EOSortOrdering(nextEventDue compareAscending)>), hints=null, _prefetchingRelationshipKeyPaths = null)>
17328 ERROR [Thread-1] (STEDispatcher, processScheduledTasks, 152) - Exception while processing scheduled tasks
java.lang.ClassCastException at com.webobjects.eoaccess.EOQualifierSQLGeneration$_AndQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:501) at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:165) at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:209) at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3205) at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3346) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4114) at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:557) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4500) at STEDispatcher.processScheduledTasks(STEDispatcher.java:106) at STEDispatchTimerTask.run(STEDispatchTimerTask.java:23) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382)
Regards,
-Kieran ________________________________________________________________ Blog: http://webobjects.webhop.org/ Dev Config = OS X 10.4.5 i686-C.Duo / Java 1.4.2_09 / WO 5.3.1 & P. Wonder / XCode v2.2.1 / MySQL 4.1.18-std / Connector-J 3.0.17 Deploy Config = OS X 10.3.9 Server G4-PPC / Java 1.4.2_09 / WO 5.2.3 / MySQL 4.0.26 / Connector-J 3.0.17
|