Problem with module lazy loading in flex 3

Hi every body!
I have some problems with Module lazy loading. I am using flex 3.5, Module-flex3-0.14, parsley 3.2.
I can't get the LazyModuleLoadPolicy working correctly.
In my main application (the one that loads the modules), my parsley context is the following:
        <cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ OpenViewMessage }" />
     <cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }"/>
     <cairngorm:ParsleyModuleDescriptor objectId="test"
And to load my module:
[Bindable] public var test:IModuleManager;
with  LazyModulePod.mxml:
            import com.adobe.cairngorm.module.ILoadPolicy;
            import com.adobe.cairngorm.module.IModuleManager;
            public var moduleId:String;
            public var moduleManager:IModuleManager;
            public var lazyLoadPolicy:ILoadPolicy;
    <module:ViewLoader id="moduleLoader"
        moduleId="{ moduleId }"
        moduleManager="{ moduleManager }"
</mx:Canvas> in a swc:
public class OpenViewMessage
        private var _moduleId:String;
        private var _viewId:String;
        public function OpenViewMessage(moduleId:String, viewId:String)
            this._moduleId = moduleId;
            this._viewId = viewId;
        public function get viewId():String{
            return _viewId;
        public function get moduleId():String
            return _moduleId;
In another flex project, my module context is:
The module implements IParsleyModule
<mx:Module xmlns:mx="" layout="vertical"
               import org.spicefactory.parsley.flex.FlexContextBuilder;
               import com.adobe.cairngorm.module.IParsleyModule;
               public function get contextBuilder():ContextBuilderTag
                return contextBuilderTag;
     <spicefactory:ContextBuilder  id="contextBuilderTag" config="{ MyITTestModuleContext }"/>
and the WindowControler:
public class WindowControler
     public function WindowControler(){}
        public function initialize():void
  "Module Initialized");
        public function openViewMessageHandler(message:OpenViewMessage):void
  "Opening view " + message.viewId + " in the module " + message.moduleId);
If i uncomment the basicLoadPolicy in LazyModulePod.mxml and remove the lazyModuleLoadPolicy, everything works fine. The module is loaded when it's added to stage and it receives correctly messages dispatched to it. But with the lazy policy the module never loads.
I may have missed something or there is somthing i don't understand because i tried the ModuleTest provided in example in cairngorm sources. It works fine (i mean loading the moduleA2 when receiving a message), but if i replace the change the lazyModulePolicy to listen to broadcasted messages instead of a pingMessage, the module never loads too.
    <cairngorm:LazyModuleLoadPolicy objectId="lazyLoadPolicy" type="{ BroadcastMessage }" />
        type="{ BroadcastMessage }" moduleRef="moduleA" />
public class BroadcastMessage
    public function BroadcastMessage()
If someone has any clue, i'll be happy to test it =)

Hello, back on my issue, i tested a little bit more the message dispaching.
I read the lazyLoadPolicy class and noticed that it always has to have a ModuleId property in the message to work, that's why the broadcast message didn't work to awake the module with the lazy loading policy.
So i added copy of my module:
     <cairngorm:ParsleyModuleDescriptor objectId="test"
     <cairngorm:ParsleyModuleDescriptor objectId="testbis"
Set them both with a basicLoadPolicy, and tries to dispatch a message to only one of them using the ModuleId metatag. I then noticed that both modules received the message and not only the one i expected.
I then changed the ModuleMessageInterceptor configuration to dispatch to only one kind of module:
<cairngorm:ModuleMessageInterceptor type="{ OpenViewMessage }" moduleRef="test"/>
and this worked as expected. Only the first module catched the message. I am obiously messing with the ModuleId metatag but i cannot see what's wrong...
I compiled with
but this hasn't changed anything...

