Announcement Announcement Module
Collapse
No announcement yet.
Framework initialization too long Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Framework initialization too long

    Hi there,

    In one of my project I decided to use the Spring ActionScript framework. Everything's ok and this framework met all my expectations so far.

    But the problem I'm facing, is that the initialization process, I mean, the autowiring / Singleton instantiaciation / Invoking IMetadata...etc. I just way too long. It takes about 5s before everything's done.

    Is that normal ? Is there a way to speed up the process ?

    Also in the console I see a lot of :
    Code:
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
    Mon Oct 4 22:25:01 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.MetadataProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler
    I'm not sure why I got some of these. Any idea ?

    Thank you,
    G

  • #2
    5 seconds is long

    Hey there,

    5 seconds does indeed seem to be a tad long, mind you, a release build of your app will most likely start up a lot faster. But still, 5 seconds is still quite bit. This does seem to indicate you have a LOT of objects in your application context and a lot of stage components.

    You could set lazy-init to true on the singleton classes that do not need to be instantiated immediately, see this doc section:
    http://www.springactionscript.org/do...antiated_beans

    And, if you're using stage wiring, you might want to look at the object selector that is being used for stage wiring. Take a look at this documentation section for that:
    http://www.springactionscript.org/do...ection_process

    hope that helps,


    cheers,

    Roland
    Last edited by 666shooter; Oct 7th, 2010, 05:08 AM. Reason: Added extra doc link

    Comment


    • #3
      Thank you for thoses advices.

      I tried using lazy-init, but that didn't change anything. I checked the application context and it only contains 60 lines...

      When I look at the trace I still have a weird sequence :

      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer430._AZItemRenderer_HGroup1.Avatar4 32', retrieving application processors instead
      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer430._AZItemRenderer_HGroup1.Avatar4 32.SkinAvatar436', retrieving application processors instead
      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
      Sun Oct 10 18:59:31 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer339.editBtn.SkinButtonToLinkButton4 44', retrieving application processors instead
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer352.editBtn.SkinButtonToLinkButton4 47', retrieving application processors instead
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer365.editBtn.SkinButtonToLinkButton4 50', retrieving application processors instead
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for RouteMVCEvents metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.metadata.Metadat aProcessorObjectPostProcessor - Invoking IMetadataProcessors for EventHandler metadata
      Sun Oct 10 18:59:32 GMT+0200 2010 DEBUG - org.springextensions.actionscript.stage.FlexStageP rocessorRegistry - FlexStageProcessorRegistry didn't find appropriate stage processors for document 'ON.ApplicationSkin2._ApplicationSkin_Group1.conte ntGroup.content.ModuleAZ101.body.ListAZContainerVi ew108.SkinSimpleContainer146.contentGroup.contactL ist.ListSkin239.scroller.ScrollerSkin242.dataGroup .AZItemRenderer378.editBtn.SkinButtonToLinkButton4 53', retrieving application processors instead
      What is that "FlexStageProcessorRegistry didn't find appropriate stage processors" thing ? It seems to be linked to a Skin class

      Thanks,
      G

      Comment


      • #4
        Ok I finally solved my problem, the answer was in Roland's reply
        And, if you're using stage wiring, you might want to look at the object selector that is being used for stage wiring. Take a look at this documentation section for that:
        http://www.springactionscript.org/do...ection_process
        Thank you,
        G

        Comment

        Working...
        X