0 Replies Latest reply on Jul 8, 2011 4:12 PM by imran_issufo

    Error converting to managed

    imran_issufo Level 1

      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\fra meworks\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\fram ework\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\framework s\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\project s\framework\src\mx\collections\ListCollectionView.as:1024]

      at mx.collections::ListCollectionView/handlePropertyChangeEvents()[E:\dev\hero_private\frame works\projects\framework\src\mx\collections\ListCollectionView.as:1449]

      at mx.collections::ListCollectionView/listChangeHandler()[E:\dev\hero_private\frameworks\pro jects\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\mil estone\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\pr ojects\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_fb 45\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\miles tone\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\DataServi ces\branches\milestone\lcds45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataServic e.as:4039]

      at mx.data::ConcreteDataService/internalFill()[C:\depot\DataServices\branches\milestone\lcds 45_fb45\frameworks\projects\data\src\mx\data\ConcreteDataService.as:7469]

      at Function/<anonymous>()[C:\depot\DataServices\branches\milestone\lcds45_fb45\frameworks\pr ojects\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\framewor ks\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\Mant erPlaneamentos.mxml:123]

      at mz.vale.sct.telas::ManterPlaneamentos/comboBox2_changeHandler()[C:\wlcds45\sct\src\mz\val e\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\sr c\mx\core\UIComponent.as:13128]

      at spark.components::List/commitSelection()[E:\dev\hero_private\frameworks\projects\spark\sr c\spark\components\List.as:1205]

      at spark.components.supportClasses::DropDownListBase/commitSelection()[E:\dev\hero_private\f rameworks\projects\spark\src\spark\components\supportClasses\DropDownListBase.as:565]

      at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\hero_private\framewor ks\projects\spark\src\spark\components\supportClasses\ListBase.as:939]

      at spark.components::List/commitProperties()[E:\dev\hero_private\frameworks\projects\spark\s rc\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\spa rk\src\spark\components\ComboBox.as:725]

      at mx.core::UIComponent/validateProperties()[E:\dev\hero_private\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8209]

      at spark.components::List/item_mouseDownHandler()[E:\dev\hero_private\frameworks\projects\sp ark\src\spark\components\List.as:1842]

      at spark.components.supportClasses::DropDownListBase/item_mouseDownHandler()[E:\dev\hero_pri vate\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\sr c\mx\core\UIComponent.as:13128]

      at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\managers\SystemManager.as:2924]

       

       

       

       

      REgards,

      Imraan