Sorry, dont mean to innundate you all. I have found that if I even show the woToManyRelationship and try to save without selecting anything I also get the error.

The page I am working on has WORepitition for editing multiple records. It also has two columns that have woconditionals in them. Inside one WOConditional is the woTomanyRelationship. The user can show and hide this item with the triangle. When shown the Classcastexception occurs, when not shown and the save button is pressed there is no error.

Thanks,

Don
On Dec 8, 2007, at 11:58 AM, Don Lindsay wrote:

I have some more information, on the page in question I have a woToManyRElationship. The only time I get this error is if I select anything in this control. Otherwise everything saves normally.

Don
On Dec 8, 2007, at 11:26 AM, Don Lindsay wrote:

Hello;

I recently picked up an old application from about a year ago. When I click save on any of my edit pages I get a classcastexception in WOComponentRequestHandler while handing java.lang.ClassCastException: com.webobjects.eocontrol._EOCheapCopyMutableArray.

The code that is executed is very basic when save is clicked:

try{
WXDebug.println(20,"AbstractPage.java:saveChanges(): getting editing context");
        ec = session().defaultEditingContext();
WXDebug.println(20,"AbstractPage.java:saveChanges(): Saving changes to the editing context");
        ec.saveChanges();
} catch( Exception e) {
WXDebug.println(10, "An Error Occurred in AbstractPage.java:saveChanges() error:"+e.getMessage()); errorMessage = "An Error Occurred While Saving, changes may not have saved!: " + e.getMessage();
        e.printStackTrace();
} finally {
WXDebug.println(25,"AbstractPage.java:saveChanges(): return page to user");
        WXDebug.println(25,"**AbstractPage.java:saveChanges(): Done");
        return this;
}

Has anyone else seen this?

Don


 _______________________________________________
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/pccdonl% 40mac.com

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