strange error
strange error
- Subject: strange error
- From: "Daniele Corti" <email@hidden>
- Date: Tue, 3 Apr 2007 11:08:35 +0200
Hi list,
I've an error witch I don't understand how I should cause it:
WARN NSLog - <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
java.lang.ClassCastException
: com.webobjects.foundation.NSArray
[2007-04-03 10:56:25 CEST] <WorkerThread3> java.lang.ClassCastException: com.webobjects.foundation.NSArray
at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID
(EODatabaseContext.java:4049)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682)
at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID
(EOEditingContext.java:3965)
at er.extensions.ERXEC.objectsForSourceGlobalID(ERXEC.java:1036)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427)
at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject
(EOAccessArrayFaultHandler.java:70)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38)
at com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92)
at com.webobjects.eocontrol._EOCheapCopyArray._setArray(_EOCheapCopyArray.java:33)
at com.webobjects.eoaccess._EOCheapCopyHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:151)
at
com.webobjects.eocontrol._EOCheapCopyArray.willRead(_EOCheapCopyArray.java:126)
at com.webobjects.eocontrol._EOCheapCopyArray.objectsNoCopy(_EOCheapCopyArray.java:95)
at com.webobjects.foundation.NSArray.<init>(
NSArray.java:395)
at com.webobjects.foundation.NSMutableArray.<init>(NSMutableArray.java:60)
at com.webobjects.foundation._NSArrayUtilities.arrayExcludingObjectsFromArray(_NSArrayUtilities.java:197)
at com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContext(EODatabaseContext.java:6109)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java
:412)
at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226)
at er.extensions.ERXEC._saveChanges(ERXEC.java:947)
at er.extensions.ERXEC.saveChanges(ERXEC.java:870)
at
support.gestweb.component.WXLocalizedComponent._saveChangesAndFixObjects(WXLocalizedComponent.java:119)
at support.gestweb.component.insert.GWSAddDiscount.create(GWSAddDiscount.java:167)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:585)
at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:684)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java
:1160)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1539)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey
(NSKeyValueCoding.java:498)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath
(WOComponent.java:1600)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
at er.ajax.AjaxUtils.valueForBinding(AjaxUtils.java:243)
at er.ajax.AjaxDynamicElement.valueForBinding
(AjaxDynamicElement.java:34)
at er.ajax.AjaxSubmitButton.handleRequest(AjaxSubmitButton.java:214)
at er.ajax.AjaxSubmitButton.invokeAction(AjaxSubmitButton.java:205)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
at er.extensions.ERXWOForm.invokeAction(ERXWOForm.java:127)
at com.webobjects.appserver.WOComponent.invokeAction
(WOComponent.java:945)
at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:104)
at com.webobjects.appserver._private.WOSwitchComponent.invokeAction(WOSwitchComponent.java
:171)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:104)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
at er.ajax.AjaxDynamicElement.invokeAction(AjaxDynamicElement.java:83)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction
(WODynamicGroup.java:101)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
at com.webobjects.appserver.WOSession.invokeAction
(WOSession.java:1168)
at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1375)
at er.extensions.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:74)
at er.extensions.ERXApplication.invokeAction
(ERXApplication.java:1053)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:196)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession
(WOComponentRequestHandler.java:287)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest
(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:432)
at com.webobjects.appserver.WOApplication.dispatchRequest
(WOApplication.java:1306)
at er.extensions.ERXApplication.dispatchRequest(ERXApplication.java:1102)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
at com.webobjects.appserver._private.WOWorkerThread.run
(WOWorkerThread.java:254)
at java.lang.Thread.run(Thread.java:613)
support.gestweb.component.insert.GWSAddDiscount.create simply takes my EnterpriseObject GWSDiscount, controls if my form has populed the fields, then, if is a new instance, inserts it in the EC, after call _saveChangesAndFIxObjects(). This method simply control if every objects in the ec satisfy the requisitions, if not the object is deleted, in the end the method calls
ec.saveChanges();
I'm quite sure the object is not deleted, so I have no idea why this error is fired.
Has anyone encountered it before?
Thanks for help!!!
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
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