From: Anjo Krank <email@hidden>
To: WebObjects Dev <email@hidden>
Sent: Tuesday, October 6, 2009 12:29:50 PM
Subject: Re: java.lang.ClassCastException: com.webobjects.eoaccess.EOAttribute
I bet it still throws when you enter more than 10 chars in a textfield.
Cheers, Anjo
Am 06.10.2009 um 16:18 schrieb Mersida Kurti:
> Thanks Kieran,
>
> I checked the EOModel attribute inspector and the width there was set to 9 (should have been 10).
>
> This fixed the problem.
>
> Thank you!!
>
> From: Kieran Kelleher <
email@hidden>
> To: Mersida Kurti <
email@hidden>
> Cc: WebObjects Dev <
email@hidden>
> Sent: Tuesday, October 6, 2009 9:19:12 AM
> Subject: Re: java.lang.ClassCastException: com.webobjects.eoaccess.EOAttribute
>
> What does
the field definition look like in the database schema (CHAR, VARCHAR, etc.)?
>
> What does the EOModel attribute inspector look like?
>
>
> On Oct 6, 2009, at 9:01 AM, Mersida Kurti wrote:
>
>> Hello,
>>
>> I am receiving the following error on WO 5.4.3 on OS 10.5.8 and Java 1.5
>> Does anyone know how to debug this?
>>
>> It worked fine before, however, I needed to make a text field accept 10 digits instead of 9 and now its throwing this error when I try to save changes. I checked the database field and that can accept up to 20 chars, so that end is good. When I switch the maxlength and size of the textfield to 9 I don't get this error and it saves my changes, but when I switch to 10...something is definitely not happy :)
>>
>> Thank you in advance,
>> Mersida
>>
>>
<com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
>> java.lang.ClassCastException: com.webobjects.eoaccess.EOAttribute
>> [2009-10-6 8:29:56 EDT] <WorkerThread0> java.lang.ClassCastException: com.webobjects.eoaccess.EOAttribute
>> at er.extensions.ERXValidationFactory.convertException(ERXValidationFactory.java:275)
>> at er.extensions.ERXEntityClassDescription.validateValueForKey(ERXEntityClassDescription.java:606)
>> at com.webobjects.eocontrol.EOCustomObject.validateValueForKey(EOCustomObject.java:1311)
>> at com.webobjects.foundation.NSValidation$Utility.validateValueForKey(NSValidation.java:478)
>> at com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:675)
>> at
com.webobjects.eocontrol.EOCustomObject.validateTakeValueForKeyPath(EOCustomObject.java:1335)
>> at com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:502)
>> at com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
>> at com.webobjects.eocontrol.EOCustomObject.validateTakeValueForKeyPath(EOCustomObject.java:1335)
>> at com.webobjects.foundation.NSValidation$Utility.validateTakeValueForKeyPath(NSValidation.java:502)
>> at com.webobjects.foundation.NSValidation$DefaultImplementation.validateTakeValueForKeyPath(NSValidation.java:687)
>> at com.webobjects.appserver.WOComponent.validateTakeValueForKeyPath(WOComponent.java:1424)
>> at
com.webobjects.appserver._private.WOKeyValueAssociation.setValue(WOKeyValueAssociation.java:76)
>> at com.webobjects.appserver._private.WOTextField.takeValuesFromRequest(WOTextField.java:94)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
>> at com.webobjects.appserver._private.WOComponentReference.takeValuesFromRequest(WOComponentReference.java:119)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
>> at com.webobjects.appserver._private.WOComponentReference.takeValuesFromRequest(WOComponentReference.java:119)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver._private.WOConditional.takeValuesFromRequest(WOConditional.java:79)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver._private.WOForm.takeValuesFromRequest(WOForm.java:122)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver._private.WOComponentContent.takeValuesFromRequest(WOComponentContent.java:26)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at
com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
>> at com.webobjects.appserver._private.WOComponentReference.takeValuesFromRequest(WOComponentReference.java:119)
>> at com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
>> at com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
>> at com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
>> at com.webobjects.appserver.WOSession.takeValuesFromRequest(WOSession.java:1331)
>> at com.webobjects.appserver.WOApplication.takeValuesFromRequest(WOApplication.java:1724)
>> at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:199)
>> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
>> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>> at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>> at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>> at
_______________________________________________
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