• 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
Re: WO5.4 DTW NSMutableArray ClassCastException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO5.4 DTW NSMutableArray ClassCastException


  • Subject: Re: WO5.4 DTW NSMutableArray ClassCastException
  • From: "Mr. Pierre Frisch" <email@hidden>
  • Date: Wed, 16 Jan 2008 08:42:01 -0800

Does this occurs with any values in the fields? It looks like the request is returning an array of values instead of a single value.

Pierre
--
Pierre Frisch
email@hidden


On Jan 16, 2008, at 3:37, John Pollard wrote:

Hi Pierre,
The page and the query that runs when Search is clicked is all D2W's work. The page is brought into being using:
D2W.factory().queryPageForEntityNamed("Note", session());
i.e. it builds itself around my Note entity object.
So I would assume that D2W is not running a raw query.
John


On 16 Jan 2008, at 11:08, Mr. Pierre Frisch wrote:

Would your fetch specification have the raw row flag turned on?

Pierre
--
Pierre Frisch
email@hidden


On Jan 16, 2008, at 0:44, John Pollard wrote:

Hi WO Dev List,

We have moved several apps to Leopard/WO5.4 successfully (not D2W), but we have one D2W application which produces the following exception when a search of some data is triggered by clicking on a Search button in the app. As D2W is 90+% WO doing its magic stuff, I am not quite sure how to track this problem down. Can anyone advise on why there might be a cast class exception of NSMutableArray within eoaccess when DTW is running a query? This worked ok pre-WO5.4.

[2008-1-16 8:16:25 GMT] <main> Waiting for requests...
[2008-1-16 8:17:19 GMT] <WorkerThread7> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
java.lang.ClassCastException: com.webobjects.foundation.NSMutableArray
[2008-1-16 8:17:19 GMT] <WorkerThread7> java.lang.ClassCastException: com.webobjects.foundation.NSMutableArray
at com.webobjects.eoaccess.EOQualifierSQLGeneration $ _KeyValueQualifierSupport .schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java: 438)
[snip...]
at com .webobjects .eocontrol .EOEditingContext .objectsWithFetchSpecification(EOEditingContext.java:4053)
at com .webobjects .eoaccess .EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589)
at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java: 2132)
at com .webobjects.directtoweb.D2WListPage.setDataSource(D2WListPage.java: 214)
at com .webobjects.directtoweb.D2WQueryPage.queryAction(D2WQueryPage.java: 189)
[snip...]
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java: 1686)
at com.webobjects.foundation.NSKeyValueCoding $Utility.valueForKey(NSKeyValueCoding.java:447)
at com.webobjects.foundation.NSKeyValueCodingAdditions $ DefaultImplementation .valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com .webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 1754)
at com .webobjects .appserver ._private .WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java: 50)
at com .webobjects .appserver._private.WOActiveImage.invokeAction(WOActiveImage.java: 321)
[snip...]
at com .webobjects .appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:613)


Many thanks, John
_______________________________________________
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


_______________________________________________ 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: WO5.4 DTW NSMutableArray ClassCastException
      • From: John Pollard <email@hidden>
References: 
 >WO5.4 DTW NSMutableArray ClassCastException (From: John Pollard <email@hidden>)
 >Re: WO5.4 DTW NSMutableArray ClassCastException (From: "Mr. Pierre Frisch" <email@hidden>)
 >Re: WO5.4 DTW NSMutableArray ClassCastException (From: John Pollard <email@hidden>)

  • Prev by Date: Tâche pour déploiement à distance
  • Next by Date: Re: Tâche pour déploiement à distance
  • Previous by thread: Re: WO5.4 DTW NSMutableArray ClassCastException
  • Next by thread: Re: WO5.4 DTW NSMutableArray ClassCastException
  • Index(es):
    • Date
    • Thread