• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with Qualifier and NSKeyValueCoding.NullValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Qualifier and NSKeyValueCoding.NullValue


  • Subject: Help with Qualifier and NSKeyValueCoding.NullValue
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 11 Apr 2006 15:08:33 -0400

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





 _______________________________________________
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

  • Follow-Ups:
    • Re: Help with Qualifier and NSKeyValueCoding.NullValue
      • From: Francis Labrie <email@hidden>
    • Re: Help with Qualifier and NSKeyValueCoding.NullValue
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: best practices when deleting
  • Next by Date: Re: Help with Qualifier and NSKeyValueCoding.NullValue
  • Previous by thread: Re: Error Message:
  • Next by thread: Re: Help with Qualifier and NSKeyValueCoding.NullValue
  • Index(es):
    • Date
    • Thread