关于FLex Unit 的 Runtime Exception


关于FLex Unit 的 Runtime Exception
2010年10月21日
  Problem : Some of us encounter the Flex unit runtime issue when running the flex unit in the flash builder a few days ago, and it blocked our running the unit test without the ant script.    Error: Skin for FlexUnitApplication cannot be found. at spark.components.supportClasses::SkinnableComponen t/attachSkin()[E:\dev\4.0.0\frameworks\projects\spa rk\src\spark\components\supportClasses\SkinnableCom ponent.as:631] at spark.components.supportClasses::SkinnableComponen t/validateSkinChange()[E:\dev\4.0.0\frameworks\proj ects\spark\src\spark\components\supportClasses\Skin nableComponent.as:404] at spark.components.supportClasses::SkinnableComponen t/createChildren()[E:\dev\4.0.0\frameworks\projects \spark\src\spark\components\supportClasses\Skinnabl eComponent.as:367] at spark.components::SkinnableContainer/createChildre n()[E:\dev\4.0.0\frameworks\projects\spark\src\spar k\components\SkinnableContainer.as:821] at mx.core::UIComponent/initialize()[E:\dev\4.0.0\fra meworks\projects\framework\src\mx\core\UIComponent. as:7250] at spark.components::Application/initialize()[E:\dev\ 4.0.0\frameworks\projects\spark\src\spark\component s\Application.as:916] at FlexUnitApplication/initialize() at mx.managers.systemClasses::ChildManager/childAdded ()[E:\dev\4.0.0\frameworks\projects\framework\src\m x\managers\systemClasses\ChildManager.as:189] at mx.managers.systemClasses::ChildManager/initialize TopLevelWindow()[E:\dev\4.0.0\frameworks\projects\f ramework\src\mx\managers\systemClasses\ChildManager .as:341] at mx.managers::SystemManager/initializeTopLevelWindo w()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\managers\SystemManager.as:2810] at mx.managers::SystemManager/http://www.adobe.com/20 06/flex/mx/internal::kickOff()[E:\dev\4.0.0\framewo rks\projects\framework\src\mx\managers\SystemManage r.as:2637] at mx.managers::SystemManager/http://www.adobe.com/20 06/flex/mx/internal::preloader_completeHandler()[E: \dev\4.0.0\frameworks\projects\framework\src\mx\man agers\SystemManager.as:2539] at flash.events::EventDispatcher/dispatchEventFunctio n() at flash.events::EventDispatcher/dispatchEvent() at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0 .0\frameworks\projects\framework\src\mx\preloaders\ Preloader.as:515] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick()     Summary : It is a issue of the Flex Unit framework, not relative to our test cases. I guess it was caused by the Flash Player version upgrade. Solution : If you encounter this exception again, you can modify the file FlexUnitApplication.mxml manually as following (which should be created by flex unit and not need to modify before)
  flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:flexui="flexunit.flexui.*" creationComplete="onCreationComplete()"     skinClass="spark.skins.spark.ApplicationSkin" > 
  Please contact me for discussion if you have any query.

猜你喜欢

转载自uixij72j.iteye.com/blog/1571993