Hello people,
im using flex4.5 with flash builder 4.5 and lcds 3.1 with model driven plugin for flash builder.
i am getting this error when i remove the BI-DIRECTIONAL relation between my entities.
I want use UNI-DIRECTION relationship, is there any solution for this:
TypeError: Error #1034: Type Coercion failed: cannot convert _TreinamentoEntityMetadata@8120581 to mx.data.IManaged.
at mx.data::DataList/getItemIndex()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\DataList.as:386]
at mx.collections::ListCollectionView/getItemIndex()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:678]
at mx.collections::AsyncListView/getItemIndex()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\AsyncListView.as:732]
at spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::dataProvider_collectionChangeHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\DataGroup.as:1812]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.utils::OnDemandEventDispatcher/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\utils\OnDemandEventDispatcher.as:79]
at mx.collections::AsyncListView/handleCollectionChangeEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\AsyncListView.as:210]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1024]
at mx.collections::ListCollectionView/handlePropertyChangeEvents()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1449]
at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:1316]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.data::ConcreteDataService/dispatchCollectionEvent()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:7092]
at mx.data::ConcreteDataService/dispatchLeafCollectionEvent()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:7886]
at mx.data::ConcreteDataService/itemUpdateHandler()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:7881]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Function/<anonymous>()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:1083]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at _TreinamentoEntityMetadata/set http://www.adobe.com/2008/flex/model/internal::_descricaoIsValid_der()[C:\wlcds45\sct\src\sct\_TreinamentoEntityMetadata.as:418]
at _TreinamentoEntityMetadata/http://www.adobe.com/2008/flex/model/internal::calculateDescricaoIsValid()[C:\wlcds45\sct\src\sct\_TreinamentoEntityMetadata.as:436]
at _TreinamentoEntityMetadata/get descricaoIsValid()[C:\wlcds45\sct\src\sct\_TreinamentoEntityMetadata.as:427]
at mx.data.utils::Managed$/internalCompare()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:648]
at mx.data.utils::Managed$/internalCompare()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:649]
at mx.data.utils::Managed$/arrayCompare()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:696]
at mx.data.utils::Managed$/internalCompare()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:608]
at mx.data.utils::Managed$/http://www.adobe.com/2006/flex/mx/internal::compare()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\utils\Managed.as:522]
at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::getDataListWithFillParams()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:4039]
at mx.data::ConcreteDataService/internalFill()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:7469]
at Function/<anonymous>()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:1306]
at mx.data::ConcreteDataService/fill()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:1325]
at mx.data::DataManager/fill()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\DataManager.as:1592]
at _Super_PlaneamentoService/filtrarPeloGrupoTreinamentoDataPlaneamento()[C:\wlcds45\sct\src\sct\_Super_PlaneamentoService.as:495]
at mz.vale.sct.telas::ManterPlaneamentos/filtrar()[C:\wlcds45\sct\src\mz\vale\sct\telas\ManterPlaneamentos.mxml:123]
at mz.vale.sct.telas::ManterPlaneamentos/comboBox2_changeHandler()[C:\wlcds45\sct\src\mz\vale\sct\telas\ManterPlaneamentos.mxml:43]
at mz.vale.sct.telas::ManterPlaneamentos/__comboBox2_change()[C:\wlcds45\sct\src\mz\vale\sct\telas\ManterPlaneamentos.mxml:159]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
at spark.components::List/commitSelection()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\List.as:1205]
at spark.components.supportClasses::DropDownListBase/commitSelection()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:565]
at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\ListBase.as:939]
at spark.components::List/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\List.as:1069]
at spark.components.supportClasses::DropDownListBase/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:508]
at spark.components::ComboBox/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\ComboBox.as:725]
at mx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:8209]
at spark.components::List/item_mouseDownHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\List.as:1842]
at spark.components.supportClasses::DropDownListBase/item_mouseDownHandler()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:732]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
REgards,
Imraan