Similar Messages

  • Problem with modules and ModuleLoader

    Hi everybody,
    i'm facing a real funny problem with modules and
    moduleLoader, i hope
    it's not (only) my fault anyway...
    If i create a normal flex project with fBuilder, i'm able to
    modules in a lot of different ways (as mxml, as as in a
    function etc..)...
    but if i try to use them in my fds application (created with
    eclipse plugin or as a dataServices project) i can't use
    modules. The compile-time error message is
    always the same:
    Could not resolve <mx:ModuleLoader> to a component
    I tried a lot of solutions, paying attention to import all
    the classes, to declaration, naming, positioning
    etc...but nothing changes, this thing is drivining me
    I will appreciate anykind of help.

    Any idea?

  • Problem with LILO to loading the OS

    Hello everyone.
    We have a problem with LILO to loading the OS in a CS-MARS 110R, find attached a screenshot.
    The only solution is recovery the MARS Operating System.
    Thanks in advance.

    Hi Matthew.
    The re-image was impossible because this CS-MARS didn´t read the DVD correctly (hardware error) and we asked to Cisco a RMA.

  • Problem with  whitespace  then loading and saving xml

    i do not know how to handle this problem. i modifed a texteditor to send XML to a server and load XML back to the container.
    but then i do changes to the Textlayout it shows up like this --->
    Text in Container not modifed
    Text in Container modifed ---> with space beween the colorchanged string
    Text inContainersend and loaded ---> i think this has something to to with the
    can someone give me a hint...

    the link is --->
    its a modified example of the texteditor provided by Adobe. You can send a xml to the server. and also read it from the server. You just use the xml identifer to give the xml a name.
    Try it out:
    1.  change the text and
    2.  give a XML-Identifer
         and then send it to the server. --> send to server
    3.  type in the XML-Identifer you have used and
    4.   load it from the server ---> Load from Server Button
    evering works ok exept the columns formating.
    I Think the colums Formating is not embeded in the XML as it should be. I attached the Files. (Newbie programmer)
    With best regards
    Michael Sprinzl
    --- robin.briggs <[email protected]> schrieb am Do, 17.9.2009:
    Von: robin.briggs <[email protected]>
    Betreff: Problem with  whitespace  then loading and saving xml
    An: "Michael sprinzl" <[email protected]>
    Datum: Donnerstag, 17. September 2009, 2:12
    Sounds like you have two different issues going on: (1) inline graphics aren't coming out correctly when you use the TextLineFactory, and (2) columns aren't working correctly. It's difficult for me to tell by looking at the application you link what is going wrong. One of the examples does seem to have columns working -- can you be more specific about what you're doing, and what results you are seeing? As for the inline graphics, there is a timing issue involved with using URLs, due to the asynchronous loading. See this comment in the docs for TextFlowTextLineFactory:
    Note: When using inline graphics, the source property of the InlineGraphicElement object   must either be an instance of a DisplayObject or a Class object representing an embedded asset.   URLRequest objects cannot be used. The width and height of the inline graphic at the time the line   is created is used to compose the flow.
    - robin

  • Problem with an application running Adobe Flex. Tech people say they cannot monitor, track or catch the problem.

    Problem with an application running Adobe Flex. tech people say they cannot monitor, track or catch the problem. Application shuts down and give the following erre:
    Failure of server APACHE bridge:
    No backend server available for connection: timed out after 10 seconds or idempotent set to OFF or method not idempotent.

    <moved from Downloading, Installing, Setting Up to Flex>

  • I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post wont work as it

    I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post doesn't work as it is for Ver 10.6.6 and I am running 10.6.7

    Do you have Final Cut installed on your machine?
    If so, you may want to look at this article:
    Let us know if that helps.

  • I'm having problems with my memory load

    I'm having problems with my memory load, because I have a few photos on my iPhone 5 (32GB) and has been detected that I am using 10GB of photos, and I only have 1,000 photos. Could someone help me?

    Hi Fehmi76,
    The article linked below details how to go about seeing what apps on your iPhone are using what amounts of space.
    See how much storage you've used on your iPhone, iPad, and iPod touch

  • [Solved] rc.conf problems with modules not auto loading

    hi, i have vboxdrv and vboxnetflt in my rc.conf file but they are not loading when i start the computer. They are installed properly, when i use modprobe vboxdrv and modprobe vboxnetflt they both work. I've only been using arch for a few months, but linux in general for a couple of years, I check what log files i could find but i'm not sure what to look for. Thank you for you time. Please let me know what other info to provide. ps system is up to date as of 10/10/2011.
    apperently this is not the only issue i'm having, acpi-cpufreq is not loading in rc.conf either. Where do i got to find the log for rc.conf? or how to tell why the modules are not loading. Thanks again.
    Last edited by dkjedi (2011-10-11 17:29:07)

    hope this isn't too log of a post:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    #MOD_BLACKLIST=() #deprecated
    # Scan for LVM volume groups at startup, required if you use LVM
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    #eth0="eth0 netmask broadcast"
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw"
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(syslog-ng netfs crond dbus wicd alsa fuse atd acpi-cpu-freq vboxdrv vboxnetflt !network)

  • [SOLVED] Problem with modules and udev

    Hi everybody,
    I've been configuring Arch on my new laptop the last few days and today as I was going to perform the first backup, I noticed that my external HDD does not show up in /dev/ when I plug it in. I figured it could be a problem with udev and the fact that in my /etc/rc.conf I use MOD_AUTOLOAD="no" with an explicit list of MODULES generated with hwdetect (as suggested in the wiki).
    To "solve" this I just changed MOD_AUTOLOAD to "yes" and after a reboot everything worked fine.
    My questions are:
    1) Is it possible to keep that feature (udev detects usb drives and creates the corresponding /dev/sdX) while having MOD_AUTOLOAD="no" ? What is/are the appropriate module(s) I have to put in my MODULES array ?
    2) What other such "basic" MODULES could be very useful that hwdetect does not tell about.
    Sorry for any English mistakes (I'm not a native speaker) and thank you in advance for your help,
    Last edited by yms (2010-01-06 12:48:20)

    1) Thank you, it works perfectly.
    2) Yes I know the question is weird. The thing is I have no precise idea at the moment and I just wanted to know if there are other very widely used features such as the one described in 1) that hwdetect ommits and that has to be loaded in MODULES.
    Anyway, thank you very much, I consider this matter [solved]

  • Apache/2.2.4 (Win32) + Weblogic 8.1 Problem with Module

    Hey together,
    i'm pretty new to this whole weblogic thing.
    I wanted to install the apache plugin for weblogic. I am using weblogic 8.1 and apache 2.2.4 on win xp sp2.
    I followed the instructions given in the tutorial at
    When i try to test the conf-file via httpd.exe -t i get
    httpd.exe: Syntax error on line 116 of C:/Programme/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:
    /Programme/Apache Software Foundation/Apache2.2/modules/ into server: Das angegebene Modul wurde nicht gefun
    But the file is definitley in this directory as all the other modules.
    This is the important part of my httpd.conf:
    <IfModule mod_weblogic.c>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicHost localhost
    WebLogicPort 7101
    MatchExpression *
    I even downloaded the latest version of this plugin without sucess. It's all 32 bit, so there should be no problems with that.
    I read through several topics/threads dealing with same problems but without success.
    Could any1 help please?
    Thanks in advance.

    What do you have on line 116 ? I have it setup on Win2k and it works fine with the following statements. Only difference is that I have Apache 2.0.54 (not 2.2.x)
    LoadModule weblogic_module modules/
    <Location /wlPortal >
    SetHandler weblogic-handler
    WebLogicHost localhost
    WebLogicPort 7001

  • [2.6.37] Problems with module compression

    during the last days I had problems installing carl9170-driver package from the aur. It is a package based on compat-wireless.
    Some other people had similar problems with other compat-wireless aur packages
    All the packages that are based on compat-wireless provide new versions of already existing kernel modules. They put those modules under /lib/modules/kernel-version/updates.
    After installing depmod -a should find the new modules in the /updates folder and after a reboot you can use the updated wireless drivers.
    This does not work for kernel 2.6.37 because all the in-kernel modules are .gz compressed but the carl9170-driver package produces uncompressed modules.
    I guess that depmod is not able to work correctly if you mix compressed modules with uncompressed ones.
    I found this and it seems that there are configuration options wheter you get a compressed or uncompressed module when you run "make install_modules" in a PKGBUILD.
    These configuration is made in "Makefile.modinst"
    So the question is: Is this a problem with arch's kernel? I think when compressed in-kernel-modules are used, then external modules should compile in the same way.

    Thanks for your post. I've been reporting this problem for weeks:
    I solved the problem by going to /lib/modules/kernel2.6.37ARCH/updates...iwlwifi and then ran:
    cd /lib/modules/2.6.37ARCH/update
    gzip -r *
    Then I reloaded the modules and finally depmod would report that the compat-wireless one was loaded.
    The above instructions only worked with compat-wireless-patched from AUR. I'm still unable to use compat-wireless-patched-daily even with the above trick (no module get loaded at all).
    Last edited by alphazo (2011-02-20 19:54:59)

  • Problem with solver DLL load and Excel 2010

    Since upgrading from Office 2007 to Office 2010 we've started to experience a problem with the solver addin when our own analytics addins is also loaded. I have found a solution, but I think it may highlight a problem with the latest version of the solver
    addin for Excel 2010.
    Firstly, to describe the problem - the solver addin seems to load normally when Excel 2010 starts up, however when a "Solve" is performed we are seeing a "File not found: Solver32.dll" error at the final "Keep Solver Solution" stage. This only happens our
    own analytics addin is loaded. We've been careful to make sure that our own addin does not change the working directory and also that it has been built against the correct Excel 2010 SDK libraries. We do not see this error with any other versions of Excel
    running on the same PC or any other environment.
    After some searching we found other people were having similar problems and after a bit more probing I found a solution that works - but that I'm not very happy with.
    If I copy the Solver32.dll from:
      C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER
        (where it was installed)
    into :
        (where Windows 7 keeps its 32 bit system DLLs)
    then the problem goes away.
    This seems to indicate that somehow Office 2010 has a problem that causes it to search in the wrong folder for the Solver32.dll when another addin is loaded in between the original Solver32.XLAM at start up and the use of the Solver in the sheet (which eventually
    requires this DLL to be loaded). Oddly, this only happens after a solution is found and "Keep Solver Solution" is selected - and I'm not sure why it's not looking for Solver32.dll any earlier.
    This is not a problem with any earlier versions of Excel and I suspect is a bug in the Office14/LIBRARY/SOLVER implementation. Is there any way to get this followed up?

    I'm facing the same issue. With an Excel VSTO add-in we're building. When the add-in is enabled the assembly solver32.dll can't be found. With our add-in disabled the DLL is resolved as (Sysinternals Process Monitor trace):
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    EXCEL.EXE CreateFile
    EXCEL.EXE CreateFile
    EXCEL.EXE CreateFile
    EXCEL.EXE CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Library\SOLVER\SOLVER32.DLL
    and with our add-in enabled the following locations are tried, but solver32.dll won't be found:
    excel.exe CreateFile
    C:\Program Files (x86)\Microsoft Office\Office14\Solver32.dll
    excel.exe CreateFile
    C:\ArcGIS\______path to our add-in install location_____________\Solver32.dll
    excel.exe CreateFile
    excel.exe CreateFile
    excel.exe CreateFile
    excel.exe CreateFile
    C:\Program Files\Common Files\Microsoft Shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\Solver32.dll
    excel.exe CreateFile
    excel.exe CreateFile
    excel.exe CreateFile

  • Problems with a down load

    Im having problems with a download of photoshop cs4 that I purchased online. It downloaded fine and I followed the instructions to the letter. however when I try to open the application I get a message that reads " application will not open because it is not supported on this achitecture." I checked the down load and it is for MAC and I have the correct system requirements!
    Please Help

    Sounds like you need to call Adobe support and ask them what's going on. After all, you just paid them a bunch of money and haven't gotten what you paid for yet!

  • Problem with flat file loading/Special characters

    Hi, All,
    We just migrated from Version 3.0B to BI7.0, and I've a problem which I can't handle for the moment. We are in Unicode, current codepage of the server is 4103 and codepage of frontend is 4110 (from SNL1 Transaction).
    I'm loading czech texts in my material, via CSV files. The CSV file is correct on my PC, I see the special characters.
    The problem is on my loading, whatever Character set I choose in the Infopackage (I choose Standard or Character Set Setting User-dependant), I cannot see the good characters.
    Does any one of you already encounter this kind of problem, and, if yes, how did you solve it ?

    check out with your flat file letter's type, if it's in lower case letter's change them in
    upper case letter's. or otherwise change the infobject's type as-- select check box
    corresponding to lower case letter's in infoobject.
    if helpful provide points

  • Problems with illustrator CS3. loading drawings, swatches everything takes minutes

    Since a couple of days the problems started at my office. All pc's started to have problems with illustrator and photoshop. But most of all illustrator. On start-up it is quick as it used to be but when i want to load a drawing, swatch or symbol it takes minutes. I don't know if it has to do with an update or something else. I only know that it started a few days ago on all pc's but not on the mac's.
    Thanks in advance,

    What exactly is a few days ago? The last Windows Update was on last Tuesday. Except for a .NET fix and various Office patches it did not seem to have anything critical, but it may be possible that it affects your computers. It's a far cry, though. More likely it's a virus scanner or something with your network settings, that causes erratic file opening behavior. Hard to tell without more info. your description is too generic and vague.

