[ 
https://issues.apache.org/jira/browse/FLEX-24205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13851714#comment-13851714
 ] 

Wim Deblauwe commented on FLEX-24205:
-------------------------------------

I have this issue as well. I have a module that I load where I wanted to use a 
skinClass on a TextArea. I had to put the skin in the host application to make 
it work as a workaround.

> RTE skin not found in loaded module
> -----------------------------------
>
>                 Key: FLEX-24205
>                 URL: https://issues.apache.org/jira/browse/FLEX-24205
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: List
>    Affects Versions: Adobe Flex SDK 4.1 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows 7
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Create mxml application and compile it from within ant task.
> 2. Create an AS module which contains custom skinned component. Also compile 
> it with ant taks.
> 3. Make application to load module using ModuleManager and create an instance 
> of module using getDefinitionByName(). 
> 4. After creating an instance add to main app with addElement.
>  
>  Actual Results:
>  RTE with following stacktrace:
> Error: Skin for 
> Shell0.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Crm29.BrexDataTable34.BrexDataTableSkin41.VGroup42.headers
>  cannot be found.
>       at 
> spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:632]
>       at 
> spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
>       at 
> spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
>       at 
> mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
>       at 
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
>       at 
> mx.core::UIComponent/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6947]
>       at 
> spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:1825]
>       at 
> spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:1416]
>       at 
> spark.components::Group/setMXMLContent()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:512]
>       at 
> spark.components::Group/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:734]
>       at 
> mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
>       at 
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
>       at 
> mx.core::UIComponent/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6947]
>       at 
> spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:1825]
>       at 
> spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:1412]
>       at 
> spark.components::Group/setMXMLContent()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:512]
>       at 
> spark.components::Group/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\Group.as:734]
>       at 
> mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
>       at 
> pl.freshbrain.components.datatable.skins::BrexDataTableSkin/initialize()
>       at 
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
>       at 
> mx.core::UIComponent/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6924]
>       at 
> spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:626]
>       at 
> spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
>       at 
> spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\4.x\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:368]
>       at 
> mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
>       at 
> mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
>       at 
> mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
>       at 
> mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
>       at 
> mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
>       at 
> mx.core::Container/addElement()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2979]
>       at 
> pl.freshbrain.application.modules.crm::Crm/initializeModule()[D:\tkociemba\workspace\brex-platform-flex\src.flex\pl\freshbrain\application\modules\crm\Crm.mxml:39]
>       at 
> pl.freshbrain.application.mediator::ApplicationMediator/handleNotification()[D:\tkociemba\workspace\brex-platform-flex\src.flex\pl\freshbrain\application\mediator\ApplicationMediator.as:50]
>       at Function/http://adobe.com/AS3/2006/builtin::apply()
>       at 
> org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[C:\Documents
>  and Settings\Owner.CapricornOne\My Documents\My 
> Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100]
>       at org.puremvc.as3.multicore.core::View/notifyObservers()[C:\Documents 
> and Settings\Owner.CapricornOne\My Documents\My 
> Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:127]
>       at 
> org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[C:\Documents
>  and Settings\Owner.CapricornOne\My Documents\My 
> Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294]
>       at 
> org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[C:\Documents
>  and Settings\Owner.CapricornOne\My Documents\My 
> Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277]
>       at 
> pl.freshbrain.application.proxy::ModuleProxy/onModuleLoadComplete()[D:\tkociemba\workspace\brex-platform-flex\src.flex\pl\freshbrain\application\proxy\ModuleProxy.as:57]
>       at flash.events::EventDispatcher/dispatchEventFunction()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at 
> ModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1168]
>       at flash.events::EventDispatcher/dispatchEventFunction()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at 
> ModuleInfo/readyHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:812]
>       at flash.events::EventDispatcher/dispatchEventFunction()
>       at flash.events::EventDispatcher/dispatchEvent()
>       at 
> mx.core::FlexModuleFactory/update()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:433]
>       at 
> mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:582]
>       at 
> mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:126]
>  
>  Expected Results:
>  Custom component should be added as child element.
>  
>  Workaround (if any):
>  n/a
>  
>  Since creating example code will take some time here's some additional 
> background info:
> Loaded module extends mx:Module class and contains custom component that 
> extends SkinnableComponent. Custom skin contains two skinparts which are 
> spark List instances (one of which is "headers" mentioned in stacktrace). 
> Custom component added as child to main application works as expected.
> I've reproduced this error with sdks: 4.0.0.14159, 4.1.0.16032, 4.1.0.16076
> Application ant build task uses following arguments:
> <args value="-source-path=${basedir}/src.flex/" />
> <args value="-source-path+=${basedir}/src.flex.domain/" />
> <args value="-compiler.library-path+=${basedir}/lib.as3/"/>
> <args value="-link-report=${basedir}/tmp/applicationLinkReport.xml" />
> <args value="-static-link-runtime-shared-libraries=true"/>
> <args value="-benchmark=false" />
> <args value="-debug=true" />
> <args value="-verbose-stacktraces" />
> <args value="-use-network=true" />
> <args value="-define+=CONFIG::debugging,true"/>
> <args value="-define+=CONFIG::release,false"/>
> <args value="-output=${output.app.file}" />
> <args value="-includes=${classes}"/>
> same goes to module task with exception of "-link-report" replaced with 
> "-load-externs"



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to