Missing dependencies after post construct

32 views
Skip to first unread message

Elliot Revan

unread,
Sep 16, 2013, 12:59:12 PM9/16/13
to swiz-fr...@googlegroups.com
Hi,

I am using 1.4 for flex 3 (for flex 3.5) and I am finding models which I have set up as beans don't exist when injected into views when the views are are created after post construct and post creation complete. 

This issue doesn't occur every time so there may be a race condition somewhere.

Has anybody else seen this, or does any one have any advice. 

Brian Kotek

unread,
Sep 16, 2013, 1:54:50 PM9/16/13
to swiz-fr...@googlegroups.com
If you mean domain models, you almost certainly shouldn't be setting them up as Beans in the first place. I assume these are Prototype Beans since singletons would normally be create at app startup, long before views are being added. If that's the case, there could indeed be some issue somewhere related to Swiz and/or Flex 3.5. We are talking about a version of Flex that's over 4 years old and isn't maintained at all any more, so it could certainly be some sort of issue in that version of Flex. However, if it is intermittent, that would make me think it's some sort of race condition in the code, or a case where a view is being set up and then immediately torn down again. You could test that by setting up setters for the injected beans and debugging/logging within the setters to see if they are being set with the Beans and then immediately being set again to nulls.


--
You received this message because you are subscribed to the Google Groups "Swiz Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swiz-framewor...@googlegroups.com.
To post to this group, send email to swiz-fr...@googlegroups.com.
Visit this group at http://groups.google.com/group/swiz-framework.
For more options, visit https://groups.google.com/groups/opt_out.

James Booth

unread,
Sep 19, 2013, 7:04:17 AM9/19/13
to swiz-fr...@googlegroups.com
problem is that some application platforms (in this case Adobe Connect version 8 and 9) only work with Flex 3.5

Brian Kotek

unread,
Sep 19, 2013, 9:31:40 AM9/19/13
to swiz-fr...@googlegroups.com
You've got more trust in Adobe than I do if your app is relying on external services they provide (like Connect). But as far as this issue goes, the only tips I can really give were outlined in my first reply.

Elliot Revan

unread,
Sep 24, 2013, 11:44:00 AM9/24/13
to swiz-fr...@googlegroups.com
Hi Brian,

As suggested the issue was an related to a flex class. PieSeries was misbehaving when a chart was redrawn and throwing up null object references on occasion for no obvious reason. This appeared to be to do with missing dependencies but was nothing to do with Swiz and was to do with flex being flaky. Thank you for your support.

Kind regards,

Elliot
Reply all
Reply to author
Forward
0 new messages