I just did a simple test and on its own this qualifier works as shown coded below!! .... It does not make sense why adding this qualifer into a larger qualifier, which works without this one, would cause this problem .... Maybe its a bug .... but usually I find it's me is the problem ...... I'll try setting it up in a fetch spec in EOModeler and see how that goes.
            EOQualifier endEqualsNullQualifier = new EOKeyValueQualifier( "endDate",
                                                                          EOQualifier.QualifierOperatorEqual,
                                                                          NSKeyValueCoding.NullValue );

            EOFetchSpecification simpleTestFs = new EOFetchSpecification( "CTScheduledTask",
                                                                          endEqualsNullQualifier,
                                                                          null,
                                                                          false,
                                                                          false,
                                                                          null );

            

            NSArray simpleTestFsArray = ec.objectsWithFetchSpecification( simpleTestFs );

            

            if ( log.isDebugEnabled() ) log.debug("simpleTestFsArray = " + simpleTestFsArray );



On Apr 11, 2006, at 3:23 PM, Art Isbell wrote:

On Apr 11, 2006, at 9:08 AM, Kieran Kelleher wrote:

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 );

Exception while processing scheduled tasks

java.lang.ClassCastException

Maybe the class cast exception occurs because endDate is a NSTimestamp, not a NSKeyValueCoding.Null.  I've never used NSKeyValueCoding.NullValue to signify null in a qualifier.  Have you tried "null" instead? 

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to