Maybe you are looking for

  • Vendor Payment Term

    Hi All, How to configure the following Vendor Payment term? Business requirement: We require vendor payment term with multiple cash discount days option.  Standard SAP provides 2 discount days option, but we require more than 20 discount options with

  • Java.lang.ClassCastException  in local lookups

    hi, i have written two ejb projects named as proj1 and proj2. i deployed proj1 as EAR1 and proj2 as EAR2.(in same server) in proj1 Sessionbean1  i need to use(lookup) proj2 Sessionbean2 . <b>i have given jndi name for proj2 Sessionbean2 as "jndiproj2

  • Adobe Drive Custom Connector

    Hi, We have a requirement for Digital Asset Management solution and the client already has a FileNet P8 4.5.1 solution in production. They are using Adobe Creative Suite CS5 (Indesign, Illustrator, Photoshop). We tested the CMIS connector with P8 5.0

  • Lost everything on safari, address bar, back, forward,. refresh tabs also

    like the title says i have lost it all, i had view tab etc showing so i tried to get rid of it but got rid of everything and now i cant get it back, i cant click view because its not there, i uninstalled and reinstalled but no luck

  • Every time I open system preferences, it freezes and I have to force quit.

    Everytime I open my system preferences to do, or change, anything it freezes and I a have to force quit, I have tried deleting .plist files and restarting and its still reoccuring.